package
stringlengths
1
122
pacakge-description
stringlengths
0
1.3M
ae-valid
valid 0.3.3ae namespace module portion valid: data validation helper functions.installationexecute the following command to install the ae.valid module in the currently active virtual environment:pipinstallae-validif you want to contribute to this portion then first forkthe ae_valid repository at GitLab. after that pull it to your machine and finally execute the following command in the root folder of this repository (ae_valid):pipinstall-e.[dev]the last command will install this module portion, along with the tools you need to develop and run tests or to extend the portion documentation. to contribute only to the unit tests or to the documentation of this portion, replace the setup extras keydevin the above command withtestsordocsrespectively.more detailed explanations on how to contribute to this projectare available herenamespace portion documentationinformation on the features and usage of this portion are available atReadTheDocs.
aevent
aeventlets you call boring synchronous Python from async code. Without blocking or splattingasyncandawaitonto it. Ideally, this works without modifying the synchronous code.Put another way,aeventis togeventwhatanyiois togreenlet.That is, it replaces standard Python functions with calls toanyioinstead ofgevent.Some limitations apply.UsageBefore any other imports, insert this code block into your main code:import aevent aevent.setup('trio') # or asyncio, if you mustThis will annoy various code checkers, but that can’t be helped.Start your main loopusingaevent.run, or callawait aevent.per_task()in the task(s) that need to use patched code.Theaevent.nativeandaevent.patchedcontext managers can be used to temporarily disable or re-enableaevent’s patches.Support functionsaeventmonkey-patchesanyio’sTaskGroup.spawnin two ways.the child task is instrumented to supportgreenback.spawnreturns a cancel scope. You can use it to cancel the new task.Callaevent.per_taskin your child task if you start tasks some other way.ThreadingThreads are translated to tasks. In order for that to work, you must start your program withaevent.run, or run the sync code in question within anaevent.runnerasync context manager. Runners may be nested.Supported modulestimesleepthreadingqueueatexitsocketselectpollNot yet supportedselectanything elsednsosreadwritesslsubprocesssignalSubclassing patched classesDirectly subclassing one of the classes patched byaeventdoes not work and requires special consideration. Consider this code:class my_thread(threading.Thread): def run(self): ...For use withaeventyou can choose the originalThreadimplementation:orig_Thread = getattr(threading.Thread, "_aevent_orig", threading.Thread) class my_thread(orig_Thread): ...or theaevent-ified version:new_Thread = threading.Thread._aevent_new # fails when aevent is not loaded class my_thread(new_Thread): ...or you might want to create two separate implementations, and switch based on the aevent context:class _orig_my_thread(threading.Thread._aevent_orig): ... class _new_my_thread(threading.Thread._aevent_new): ... my_thread = aevent.patch__new_my_thread, name="my_thread", orig=_orig_my_thread)If you generate local subclasses on the fly, you can simplify this to:def some_code(): class my_thread(threading.Thread._aevent_select()): def run(self): ... job = my_tread() my_thread.start()Other affected modulesYou need to import any module which requires non-patched code before importingaevent.Modules which are known to be affected:multiprocessingInternalsaevent’s monkey patching is done mainly on the module/class level.geventprefers to patch individual methods. This may cause some reduced compatibility compared togevent.aeventworks by prepending its local_monkeydirectory to the import path. These modules try to afford the same public interface as the ones they’re replacing while calling the correspondinganyiofunctions throughgreenback_.Context switching back to async-flavored code is done by way ofgreenback.aeventruns on Python 3.7 ff.TestingThe test suite runs withtrioas backend. Due toaevent’s monkeypatching, switching backends around is not supported. However, you can set the environment variableAEVENT_BACKENDtoasyncioto run the test suite with that.The test suite pulls in a copy ofpyroute2(no changes, other than fixing bugs unrelated toaevent) and tests against its test suite, thereby (mostly) ensuring that this particular package works withaevent.
aeveralltestingpypi
No description available on PyPI.
aeverall-testing-pypi
No description available on PyPI.
aevi
AEVI
aevol
Python Package for AevolThis is a Python Package for Aevol (https://aevol.fr/).It contains data models, code for creating visualizations and command-line scripts to be used with aevol-generated data.ContributingProbably the easiest way of trying out any modification you would like to make to this package is to install aneditableversion of the package.This can be done by running the following command from the topmost directory of the project (where this README sits):$pipinstall--editable.
aevopy
AevopyAevopy is a python client for the perp and options trading platform aevo.xyz. It is still in a very early stage, but maybe useful if you consider automated crypto currency trading.For signup with Aevo you can use this link to save on fees:https://app.aevo.xyz/r/Tulip-Sturdy-LaffontYou can find complete tutorials on how to use this code to build your own trading strategies on my substack or medium account:https://substack.com/@crjamesonhttps://medium.com/@crjamesonTable of ContentsIntroductionUsageInstallationUsageIntroductionAevopy is a simple to use python library to execute cryptocurrency perp and options trades via Aevo. It should work with all Python versions > 3.11. Older versions are untested but might work as well.UsageHere is some example code to give you a basic idea how to use it:importaevopyclient=aevopy.AevoClient()portfolio=client.get_portfolio()print(f"available portfolio margin balance:{portfolio.user_margin.balance}")# # get the market details about the asset we want to trade - TIA in this exampleinstrument=aevopy.get_markets(asset="TIA")print(f"instrument:{instrument}")# create a market buy orderorder=client.buy_market(instrument.instrument_id,amount=1)print(f"order:{order}order_id:{order.order_id}avg_price:{order.avg_price}")# set stop loss and take profitstop_loss_price=order.avg_price*0.99take_profit_price=order.avg_price*1.02order=client.sell_stop_loss(instrument.instrument_id,trigger=stop_loss_price)order=client.sell_take_profit(instrument.instrument_id,trigger=take_profit_price)If you need to work with multiple Accounts, you can create an account object and pass that as parameter to the client:account=aevopy.AevoAccount(key,wallet_address,api_key,api_secret,env)...client=aevopy.AevoClient(account)InstallationRecommended:pip install aevopyOr if you are using poetry:poetry add aevopyAlternative:From github: pip install pip@git+https://github.com/crjameson/aevopyCreate a .env file with your credentials in the same directory as your script is running. Take a look at .env.example in the examples folder. This file should at least configure the following values:AEVO_SIGNING_KEY = AEVO_WALLET_ADDRESS = AEVO_API_KEY = AEVO_API_SECRET = AEVO_ENV = mainnetHint: You can create the signing key and API credentials in your userprofile settings on aevo.xyz.To run the example:poetry run python examples/basic_trade_and_risk_management.pyTo run the tests:poetry run pytestContactFor questions or ideas you can find my contact information on crjameson.xyz
aew
AEWAn unofficial basic parser for blog posts onhttps://allelitewrestling.com.If they change how the pages load.. this will stop working.Example UsageIn [1]: from aew import AEW In [2]: a = AEW() In [3]: posts = a.get_posts() In [4]: print(posts[0]) Post(url='https://www.allelitewrestling.com/post/best-of-aew-dynamite-for-july-5-2023', title='Best of AEW Dynamite for July 5, 2023', image_url='https://static.wixstatic.com/media/815952_0d4b056ce8504b21baa6d6982641943e~mv2.jpg/v1/fill/w_1920,h_1080,fp_0.50_0.50,q_90,enc_auto/815952_0d4b056ce8504b21baa6d6982641943e~mv2.jpg', aew=<aew.AEW object at 0x000001D93DFF4C10>) In [5]: posts[0].date Out[5]: datetime.date(2023, 7, 5)
aex
AeXThe following currently works:importaesara.tensorasatimportaexsrng=at.random.RandomStream(0)sigma_rv=srng.normal(1.)mu_rv=srng.normal(0,1)Y_rv=srng.normal(mu_rv,sigma_rv)sampler=aex.prior_sampler(Y_rv,mu_rv)sampler(rng_key,1_000_000)ComingSampling from the posterior distribution using Blackjax's NUTS sampler:sampler=aex.mcmc({Y_rv:1.},aex.NUTS())samples,info=sampler(rng_key,1000,1000)Sampling from the posterior by arbitrarily combining Blackjax step functions:sampler=aex.mcmc({Y_rv:1.},{[mu_rv,sigma_rv]:aex.NUTS(),Y_rv:aex.RMH()})samples,info=sampler(rng_key,1000)Sampling from the posterior predictive distribution:sampler=aex.posterior_predictive(trace,Y_rv)sampler(rng_key,1000)
aexpect
No description available on PyPI.
aexpy
AexPy/eɪkspaɪ/isApiEXplorer inPYthon for detecting API breaking changes in Python packages. ExploreAPIs of AexPy releases, andAPIs of main branchbyAexPyitself.[!NOTE] AexPy is the prototype implementation of the conference paper "AexPy: Detecting API Breaking Changes in Python Packages" in Proceedings of the 33rd IEEE International Symposium on Software Reliability Engineering (ISSRE 2022), Charlotte, North Carolina, USA, October 31 - November 3, 2022.If you use our approach or results in your work, please cite it according tothe citation file.X. Du and J. Ma, "AexPy: Detecting API Breaking Changes in Python Packages," 2022 IEEE 33rd International Symposium on Software Reliability Engineering (ISSRE), 2022, pp. 470-481, doi: 10.1109/ISSRE55969.2022.00052.https://user-images.githubusercontent.com/34736356/182772349-af0a5f20-d009-4daa-b4a9-593922ed66fe.movHow AexPy works?Approach Design & Evaluation are inAexPy's conference paper, see alsotalk&slides.How we implement AexPy?Source Code & Implemetation are inAexPy's repository, see alsodesign (zh-cn).How to use AexPy?Detailed Document & Data are inAexPy's documents, see alsovideoandonline AexPy.graph LR; Package-->Version-1; Package-->Version-2; Version-1-->Preprocessing-1; Version-2-->Preprocessing-2; Preprocessing-1-->Extraction-1; Preprocessing-2-->Extraction-2; Extraction-1-->Difference; Extraction-2-->Difference; Difference-->Evaluation; Evaluation-->Breaking-Changes;AexPy also provides a framework to process Python packages, extract APIs, and detect changes, which is designed for easily reusing and customizing. See the following "Advanced Tools" section and the source code for details.Quick StartTake the packagegenerator-oj-problemv0.0.1 and v0.0.2 as an example.Save API descriptions tocache/api1.jsonandcache/api2.jsonOutput report toreport.txt# Install AexPy package and toolpipinstallaexpy# Extract APIs from [email protected]|aexpyextract-api1.json-r# Extract APIs from [email protected]|aexpyextract-api2.json-r# Diff APIs between two versionsaexpydiffapi1.jsonapi2.jsonchanges.jsonView results ononline AexPy.generator-oj-problem@0.0.1DistributionandAPIgenerator-oj-problem@0.0.2DistributionandAPIChangesandReportSee also aboutAPI Level,Call Graph, andInheritance Diagram.FeaturesPreprocessingDownload packages and get source code, or use existing code base.Count package file sizes and lines of code.Read package metadata and detect top modules.ExtractingExtract APIs from Python packages, including modules, classes, functions, attributes.Collect detailed APIs, including parameters, instance attributes.Detect API aliases and build call graphs, inheritance diagrams.Enrich type information for APIs by static type analyzers.DiffingDetect API changes after pairing APIs between two versions.Grade changes by their severities.ReportingGenerate a human-readable report for API change detection results.FrameworkCustomize processors and implementation details.Process Python packages in AexPy's general pipeline with logging and caching.Generate portable data in JSON for API descriptions, changes, and so on.Execute processing and view data by AexPy's command-line, with stdin/stdout supported.InstallWe provide the Python package on PyPI. Use pip to install the package.python-mpipinstall--upgradeaexpy aexpy--help[!IMPORTANT] Please ensure your Python interpreter works inUTF-8 mode.We also provide the Docker image to avoid environment errors.dockerpullstardustdl/aexpy:latest dockerrun--rmstardustdl/aexpy:latest--help# or the image from the main branchdockerpullstardustdl/aexpy:mainUsage[!TIP] All results produced by AexPy are in JSON format, so you could modify it in any text editor.PreprocessPreprocess a distribution for a package release.AexPy provide four preprocessing modes:-s,--src: (default) Use given distribution information (path to code, package name, modules)-r,--release: download and unpack the package wheel and automatically load from dist-info-w,--wheel: Unpack existing package wheel file and automatically load from dist-info-d,--dist: Automatically load from unpacked wheel, and its dist-infoAexPy will automatically load package name, version, top-level modules, and dependencies from dist-info.There are also options to specify fields in the distribution:-p,--project: Package name and its version, [email protected],--module: (multiple) Top-level module names.-D,--depends: (multiple) Package dependencies.-R,--requirements: Packagerequirements.txtfile path, to load dependencies.-P,--pyversion: Specify Python version for this distribution, supported Python 3.8+.[!TIP] You could modify the generated distribution file in a text editor to change field values.# download the package wheel and unpack into ./cache# output the distribution file to ./cache/[email protected]./cache./cache/distribution.json# or output the distribution file to [email protected]./cache-# use existing wheel fileaexpypreprocess-w./cache/generator_oj_problem-0.0.1-py3-none-any.whl./cache/distribution.json# use existing unpacked wheel directory, auto load metadata from .dist-info directoryaexpypreprocess-d./cache/generator_oj_problem-0.0.1-py3-none-any./cache/distribution.json# use existing source code directory, given the package's name, version, and top-level modulesaexpypreprocess./cache/generator_oj_problem-0.0.1-py3-none-any./cache/[email protected]_oj_problemView results atAexPy Online.ExtractExtract the API description from a distribution.AexPy provide four modes for the input distribution file:-j,--json: (default) The file is the JSON file produced by AexPy (preprocesscommand)-r,--release: The file is a text containing the release ID, e.g.,[email protected],--wheel: The file is a wheel, i.e.,.whlfile-s,--src: The file is a ZIP file that contains the package code directoryPlease ensure the directory is at the root of the ZIP archive[!IMPORTANT]About DependenciesAexPy would dynamically import the target module to detect all available APIs. So please ensure all dependencies have been installed in the extraction environment, or specify thedependenciesfield in the distribution, and AexPy will install them into the extraction environment.If thewheelFilefield is valid (i.e. the target file exists), AexPy will firstly try to install the wheel and ignore thedependenciesfield (used when the wheel installation fails).[!TIP]About EnvironmentAexPy usemicromambaas default environment manager. UseAEXPY_ENV_PROVIDERenvironment variable to specifyconda,mamba, ormicromamba.Use flag--no-tempto let AexPy use the current Python environment (as same as AexPy) as the extraction environment (the default behavior of the installed AexPy package).Use flag--tempto let AexPy create a temporary mamba(conda) environment that matches the distribution's pyverion field (the default behavior of our docker image).Use option-e,--envto specify an existing mamba(conda) env name as the extraction environment (will ignore the temp flag).aexpyextract./cache/distribution.json./cache/api.json# or input the distribution file from stdin# (this feature is also supported in other commands)aexpyextract-./cache/api.json# or output the api description file to stdoutaexpyextract./cache/distribution.json-# extract from the target project [email protected]|aexpyextract-api.json-r# extract from the wheel fileaexpyextract./temp/aexpy-0.1.0.whlapi.json-w# extract from the project source code ZIP archivezip-r-./project|aexpyextract-api.json-s# Use a env named demo-envaexpyextract./cache/distribution.json--edemo-env# Create a temporary envaexpyextract./cache/distribution.json---tempView results atAexPy Online.DiffDiff two API descriptions and detect changes.aexpydiff./cache/api1.json./cache/api2.json./cache/diff.jsonIf you have both stdin for OLD and NEW, please split two API descriptions by a comma,.echo","|cat./api1.json-./api2.json|aexpydiff--./changes.jsonView results atAexPy Online.ReportGenerate report from detect changes.aexpyreport./cache/diff.json./cache/report.jsonView results atAexPy Online.ViewView produced data.aexpyview./cache/distribution1.json aexpyview./cache/distribution2.json aexpyview./cache/api1.json aexpyview./cache/api2.json aexpyview./cache/diff.json aexpyview./cache/report.jsonDocker ImageThe docker image keeps the same command-line interface, but always use stdin/stdout for host-container data [email protected]|dockerrun-iaexpy/aexpyextract-->./api.json cat./api1.json<(echo",")./api2.json|dockerrun-iaexpy/aexpydiff--->./changes.json[!TIP] If you want to write processed data to filesystem, not the standard IO, add a volume mapping to/datafor file access.Since the container runs in non-root user, please use root user to allow the container writing to the mounted directory.dockerrun-v$pwd/cache:/data-urootaexpy/aexpyextract/data/distribution.json/data/api.jsonAdvanced ToolsLoggingThe processing may cost time, you can use multiple-vfor verbose logs (which are outputed to stderr).aexpy-vvvview./cache/report.jsonInteractiveAdd-ior--interactto enable interactive mode, every command will create an interactive Python shell after finishing processing. Here are some useful variable you could use in the interactive Python shell.result: The produced data objectcontext: The producing context, useexceptionto access the exception if failing to processaexpy-iview./cache/report.json[!TIP] Feel free to uselocals()anddir()to explore the interactive environment.PipelineAexPy has four loosely-coupled stages in its pipeline. The adjacent stages transfer data by JSON, defined inmodelsdirectory. You can easily write your own implementation for every stage, and combine your implementation into the pipeline.
aext-assistant
aext-assistantaext-assistantis a component of theanaconda-toolbox. Please install usingconda install anaconda-toolbox.
aext-assistant-server
aext-assistant-serveraext-assistant-serveris a component of theanaconda-toolbox. Please install usingconda install anaconda-toolbox.
aext-core
aext-coreaext-coreis a component of theanaconda-toolbox. Please install usingconda install anaconda-toolbox.
aext-core-server
aext-core-serveraext-core-serveris a component of theanaconda-toolbox. Please install usingconda install anaconda-toolbox.
aext-panels
aext-panelsaext-panelsis a component of theanaconda-toolbox. Please install usingconda install anaconda-toolbox.
aext-panels-server
aext-panels-serveraext-panels-serveris a component of theanaconda-toolbox. Please install usingconda install anaconda-toolbox.
aext-shared
aext-sharedaext-sharedis a component of theanaconda-toolbox. Please install usingconda install anaconda-toolbox.
aEye
aEyeExtensible Video Processing Framework with Additional Features Continuously DeployedProject Structure├── aEye contains video class and processor class that manage from loading, processing and uploading │ ├── video.py | ├── auxiliary.py | ├── extractor.py | ├── labeler.py │ ├── auxiliary.py ├── tests contains unit tests │ ├── test_get_meta_data.py │ ├── conftest.py │ ├── test_data │ ├── test_video.mp4 ├── setup.pyInital project setupclone/pull this repo to local machinegit clone https://github.com/DISHDevEx/aEye.gitRun the following command to create the wheel filepython setup.py bdist_wheel --version <VERSION_NUMBER>NOTE: the<VERSION_NUMBER>only effects your local build. You can use any version number you like. This can be helpful in testing prior to submitting a pull request. Alternatively, you can eclude the--version <VERSION_NUMBER>flag and the .whl file name will output asaEye-VERSION_PLACEHOLDER-py3-none-any.whlInstall the necessary requirements and wheel file!pip install -r requirements.txt!pip install *.whlRun below to import in jyputer-notebookimport boto3import cv2from aEye.video import Videofrom aEye.auxiliary import Auxfrom aEye.labeler import Labelerfrom aEye.extractor import ExtractorInitalize the auxiliary class. This creates a temporary directory for output filesaux = Aux()#Thisclasscandownloadanduploadvideos,aswellasexecutingpendinglabelsLoad the video from the desired bucket and folder.video_list_s3 = aux.load_s3(bucket = 'aeye-data-bucket', prefix = 'input_video/')Initalize the labeler and extractorlabel = Labeler()#Thisisusedtoapplylabelslike'crop','trim',etctoavideoobjectextract = Extractor()#ThisisusedtoextractframesasPNG'sHow to process videos using Labeler and Extractor:The labeler provides multiple actions that can be applied to a video or a list of videos. Each action takes a video or list of videos as its first parameter and returns a modified video or list of videos. To chain multiple labels together, you can pass the output of one process as the input for the next process.Example:#Trimmingthevideofrom1secondto9secondsto_process = label.trim_video_start_end(video_list_s3, 1, 9)#Trimmingtheresultingvideoto60framesto_process = label.trim_num_frames(to_process, 10, 60)#Executetheprocessinglabelsandwritetheprocessedvideoslocallyoutput_video_list = aux.execute_label_and_write_local(to_process)#Note:Thisexamplewillcreatea60-framelongclip,notan8-secondone.If you want to create two different trims, you will need to execute via Aux in between those two operations:to_process = label.trim_video_start_end(video_list_s3, 1, 9)processed = aux.execute_label_and_write_local(to_process)processed = label.trim_num_frames(processed, 10, 60)output_video_list = aux.execute_label_and_write_local(processed)#Thiswillcreatetwovideos,onefromtime1to9,andanother60frameclip.The image extractor can extract frames from a video using openCV!Important note: Image extraction is executed the moment it is called! If you want to extract frames with processing, you must execute the video processing commands first using aux.execute_label_and_write_local(video_list).Keep in mind that processor modifications are not applied until the aux.execute_label_and_write_local(list) command is performed. Any image extraction that happens prior to an execution will not have any modifications applied. The framework allows frames to be extracted at any point while processing, but if there are pending processor modifications, a warning will be raised, and the resulting images will come from the original source. The execution order affects frame capture.Example:label.change_resolution(video_list_s3, "720p")extract.specific_frame_extractor(aux, video_list_s3, 42) # These screenshots will NOT be in 720paux.execute_label_and_write_local(video_list_s3)#Becausethevideomodificationshavenotbeenexecuted,theimageswillcomefromtheoriginalvideo.label.change_resolution(video_list_s3, "720p")output_list = aux.execute_label_and_write_local(to_process)process.cv_extract_specific_frame(output_list, 42) # These screenshots WILL be in 720p!#Becausetherescalewasexecuted,theresultingscreenshotisin720p!All Label Utility:#AllUtilshouldbepreceededwith"label."(exlabel.change_resolution)resize_by_ratio(x_ratio, y_ratio,target) -> Add label of resizing video by multiplying width by the ratio to video.change_resolution(video_list, desired_res) -> Changes the resolution to a 'standard' resolution.trim_video_start_end(video_list, start, end) -> Given start and end times in seconds, modified a trimmed down version of the video to the modified file.trim_into_clips(video_list, interval) -> Splits the video into X second clips, sends all these clips to output folder.trim_on_frame(video_list, frame) -> Given a specific frame, start the video there, removes any preceding frames.trim_num_frames(video_list, start_frame, num_frames) -> Given a start frame and the amount of frames that a user wants "to copy, splits the video to all of the frames within that frame range.crop_video_section(video_list, start_x, start_y, width, height) -> Create a width x height crop of the input video starting at pixel values"\start_x, start_y and sends the smaller video to the modified file.blur_video(video_list, blur_level, blur_steps) -> Adds the blur_level amount of blur blur_steps amount of times to a video.set_bitrate(video_list, desired_bitrate) -> Sets the bitrate at which the video will re-encode to.change_fps(video_list, new_framerate) -> Sets the framerate at which the video will re-encode. Note, reducing thebitrate in comparison to the original will result in a loss of some i/b frames, but the output duration will remain the same.grayscale(video_list) -> Applies a grayscale filter to all videos in video_list.All Extract Utility:frame_at_time_extractor(aux, video_list, time) -> Given a time (can be a float), find the closest B-Frame and extract itspecific_frame_extractor(aux, video_list, frame) -> Extract the exact frame you pass as a PNGmultiple_frame_extractor(aux, video_list, start_frame, num_frames) -> Beginning at start_frame, extract the next num_framesLimitations:Please note the following limitations of the framework:Frames cannot be extracted from a source that has been previously executed in the processor pipeline. The TRIM_INTO_CLIPS operation must be executed last. It creates multiple output videos from a single input, and these outputs cannot be processed further. Here's an example of using the labeler utility to downsize, crop, and trim a video:to_process = label.trim_video_start_end(video_list_s3, 1, 9) #Trims from 1s to 9sto_process = label.change_resolution(to_process, "720p") #Converts to 720pfinal_video_list = label.crop_video_section(to_process, 0, 0, 150, 100) #Creates a 150x100 crop at (0,0)Use auxiliary class to execute and write the videos with labels.aux.execute_label_and_write_local(final_video_list)Processing can create a lot of files! After, if you don't want to upload the generated files, you can use the following command to clean up:aux.clean()Finally, you can upload the processed videos to the desired bucket using the upload_s3 function:aux.upload_s3(res_trimmed_s3, bucket = 'aeye-data-bucket')Finish by removing the temp folder.aux.clean()The following steps are to load and write locally.Load video files from data/ foldervideo_list_local = aux.load_local('data/')Add Trim label for the local video files.trimmed_local = label.trim_on_frame(video_list_local, 501)#Createsavideostartingfromframe501ofsrcExecute all labels and write the output to data/ folder.aux.execute_label_and_write_local(trimmed_local,'data/')
aeza
aezaЭтот пакет создан, для того чтобы занять название aeza в pypi.org. Он принадлежит проектуaeza.net.This package is created to occupy the name aeza in pypi.org. It belongs to theaeza.netproject
aezpz
Adobe Experience Platform API made easy peasyDocumentationThe Adobe Experience Platform API is a RESTful API that uses OAuth 2.0 for authentication. To use the API you'll need to create a project in the Adobe Developer Console and create OAuth Server-to-Server credentials for your project.This library makes it easy to authenticate with the Adobe Experience Platform API and make requests to the API.InstallationpipinstallaezpzUsageimportaezpz# Load the credentials from the credentials fileapi=aezpz.load_config('path/to/credentials.json')# Make a request to the APIapi.schemas.find(title='my_schema')CredentialsSign in to the Adobe Developer Console with your Adobe Experience Platform accounthttps://developer.adobe.com/consoleCreate a new project or use an existing projectAdd the Experience Platform API to your projectCreate OAuth Server-to-Server credentials for your projectOn the Credentials page click the "Download JSON" button to download the credentials file
af
Af2bilingualInstall in ubuntu 16.041. First install libicusudo apt-get update sudo apt-get install libicu-dev2. Install AfTo install it globally:pip install AfIn a virtual environment:virtualenv -p python3 venv source venv/bin/activate pip install AfUsageLet's suppose you have a directory "my_dir" with af files. To generate bilinguals file:af2bilingual my_dirAll generated files will be located in a generated "bilingual" directory next to "my_dir" If the bilingual directory already exists the ad2bilingual will fail except if you use :af2bilingual my_dir -o if you want
af2-analysis
Alphafold2 Analysisaf2_analysisis a python package allowing a simplified analysis of alphafold and colabfold results.Installationgitclonehttps://github.com/samuelmurail/af2_analysiscdaf2_analysis pythonsetup.pyinstallUsageCreate theDataobject, giving the path of the directory containing the results of the alphafold2/colabfold run.importaf2_analysismy_data=af2_analysis.Data('MY_AF2_RESULTS_DIR')Extracted data are available in thedfattribute of theDataobject.my_data.dfCompute pdockQ and pdockQ2:my_data.compute_pdockq()my_data.compute_pdockq2()plot msamy_data.plot_msa()plot plddt:my_data.plot_plddt([0,1])plot PAE:my_data.plot_pae(my_data.df['ranking_confidence'].idxmax())show 3D structure (nglviewrequired):my_data.show_3d(my_data.df['ranking_confidence'].idxmax())
afaans-distribution
No description available on PyPI.
afaas-common
Failed to fetch description. HTTP Status Code: 404
afacinemas-scraper
Afa Cinemas Scraper 🦀afacinemas-scraper- Ferramenta para raspagem de dados do site da redeAfa Cinemas.⚙️ Instalaçãopipinstallafacinemas-scraper💻 Utilizaçãofromafacinemas_scraperimportScraperscraper=Scraper()🔍 Buscando os cinemasfromafacinemas_scraperimportScraperscraper=Scraper()cinemas=scraper.get_cinemas()print(cinemas)📄 Saída:[{'codigo':4,'nome':'Boituva Cine Park','logo':'http://afacinemas.com.br/logotipo/boituva.jpg','endereco':'Avenida Vereador José Biagione, 660 Centro - Boituva /SP','contato':'(15) 3363-8083'},...]🔍 Buscando os próximos lançamentosfromafacinemas_scraperimportScraperscraper=Scraper()proximos_lancamentos=scraper.get_proximos_lancamentos()print(proximos_lancamentos)📄 Saída:[{'titulo':'MONSTER HUNTER','estreia':'14/01/2021','poster':'http://afacinemas.com.br/adm/cartazSite/hunter.jpg','descricao':'Baseado no jogo da Capcom chamado Monster Hunter, a tenente Artemis e seus soldados são transportados para um novo mundo. Lá, eles se envolvem em batalhas imponentes, buscando desesperadamente a sobrevivência contra bestas gigantes portadoras de habilidades surreais.','classificacao':'14 ANOS','genero':'AÇÃO','duracao':'110min'},...]🔍 Buscando os preços dos ingressosfromafacinemas_scraperimportScraperscraper=Scraper()precos_ingressos=afa.get_precos_ingressos(10)# código do cinemaprint(precos_ingressos)📄 Saída:[{'dia_semana':'Domingo','precos':[{'descricao':'Inteira 2D','valor':24.0},{'descricao':'Meia 2D','valor':12.0},{'descricao':'Inteira 3D','valor':24.0},{'descricao':'Meia 3D','valor':12.0}]},...]🔍 Buscando a programação de um cinemafromafacinemas_scraperimportScraperscraper=Scraper()programacao=afa.get_programacao(10,"2022-06-30")print(programacao))📄 Saída:[{'codigo':'521','titulo':'LIGHTYEAR','urlCapa':'http://afacinemas.com.br/cartazSite/light.jpg','classificacao':'LIVRE','genero':'ANIMAÇÃO','duracao':'100 min','sinopse':'Lightyear é uma aventura que apresenta a história definitiva da origem do herói que inspirou o brinquedo, o Buzz Lightyear, apresentando o lendário Patrulheiro Espacial que conquistou fãs de todas as gerações.','sessoes':[{'sala':'Sala 1','horario':'16:00','audio':'DUB','imagem':'2D'},{'sala':'Sala 1','horario':'18:15','audio':'DUB','imagem':'2D'}]...
af-adapter
AF-Adapter (Attention-FFN Adapter): Enhanced Continual PretrainingIntroductionThis repository contains the code for the paperAF-Adapter: Enhanced Continual Pretraining for Building Chinese Biomedical Language Model.Installationpipinstallaf-adapterUsageTODOSeesciptsandexamplesdirectory for more details.
afaligner
afalignerOverviewafaligneris a Python library for automatic text and audio synchronization (a.k.a. forced aligner). You give it a list of text files and a list of audio files that contain the narrated text, and it produces a mapping between text fragments and the corresponding audio fragments.afaligneris used in thesyncabookcommand-line tool to produce EPUB3 with Media Overlays ebooks and has been developed for this specific purpose. If you want to create an ebook with synchronized text and audio, consider usingsyncabookinstead of usingafalignerdirectly.afalignerworks by synthesizing text and then aligning synthesized and recorded audio using a variation of theDTW(Dynamic Time Warping) algorithm. The main features of the algorithm are:It can handle structural differences in the beginning and in the end of files, which is often the case with audiobooks (e.g. disclaimers).It finds an approximation to an optimal warping path in linear time and space using the FastDTW approach. This and the fact that the algorithm is implemented in C make it pretty fast compared to other forced aligners.It can, with varying success, align differently split text and audio.afalignerwas inspired byaeneasand works in a similar way. It usesaeneasas a dependency for text synthesis and MFCC extraction.Supported platformsafalignerworks on 64-bit Mac OS and Linux. Windows is not currently supported (you may try to use a VM).RequirementsPython (>= 3.6)FFmpegeSpeakPython packages:aeneas,numpy,jinja2InstallationInstallPython(>= 3.6)InstallFFmpegandeSpeakInstallnumpy:pip install numpyInstallafaligner:pip install afalignerOr if you want to modify theafaligner's source code:Get the repository:git clone https://github.com/r4victor/afaligner/ && cd afalignerInstallafalignerin editable mode:pip install -e .Running testsInstallpytest:pip install pytestRun tests:python -m pytest tests/Installation via DockerInstalling all theafaligner's dependencies can be tedious, so the library comes with Dockerfile. You can use it to build a Debian-based Docker image that containsafaligneritself and all its dependencies. Alternatively, you can use Dockerfile as a reference to installafaligneron your machine.Installation via Docker:Get the repository:git clone https://github.com/r4victor/afaligner/ && cd afalignerBuild an image:docker build -t afaligner .Now you can run the container like so:docker run -ti afalignerIt enters bash. You can run Python andimport afaligner. To do something useful, you may need to mount your code that usesafaligneras a volume.Usageafalignerprovides only one function calledalign()that takes a text directory, an audio directory, and a set of output parameters and returns a sync map (a mapping from text fragments to their time positions in audio files). If the output directory is specified, it also writes the result in the JSON or SMIL format to that directory. The call may look like this:fromafalignerimportalignsync_map=align('ebooks/demoebook/text/','ebooks/demoebook/audio/',output_dir='ebooks/demoebook/smil/',output_format='smil',sync_map_text_path_prefix='../text/',sync_map_audio_path_prefix='../audio/')andsync_maphas the following structure:{"p001.xhtml":{"f001":{"audio_file":"p001.mp3","begin_time":"0:00:00.000","end_time":"0:00:02.600",},"f002":{"audio_file":"p001.mp3","begin_time":"0:00:02.600","end_time":"0:00:05.880",},# ...},"p002.xhtml":{"f016":{"audio_file":"p002.mp3","begin_time":"0:00:00.000","end_time":"0:00:03.040",}# ...},}For more details, please refer to docstrings.Troubleshootingpip install afalignermay not work on macOS if it tries to compile auniversal library. This seems to be becauseaeneascomplies only on x86_64. I got an error when using Python 3.9. The following command fixes it:ARCHFLAGS="-arch x86_64" pip install afaligner
afam
afam - ASC Files Analyzing ModuleThis package allows the user to analyze a ASC file, created by the EDF2ASC translator program of SR Research. It converts selected events and samples from the EyeLink EDF file into text, and sorts and formats the data into a form that is easier to work with.It helps to perform the following operations:Opening and closing the ASC file.Matching words and messages to keywords (tokens).Reading data items from the file, including recording start, button presses, eye events and messages and samples.It contains the following event & sample classes:ASC_BUTTON- a dataclass used to store the data from a "BUTTON" lineASC_EBLINK- a dataclass used to store the data from an "EBLINK" lineASC_ESACC- a dataclass used to store the data from an "ESACC" lineASC_EFIX- a dataclass used to store the data from an "EFIX" lineASC_INPUT- a dataclass used to store the data from a "INPUT" lineASC_MSG- a dataclass used to store the data from a "MSG" lineASC_SBLINK- a dataclass used to store the data from a "SBLINK" lineASC_SSACC- a dataclass used to store the data from a "SSACC" lineASC_SFIX- a dataclass used to store the data from a "SFIX" lineASC_MONO- a dataclass used to store the data from a monocular "SAMPLE" lineASC_BINO- a dataclass used to store the data from a binocular "SAMPLE" lineInstallation$pipinstallafamUsageimportafamdataset=afam.read_asc(file_name)ContributingInterested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.Licenseafamwas created by Christoph Anzengruber. It is licensed under the terms of the GNU General Public License v3.0 license.Creditsafamwas created withcookiecutterand thepy-pkgs-cookiecuttertemplate.
afancontrol
afancontrolstands for “Advanced fancontrol”. Think of it asfancontrolwith more advanced configuration abilities.afancontrolmeasures temperatures from sensors, computes the required airflow and sets PWM fan speeds accordingly.The docs are available athttps://afancontrol.readthedocs.io/.
afanimation
afanimationOverviewDescriptionThis is a simple python loading animation including funny expression. You can make people waiting completion of tasks less bored.RequirementModuleenumEnvironmentPython 2.7 or above.Usageimport afanimation a = afanimation.Animation() a.start() ....Some loading tasks.... a.stop()Installpip install afanimationLicenceMITAuthor[Aoi Fukuoka] (https://github.com/aoifukuoka)
afanlife
知识星球:AFAN的金融科技
afapi
UNKNOWN
afaq-dl
Download the online book An Anarchist FAQ (AFAQ) convert the HTML to Markdown and push the changes to the afaq repository.
afar
AfarOne man's magic is another man's engineeringRobert A. HeinleinInstallationafarmay be installed with pip:pipinstallafaror withconda:condainstall-cconda-forgeafarWhat is it?afarallows you to run code on a remoteDaskclusterusing context managers andIPython magics. For example:importafarfromdask.distributedimportClientclient=Client()withafar.run,remotely:importdask_cudfdf=dask_cudf.read_parquet("s3://...")result=df.sum().compute()Outside the context,resultis aDask Futurewhose data resides on a worker.result.result()is necessary to copy the data locally.By default, only the last assignment is saved. One can specify which variables to save:withafar.run("one","two"),remotely:one=1two=one+1oneandtwoare now both Futures. They can be used directly in otherafar.runcontexts:withafar.runasdata,remotely:three=one+twoassertthree.result()==3assertdata["three"].result()==3dataabove is a dictionary of variable names to Futures. It may be necessary at times to get the data from here. Alternatively, you may pass a mapping toafar.runto use as the data.run=afar.run(data={"four":4})withrun,remotely:seven=three+fourassertrun.data["seven"].result()==7If you want to automatically gather the data locally (to avoid calling.result()), useafar.getinstead ofafar.run:withafar.get,remotely:five=two+threeassertfive==5Interactivity in JupyterThere are several enhancements when usingafarin Jupyter Notebook or Qt console, JupyterLab, or any IPython-based frontend that supports rich display.The rich repr of the final expression will be displayed if it's not an assignment:withafar.run,remotely:three+seven# displays 10!Printing is captured and displayed locally:withafar.run,remotely:print(three)print(seven,file=sys.stderr)# 3# 7These are done asynchronously usingipywidgets.Magic!First loadafarmagic extension:%load_extafarNow you can useafaras line or cell magic.%%afaris likewith afar.run, remotely:. It can optionally accept a list of variable names to save:%%afarx,yx=1y=x+1andz=%afarx+yIs this a good idea?I don't know, but it sure is a joy to use 😃 !For motivation, seehttps://github.com/dask/distributed/issues/4003It's natural to be skeptical of unconventional syntax. And magic.afaris both unconventional and magical, yet it also works well and is surprisinglyfun! Why not give it a try to see what you think?We're still exploring the usability ofafarand want to hear what you think. As you're learningafar, please ask yourself questions such as:can we spell anything better?does this offer opportunities?what is surprising?what is lacking?Here's an example of an opportunity:on_gpus=afar.remotely(resources={"GPU":1})withafar.run,on_gpus:...This now works! Keyword arguments toremotelywill be passed toclient.submit.I don't know about you, but I think this is starting to look and feel kinda nice, and it could probably be even better :)Caveats and GotchasRepeatedly copying dataafarautomatically gets the data it needs--and only the data it needs--from the outer scope and sends it to the Dask cluster to compute on. Since we don't know whether local data has been modified between calls toafar, we serialize and send local variables every time we userunorget. This is generally fine: it works, it's safe, and is usually fast enough. However, if you do this frequently with large-ish data, the performance could suffer, and you may be using more memory on your local machine than necessary.With Dask, a common pattern is to send data to the cluster withscatterand get aFutureback. This works:A=np.arange(10**7)A=client.scatter(A)withafar.run,remotely:B=A+1# A and B are now both Futures; their data is on the clusterAnother option is to passdatatorun:run=afar.run(data={"A":np.arange(10**7)})withafar.run,remotely:B=A+1# run.data["A"] and B are now both Futures; their data is on the clusterHere's a nifty trick to use if you're in an IPython notebook: usedata=globals()!run=afar.run(data=globals())A=np.arange(10**7)withrun,remotely:B=A+1# A and B are now both Futures; their data is on the clusterMutating remote dataAs with any Dask workload, one should be careful to not modify remote data that may be reused.Mutating local dataSimilarly, code run remotely isn't able to mutate local variables. For example:d={}withafar.run,remotely:d['key']='value'# d == {}✨ This code is highly experimental and magical! ✨
afase
Placeholder to avoid pypi dependency injection issues
afasi
afasiFuzz a language by mixing up only few words.License: MITDocumentationUser and developerdocumentation of afasi.Bug TrackerFeature requests and bug reports are best entered in thetodos of afasi.Primary Source repositoryThe primary source ofafasilives somewhere on a mountain in Central Switzerland. But, we use decentralized version control (git), so any clone can become the source to everyone's benefit, no central only code. Anyway, the preferred public clones ofafasiare:on codeberg- a democratic community-driven, non-profit software development platform operated by Codeberg e.V.at sourcehut- a collection of tools useful for software development.StatusBeta.Note: The default branch isdefault.
afb
Abstract Factory BrokerAbstract Factory Broker (afb) is a library that facilitates abstract factory management. It introduces a mechanism for transforming configuration files into Python objects through a network of abstract factories, allowing flexible specification of execution behavior.SetupThis library supports Python 2.7, 3.5+.$pipinstallafbDocumentationsMechanism: Description onafb's mechanismUsage Guide: Description on usage details
afb-search
No description available on PyPI.
afcpy
No description available on PyPI.
afctl
afctlThe proposed CLI tool is authored to make creating and deployment of airflow projects faster and smoother. As of now, there is no tool out there that can empower the user to create a boilerplate code structure for airflow projects and make development + deployment of projects seamless.RequirementsPython 3.5+DockerGetting Started1. InstallationCreate a new python virtualenv. You can use the following command.python3-mvenv<name>Activate your virtualenvsource/path_to_venv/bin/activatepip3installafctl2. Initialize a new afctl project.The project is created in your present working directory. Along with this a configuration file with the same name is generated in/home/.afctl_configsdirectory.afctlinit<nameoftheproject>Eg.afctlinitproject_demoThe following directory structure will be generated. ├──deployments │└──project_demo-docker-compose.yml ├──migrations ├──plugins ├──project_demo │├──commons │└──dags ├──requirements.txt └──testsIf you already have a git repository and want to turn it into an afctl project. Run the following command :-afctlinit.3. Add a new module in the project.afctlgeneratemodule-n<nameofthemodule>The following directory structure will be generated :afctlgeneratemodule-nfirst_module afctlgeneratemodule-nsecond_module . ├──deployments │└──project_demo-docker-compose.yml ├──migrations ├──plugins ├──project_demo │├──commons │└──dags │├──first_module │└──second_module ├──requirements.txt └──tests├──first_module└──second_module4. Generate dagafctlgeneratedag-n<nameofdag>-m<nameofmodule>The following directory structure will be generate :afctlgeneratedag-nnew-mfirst_module . ├──deployments │└──project_demo-docker-compose.yml ├──migrations ├──plugins ├──project_demo │├──commons │└──dags │├──first_module ││└──new_dag.py │└──second_module ├──requirements.txt └──tests├──first_module└──second_moduleThe dag file will look like this :fromairflowimportDAGfromdatetimeimportdatetime,timedeltadefault_args={'owner':'project_demo',# 'depends_on_past': ,# 'start_date': ,# 'email': ,# 'email_on_failure': ,# 'email_on_retry': ,# 'retries': 0}dag=DAG(dag_id='new',default_args=default_args,schedule_interval='@once')5. Deploy project locallyYou can add python packages that will be required by your dags inrequirements.txt. They will automatically get installed.To deploy your project, run the following command (make sure docker is running) :afctldeploylocalIf you do not want to see the logs, you can runafctldeploylocal-dThis will run it in detached mode and won't print the logs on the console.You can access your airflow webserver on browser atlocalhost:80806. Deploy project on productionHere we will be deploying our project toQubole. Sign up at us.qubole.com.add git-origin and access-token (if want to keep the project as private repo on Github) to the configs.See howPush the project once completed to Github.Deploying to Qubole will require adding deployment configurations.afctlconfigadd-dqubole-n<nameofdeployment>-e<env>-c<cluster-label>-t<auth-token>This command will modify your config file. You can see your config file with the following command :afctlconfigshowFor example -afctlconfigadd-dqubole-ndemo-ehttps://api.qubole.com-cairflow_1102-tkhd34djs3To deploy run the following commandafctldeployqubole-n<name>The following video also contains all the steps of deploying project using afctl -https://www.youtube.com/watch?v=A4rcZDGtJME&feature=youtu.beManage configurationsThe configuration file is used for deployment contains the following information.global:-airflow_version:-git:--origin:--access-token:deployment:-qubole:--local:---compose:airflow_versioncan be added to the project when you initialize the project.afctlinit<name>-v<version>global configs (airflow_version, origin, access-token) can all be added/ updated with the following command :afctlconfigglobal-o<git-origin>-t<access-token>-v<airflow_version>UsageCommands right now supported areinitconfigdeploylistgenerateTo learn more, runafctl<command>-hCautionNot yet ported for Windows.CreditsDocker-compose file :https://github.com/puckel/docker-airflow
afdata
No description available on PyPI.
afdcli
Waveform and Station Downloading ClientThis tool was created to automate waveform and station data download. Please cite appropriate authorities if you are using the data for non-commercial purposes. Commercial use of the data without permission is forbidden. Please read the printed warnings from the data centers printed out.Installationpipinstallnumpy pipinstallafdcliStation Dataget_stations(network, station, starttime, endtime, **kwargs)Arguments:network: Network code, wildcards allowed ("T?","*")station: Station code, wildcards allowed ("B?ZM","B*")starttime: start time string in ISO format at UTC ("2020-03-27T06:00:13Z")endtime: start time string in ISO format at UTC ("2020-03-28T06:00:13Z")Parameters:attach_response: Returns instrument responseminlatitude,maxlatitude,minlongitude,maxlongitude: Window of coordinates of stationsWaveform Dataget_waveforms(network, station, starttime, endtime, **kwargs)Arguments:network: Network code, wildcards allowed ("T?","*")station: Station code, wildcards allowed ("B?ZM","B*")starttime: start time string in ISO format at UTC ("2020-03-27T06:00:13Z")endtime: start time string in ISO format at UTC ("2020-03-28T06:00:13Z")Parameters:minlatitude,maxlatitude,minlongitude,maxlongitude: Window of coordinates of stationsdata_format:"mseed"for miniseed or"fseed"for fullseed formatsfilename: filename to save the file (not implemented)Examplesdownloading waveforms:from afdcli.client import Client c = Client() c.get_waveforms('*','BO*', '2020-06-25T17:19:16Z', '2020-06-26T17:20:16Z')downloading stations with instrument responsefrom afdcli.client import Client c = Client() c.get_stations('*','BO*', '2020-06-25T17:19:16Z', '2020-06-26T17:20:16Z', instrument_response=True)
afdd
Example PackageThis is a simple example package. You can useGithub-flavored Markdownto write your content.
afdd-distributions
No description available on PyPI.
afdiankit
✨ 一个现代化的爱发电 Python SDK ✨✨ 同时支持同步与异步调用 ✨安装方式pipinstallafdiankit# or, use poetrypoetryaddafdiankit# or, use pdmpdmaddafdiankit使用方法使用爱发电网页端 API获取网页端auth_token在爱发电网页端打开 F12 开发者工具,切换到 Console(控制台)标签页,输入以下 JavaScript 代码获取网页端 auth tokendocument.cookie.match(newRegExp("(^| )auth_token=([^;]+)"))[2];调用afdiankit示例:fromafdiankitimportAfdian,TokenAuthStrategyafdian=Afdian("<auth_token>")# 或者显式调用 TokenAuthStrategygithub=Afdian(TokenAuthStrategy("<auth_token>"))使用开放平台 API在开发者后台生成 webhook 的 token,复制user_id。调用afdiankit示例:fromafdiankitimportAfdian,TokenAuthStrategyafdian=Afdian()user_id="<user_id>"token="<token>"afdian.open.post_ping(token=token,user_id=user_id,params={"a":"1"},ts=int(time.time())).json()许可证项目源代码使用 MIT 许可证授权,见LICENSE。鸣谢yanyongyu/githubkit
afdko
Adobe Font Development Kit for OpenType (AFDKO)The AFDKO is a set of tools for building OpenType font files from PostScript and TrueType font data.This repository contains the data files, Python scripts, and sources for the command line programs that comprise the AFDKO. The project uses theApache 2.0 Open Source license. Please note that the AFDKO makes use of several dependencies, listed in the requirements.txt file, which will automatically be installed if you install AFDKO withpip. Most of these dependencies are BSD or MIT license, with the exception oftqdm, which isMPL 2.0.Please refer to theAFDKO Overviewfor a more detailed description of what is included in the package.Please see thewikifor additional information, such as links to reference materials and related projects.📣 Recent NewsThe Python port of psautohint was (re)integrated into the AFDKO repository as "otfautohint"More information can be found indocs/otfautohint_Notes.mdInstallationThe AFDKO requiresPython3.8 or later. It should work with any Python > 3.8, but occasionally tool-chain components and dependencies don't keep pace with major Python releases, so there might be some lag time while they catch up.Releases are available on thePython Package Index(PyPI) and can be installed withpip.Note for macOS users: we recommend that you donotuse the system Python. Among other reasons, some versions of macOS ship with Python 2 and the latest version of the AFDKO is only available for Python 3. You can find instructions for using Brew to install Python 3 on macOS here:Installing Python 3 on Mac OS X. Also:pyenvis a great tool for installing and managing multiple Python versions on macOS.Note for all users: weSTRONGLYrecommend the use of a Python virtual environment (venv) and the use ofpython -m pip install <package>to install all packages (not just AFDKO). Callingpip installdirectly can result in the wrongpipbeing called, and the package landing in the wrong location. The combination of using avenv+python -m pip installhelps to ensure that pip-managed packages land in the right place.Note for Linux users (and users of other platforms that are not macOS or Windows): When there is not a pre-built "wheel" for your platformpipwill attempt to build the C and C++ portions of the package from source. This process will only succeed if both the C and C++ development tools and libuuid are installed. Seebuild from sourcebelow.InstallingOption 1 (Recommended)Create a virtual environment:python -m venv afdko_envActivate the virtual environment:macOS & Linuxsource afdko_env/bin/activateWindowsafdko_env\Scripts\activate.batInstallafdko:python -m pip install afdkoInstalling theafdkoinside a virtual environment prevents conflicts between its dependencies and other modules installed globally.Option 2 (not recommended unless there is a global conflict)Local user installationafdko(info):python -m pip install --user afdkoUpdatingUse the-U(or--upgrade) option to update the afdko (and its dependencies) to the newest stable release:python -m pip install -U afdkoTo get pre-release and in-development versions, use the--preflag:python -m pip install -U afdko --preUninstallingTo remove the afdko package use the command:python -m pip uninstall afdkoBuild from sourceFirst you must have installed the development tools for your platform.On macOS, install these with:xcode-select --installOn Linux (Ubuntu 17.10 LTS or later), install these with:apt-get -y install python3.8 apt-get -y install python-pip apt-get -y install python-dev apt-get -y install uuid-devOn other POSIX-like operating systems,libuuidand its header files may be in a package namedlibuuid-develorutil-linux-libs. The source code forlibuuidis maintained in theutil-linux repository.On Windows, you need Visual Studio 2017 or later.To build theafdkofrom source, clone theafdko GitHub repository, ensure thewheelmodule is installed (python -m pip install wheel), thencdto the top-level directory of the afdko, and run:python -m pip install .DevelopingIf you'd like to develop & debug AFDKO using Xcode, run:CMake -G Xcode .For further information on building from source seedocs/FDK_Build_Notes.md.NoteIt's not possible to install the afdko in editable/develop mode usingpython -m pip install -e .; this is because the toolkit includes binary C executables which setup.py tries to install in the bin/ (or Scripts/) folder, however this process was only meant to be used with text-based scripts (either written in Python or a shell scripting language). To work around this problem (which really only impacts the few core afdko developers who need to get live feedback as they modify the source files) you can use alternative methods like exporting a PYTHONPATH, using a .pth file or similar hacks. For further details readthis comment.Major changes from version 2.5.xThe AFDKO has been restructured so that it can be installed as a Python package. It now depends on the user's Python interpreter, and no longer contains its own Python interpreter.Two programs,ISandcheckoutlineswere dropped because their source code could not be open-sourced. These tools are available inrelease version 2.5.65322 and older.NoteIf you install the old AFDKO as well as the new PyPI afdko package, the tools from the newer version will take precedence over the older. This happens because pip adds the afdko's package path at the beginning of the system's PATH environment variable, whereas the old installer adds it at the end; this modification to PATH is not undone by the uninstaller. If you want to completely remove the path to the newer version, you will have to edit the PATH. On the Mac, this means editing the line in your login file that sets the PATH variable. On Windows, this means editing the PATH environment variable in the system's Control Panel.Changelog4.0.1 (released 2024-01-16)[tx] Fix build failures discovered by an upcoming gcc-14 release (thanks @trofi!)(#1730)[tx] parse multiple attrs in xmlNode (#1720)[makeotfexe] Add guards for h->otl == NULL before calling otlSubtableAdd (#1716)[otfstemhist] Fix otfstemhist bugs (#1703)[sfntedit] Fix bug when attempting to add non-existent file (#1696)[documentation] Updates (#1711)[requirements.txt] Update dependencies, remove psautohint from dependencies (#1725)[ci] Add Python 3.11 to CI test matrix (#1718)4.0.0 (released 2023-09-11)The Python port of psautohint was (re)integrated into the AFDKO repository as "otfautohint"Changes Summary:[Name-Change] The name-change better reflects how hinted input is now published, and lets the new version coexist with the old version when needed.[AFDKO Tools Updated] Other tools in AFDKO have been updated to call oftautohint instead of psautohint, and the dependency on the latter's repository has been removed.[Stopping Psautohint Development] We expect to stop development of psautohint after this v4.0.0 release.[Improvements] The new code fixes a number of bugs and in our judgement produces better results on average. It also uses a slightly different encoding in UFO glif files. Accordingly, users should expect that running the new code results in many differences compared with psautohint, but this should be a one-time change.[Variable CFF Hinting] The new code also supports hinting of variable CFF-based fonts, including directly hinting a built CFF2 font. Glyphs that include overlap will typically be hinted close to how they would have been hinted with overlap removed.[Hinting Time] Because psautohint was partly written in (very old) C code, and otfautohint is written entirely in Python, the new code takes significantly longer to hint an individual glyph. However, we have also enhanced otfautohint to hint different glyphs on multiple CPU cores by default. As a result the tool will be 5-8 times slower when running on a single core but will typically be slightly faster when running on 8 cores.More information can be found indocs/otfautohint_Notes.mdOther changes in v4.0.0: dependency updates.3.9.7 (released 2023-08-14)[buildcff2vf] Don't return zero when input requires compatibilization (#1668)[requirements.txt, tests, ttxn] Update dependencies (#1663,#1675)3.9.6 (released 2023-06-13)[requirements.txt] Update dependencies, unpin specific fonttools version to allow more versions (#1661)[tx] fix segfaults due to old function call (#1649)[hotconv] Fix warning for negative TypoLineGap (#1654) (thanks, @NSGod!)[hotconv] reset dsigCnt in hotReuse() so subsequent conversions add full stub 'DSIG' table (#1648) (thanks, @NSGod!)[hotconv] 'name': fix memory leak in addName() (#1646) (thanks, @NSGod!)[README] Remove LGTM badges (#1650) (thanks, @miguelsousa!)3.9.5 (released 2023-04-24)[python]Drop Python 3.7(#1638)[tx]tx/makeotf glyphOrder bug fix(#1642)[spot] fix name table LANG_TAG_REC_SIZE size definition (thanks, @NSGod!) (#1640)[docs] CID-keyed UFO guide (#1634)[requirements.txt][buildcff2vf_data] Update to fonttools v4.39.3 (#1639)3.9.4 (released 2023-04-06)[tx] FDArray support in CID-Keyed UFOs[tx][libxml2-improved] Move FDArray from fontinfo.plist to lib.plist (#1576)[tx] fix languagegroup visibility (#1620)[tx] Updates to CID-keyed UFO handling (#1628)[tx] revert missing cid fail to warn (#1633)[makeotf] Fix GOADB order of processing multiple unicode assignments (#1615)[spot] fix 'kern' subtable Format3 rightClass memory leak (double allocation) (thanks @NSGod!) (#1627)Small fixes, updates: (#1614,#1624)3.9.3 (released 2023-02-02)CMake github workflow updates:Force static link of libxml2 on both windows and linux (#1607)CMake libxml2 updates:Stop forcing static LibXML2 build on Linux (#1601)Unify cmake libxml build logic (#1597)[docs] Formatting fix-up (#1605)[tx] Restore stack-like behavior of parseGLIF transform pointer (#1595)3.9.2 (released 2023-01-10)tx:[tx] Always use blend for stem storage in cffwrite_t2cstr.c (#1591)[tx] [t2cstr] Use non-xxxVF paths in t2cstr when flattening and outputting CFF2 (#1588)UFO parsing:[tx] Replace UFO .glif file parsing with libxml2 (#1556)[tx] Replace UFO content.plist/glyphList parsing with libxml2 (#1543)[tx] Other related uforead & ufowrite parsing updates (#1595,#1590,#1568,#1566,#1541,#1537,#1536)[dependencies] add renovate.json (#1545)[agd.py] [comparefamily.py] Fixing the two instances of "rU" (thanks @colinmford !) (#1584)[makeinstancesufo] Add --instance_info option to makeinstancesufo (#1577)[makeinstancesufo] Boost number of makeinstancesufo pool processors by one (#1561)[otf2ttf] Ensure poolCapacity is at least 1 (thanks @Heptazhou !) (#1530)[otf2ttf] Force maxPoolCapacity to be at least 1 (thanks @Heptazhou !)(#1529)3.9.1 (released 2022-07-01)[CMake] Link LibXML2 statically for Linux for bug fix (#1527)[makeotf][tx] Fix some linux compile problems with "bool" (#1524)[tx] Replace UFO lib.plist parsing with libxml2 (#1523)3.9.0 (released 2022-06-23)[tx] Replace UFO fontinfo.plist parsing with libxml2 (#1515,#1517,#1518,#1519)[makeotf] Copy va_list for second use (and add va_end's to avoid leaking) (#1512)[requirements] updated dependencies3.8.3 (released 2022-05-09)[requirements] updated dependencies[docs] Add links to previously opened Windows build issues (#1505)[docs] Fix line wrap in feature file spec (#1509)[ci] Enable Codecov informational checks (#1501)3.8.2 (released 2022-04-11)[tx] Fix Memory Crashes (#1497)[antlr4] ANTLR v4.9.3 Upgrade (#1491)[tx] ignore subr recursion limit (#1484)[tx] Don't parse non-FDArray array of dictionaries in fontinfo.plist (#1478)[requirements] updated dependencies3.8.1 (released 2022-02-24)[tx] Add safety initialization of pdwCtx structure in pdwNew (#1474)[requirements] updated dependencies3.8.0 (released 2022-02-03)[python]Drop Python 3.6, add Python 3.10 support(#1456)[tx] Initialize variables in doFile (#1466)[ci] Build universal2 wheel instead of arm64 (thanks @miguelsousa!) (#1462)[ci] Add macOS arm64 wheel (thanks @miguelsousa!) (#1461)[c] Fix C-code coverage reporting (thanks @miguelsousa!) (#1460)[tx] Preserve intentional duplicate start points when PFA -> UFO (#1452)[tx] Fix unintentional duplicate start points caused by floating-value coordinates when PFA -> UFO (#1448)[README] Fix broken relative link in README (#1424)[ttxn] Update ttxn for fontTools 4.27.0 update (#1423#1418)[otf2ttf] Add throttling to OTF2TTF to avoid hangs on Windows with large CPU (thanks @be5invis!) (#1421,#1420)[requirements] updated dependencies3.7.1 (released 2021-08-31)[makeotfexe]Port of Feature File Parser to Antlr 4(#548,#1367)[spec]OpenType Feature File Specification updated to v1.26with the following (here):includedirective is "statement-only"with the exception ofmark, keywords cannot be used as lookup names or tagslist of valid characters for tags has been updatedtags cannot start with a digit or hyphen[build] Switch to CMake-based builds --see documentation(#1124,#1360,#1384,#1372)[makeinstancesufo] fixes for fontMath 0.8.1 update (#1391)[tx] ufowrite for loop init declaration fix (#1373)[tx] uforead deleting outlines fix (#1370)[tx] Windows line endings in binary files fix (#1361)[makeotf] Fix for makeotf heap use after free (#1356)[tx] uforead, ufowrite, checkoutlinesufo fixes for reading & writing CID-keyed fonts (#1353)[tx] t1read.c add error for fonts surpassing 65000 SID Limit (#1347)[tx] cffread.c data type fix (#1344)[spec] Spec 6.4.iii: 'markClass' instead of 'mark' in example 4 (thanks @moyogo!) (#1336)[checkoutlinesufo] Moved list sort out of loop to not waste time sorting (#1331)[makeotf] aarch64 precision errors fix (#1329)[tests] Add cpplint check (#1325)3.6.2 (released 2021-03-02)[spec] Allow deleting glyphs via Multiple substitution (thanks @simoncozens!) (#1251,#1234,#1294)[makeotfexe] Allow negative internal leading (#1279,#1227)[docs] Clean up README.md (thanks @vladdoster!) (#1280)[cff2vf] Do not assume presence ofSTAT.AxisValueArray(#1283,#1281)[repo] Re-syncmaster-->develop(#1285)[tests] Skip version number in diff of makeotfexe test (#1286)[spot] re-format documentation (#1287)[checkoutlinesufo] Addignore-contour-orderflag (#1289)[makeinstancesufo] Implement multiprocessing (#1293,#1161)[checkoutlinesufo] Fixrestore_contour_order(#1296,#1291)[makeotf] don't fail when converting'post'table format 3 -> 2 (#1303,#1301)[makeotfexe] increase GOADB UV/Alias name string length limit (#1311,#1310)[checkoutlinesufo] Fix logic for reporting duplicated start point (#1318,#1315)[tests, tx] increase precision (float-->double) to fix i586 failing tests (#1321,#1216,#1163)3.6.1 (released 2021-01-13)[packaging] Fix Windows wheel (#1278,#1277)3.6.0 (released 2020-12-17)[checkoutlinesufo] Add CID support (#1224)[checkoutlinesufo] Fix nested loop variable (#1231)[tests] Update date regex to skip date & time metrics (#1232)[docs] Fix typo (Thanks, @djr11!) (#1236)[docs] Describe tab-separated format of GOADB (Thanks, @djr11!) (#1238)[docs] Fix typo (Thanks, @ln-north!) (#1241)[checkoutlinesufo] Update progress bar (#1243)[checkoutlinesufo] Implement-o(output file) option (#1244)[ci, tests] Use GitHub Actions for everything (#1254,#1265)[makeotfexe] Update help/usage documentation (#1262)[comparefamily, pdflib] Fix== Nonecomparisons (#1264)[checkoutlinesufo] Remove UFO2-as-UFO3 hack (now up-converts to UFO3) (#1135,#1270)3.5.1 (released 2020-09-15)[tx] improve robustness (#1187,#1188)[makeotfexe] supportOS/2.sFamilyClassin feature files (#1191,#1192)[docs] correct description of STAT location values (#1190,#1193)[makeotfexe] fix check of duplicates in STAT Format 4 Axis Values (#1195)[ttfcomponentizer] add warning for empty psnames (#1198,#1199)[buildcff2vf] add STAT validation (#1200)[makeotf] allow anonymous glyphclass in LookupFlags (#1206)[agd] support 5-digit codepoints in AGD file (#1207,#1208)[makeinstancesufo] make designspace attributes lowercase (#1211,#1212)[makeotf] remove hyphen for STAT range definitions (#1197,#1213)[docs] clarify use ofpython3andpip3in README (#1215)[pdflib] fix circle-drawing bug (thanks @bcirc!) (#1218,#1219])[docs] clarify description of glyph name ranges (thanks @PeterCon!) (#1222,#1211)[checkoutlinesufo] add support for CID-keyed fonts (#1224)3.5.0 (released 2020-07-16)[docs] fix broken links, add new links, fix typos, add templates (#1140,#1151,#1176)[tx] many fixes related to uninitialized variables, buffer/stack overflows, etc. Thanks to @antlarr-suse and internal contributors for chasing these down and fixing! (#1141,#1180,#1182,#1187,#1188)[makeotf] Drop Multiple Master in OpenType support (thanks @khaledhosny!) (#995,#1144)[checkoutlinesufo] Improve overlap removal (#790,#1146,#1170)[fontsetplot, ttfdecomponentizer] Fix proofing issues (#1125,#1148)[requirements] remove dependency on standalone cu2qu (integrated into fontTools 4.7.0) (#1150)[makeinstancesufo] fixuse-varlibflag, check for extrapolation/warn when using varLib (#1152,#1155)[makeotf] update a misleading comment regarding how CodePageRange bits are set (#1156,#1157)[sfntedit, sfntdiff] fix failures with long file/pathnames (#1139,#1159)[tx] don't write FontMatrix in CFF2 FontDict (cffsubr #13,#1165)[makeotf, makeotfexe] STAT table updates and improvements (#1164,#1166,#1174,#1177,#1178,#1179)[makeotf] Check for PostScript name in FontMenuNameDB (#1171,#1172)[autohint, stemhist]REMOVED FROM AFDKO(use psautohint/psstemhist) (#826,#827,#1175)[makeotfexe] fix stack buffer overflow and use-after-free issues (#1183,#1184)[mergefonts] fix stack buffer overflow issue (#1185)[spot] fix heap buffer overflow issue (#1186)3.4.0 (released 2020-05-26)[makeotf] STAT table support (thanks @khaledhosny!) (#176,#1127)[makeotf] Support multiple chained lookups per position (thanks @simoncozens!) (#1119,#1132)[makeotf] Allow UTF-8 input for name strings (thanks @khaledhosny!) (#165,#1133)[spot] prevent string overflow (#1136)[spec] Update STAT examples, multiple lookup documentation, fix broken links (#1137,#1140)[sfntedit] Use portablerename(#1138)[absfont, ttread] Initialize variables before use (thanks @antlarr-suse!) (#1141)3.3.0 (released 2020-05-01)[otf2ttf] update LSB in hmtx to match glyph xMin (#1114)[dependencies] update to latest fontTools, MutatorMath, ufonormalizer (#1113,#1120)[c tools] improved robustness (#1121,#1122,#1123)[makeinstancesufo] add option to use varLib instead of MutatorMath (#1126)3.2.1 (released 2020-03-27)[sfntedit] cleaned up help string (#1084)[docs] Updated AFDKO Overview doc (#1091)[waterfallplot] fixed crash (#1094,#1092)[ttfdecomponentizer] add ttfdecomponentizer tool (#1096)[buildcff2vf] update to use newfontTools.varLibexceptions (#1097,#1088)[ufotools] clean up (remove unused code) (#1098)[docs] clarify allowed use ofscriptandlanguagekeywords in feature files (#1099,#990)[requirements] fix issue with PyUp configuration (re-enable automatic updates)[requirements] relax constraints onufoProcessorversion (#1102)[spec] replace invalid example in OpenType Feature File specification (#1106,#1107)[makeotfexe] fix bug which could cause a crash with some fonts (#1108,#1109)3.2.0 (released 2020-01-24)[ttfcomponentizer] minor updates and improvements (#1069,#1072)[tests] fix date-based bug in tx tests (#1076)[autohint] and [stemhist] now simply redirect input to psautohint/psstemhist (#1077)[makeotfexe] fix bug in font generation with multiplelanguagesystementries (#1080,#1081)3.1.0 (released 2019-12-16)[ci] updates and maintenance on several CI services:added LGTM.com (Semmle) analyze-on-Pull-Request supportremoved Codacy checkset up Azure Pipeline with Mac, Windows, and Linux testing[tests] Add filtering for fontToolsDeprecationWarnings[tx] Add descriptions of optimization options (tx -cffhelp) (#938,#939)[tx] Fix handling of blend options (#940,#941)[fdkutils] Improve shell command handling, increase test coverage (#946)[comparefamily] Trimagd.pyto only parts needed to keepcomparefamilyrunning (#948)[tx tests] Improved tests (#949,#950)[fdkutils] Add TTC support (#952)[tx] Add variable font support to ttread (#957)[tx] A whole bunch of improvements and fixes (#929,#954,#955,#956,#958,#959,#960,#961,#962,#964,#1045,#1046)[makeotfexe] Fix memory consumption issue (#968,#965)[makeotfexe] Import fealib tests (thanks @khaledhosny!) (#973)[makeinstancesufo] Fix potential issue with temp files (#976)[otc2otf] Rewrite, fix-toption, increase test coverage (#978)[python][c] Numerous fixes for LGTM-reported issues (LGTM.com/afdko)[makeotf] Fix path issue in Mac OS X 10.15 Catalina (#991)[requirements] Relax pinning (#997,#408)[fea-spec]Fix example for mark glyph positioning (thanks @anthrotype!) (#999)Improve formatting and grammar (thanks @sergeresko!) (#1031)[otf2ttf] Enhance for Collections, parallel processing, and file wildcards (thanks @msoxzw!) (#1000)[makeotfexe] Increase code coverage (thanks @khaledhosny!) (#1008)[docs] update documentation of hex format for GlyphOrderAndAliasDB, multiple Unicodes (thanks @benkiel!) (#1028,#1024)[makeotfexe] fix calculation of OS/2.ulCodePageRange bits (#1039,#1040)[dependencies] UpdatepsautohintandfontToolsto latest (#1043,#1057)3.0.1 (released 2019-08-22)[tx] Dump eachflexhint as a single line (#915)[tx] Fixed handling ofhmtxvalues when instantiating a CFF2 font with shuffled regions (#913)[tx] Fixed handling of missing glyph names with-svg,-cefand-afmoptions (#905,#908)[tx] Improved handling of defective CFF2 fonts (#903,#906)[ufotools] Corrected the ordering of attributes in GLIF-file<point>elements to "x, y, type" (from "type, x, y") (#900)[makeinstancesufo] Various fixes and enhancements (#899)[checkoutlinesufo] Fixed support for non-UFO font formats (#898,#911)[tx] Added support for writting FDSelect format 4 (#890)3.0.0 (released 2019-08-07)This version supports Python 3.6+ ONLYNOTE: as a result of switching to new components for writing XML, some formatting of UFO-related XML output is slightly different from previous versions of AFDKO (ordering of attributes, self-closing element tags, indents).[python] Drop support for Python 2.7 (#741)[tx] Only use PUA Unicodes for unencoded glyphs in svg output (#822)[buildcff2vf] Use correct default master for compatibilization (#816)[buildcff2vf] Keep all OT features when subsetting (#817)[buildcff2vf] Fix bug in compatibilization (#825)[various Python] Use fontTools.misc.plistlib (#711)[various Python] Use fontTools.misc.etree (#712)[various C/C++] Improve robustness in several tools (#833)[makeotf] Use absolute paths for temp files (#828)[tx] Write a vsindex before the first blend (if needed) (#845)[tx] Decrement subroutine depth after subroutine call (#846)[otf2ttf] Remove VORG table from TTF output (#863)[makeotf] Prevent code execution (#780,#877)[makeotfexe] Port tx subroutinizer (#331)[tx] Add support for reading FDSelect format 4 (#799)[tx] Fix handling of IVS region indices (#835)[makeotfexe, makeotf] Limit maximum value for FontRevision (#876,#877)[pdflib] Consolidate PDF-related files under afdko/pdflib (#880)[tx] Fix bug in generating SVG from font without FontName (#883)2.9.1 (released 2019-06-22)This is the last version that supports Python 2.7[autohint/checkoutlinesufo/ufotools] Fixed and enhanced the glyph hash calculation. The results now matchpsautohintversion 1.9.3c1 (#806)[makeinstancesufo] Thefeatures.feafile the instance fonts may include are now preserved (only if none of the masters have<features copy="1"/>set in the designspace file)[buildmasterotfs] Removed sparse masters workaround[tx] Fixed infinite recursion in call to global subroutines (#775)[spot/makeotfexe] Updated OS/2 Unicode Ranges to match current OpenType specification (#813,#819)[makeotfexe] Fixed MarkToBase bug (NOTE: a font is affected by this bug only when a base anchor record's coordinates match the coordinates of the first mark anchor record) (#815)[makeinstancesufo] Improved validation of UFO sources (#778)2.8.10 (released 2019-05-28)buildcff2vftool was rewritten to support sparse masters, glyph subsets, and to rely more onfontTools.varLib. Existing options were renamed and new ones were added (#792,#800)[mergefonts] Ignore height advance value in UFO glyph files (#795)2.8.9 (released 2019-04-29)OpenType Feature File specification was converted to markdown and is now hosted athttps://adobe-type-tools.github.io/afdko/OpenTypeFeatureFileSpecification.html(#777)[tx] Ignore height advance value in UFO glyph files (#786)2.8.8 (released 2019-03-15)[makeotf] Reverted the preference forfeatures.feafile made inafdkoversion 2.8.6 (#765)[sfntedit] Skip missing tables and issue a warning instead of exiting with fatal error (#160)[sfntdiff] Enabled diff'ing different font formats (#626)2.8.7 (released 2019-03-08)Fixed installation on Cygwin OS (#748)[tx] Fixed blend overflow error (#684)[tx] Fixed error in delta array calculation (#758)[makeotfexe] Fixed detection of offset overflow to a feature parameter (#746)[makeotf] Fixed duplicate warning messages coming from tx (#751)[makeotf] Fixed error message when tool is ran without arguments and default named files cannot be found (#755)Updated AGD.txt (#750)[makeinstancesufo] Fixed failure whenfilenameattribute in designspace's<instance>element has no leading folder path. Fixed copying non-kerning groups. (#753)[makeinstancesufo] Fixed anisotropic interpolation (#756)2.8.6 (released 2019-03-01)Updated FEA syntax spec to allowsubtablestatements in lookups other than PairPos Format 2.[makeotf] Addedfeatures.feato list of default FEA file names, and gave preference to it[tx] Don't fake font name or version if they're not in the source UFO (#437)[makeinstancesufo] Added--ufo-versionoption[otfpdf/ttfpdf] Round glyph bounds values (#128)[otfpdf] Provide a glyphset to the pens (#125)[tx] Get UFO's layer file names from the layer's contents.plist (#740,#703)[ufotools] ReplaceconvertGlyphOutlineToBezString()byget_glyph_bez()frompsautohint(#715)[makeotf] Update and re-format documentation (#702)[makeotf] Use FontTools to copy font tables (#739)[makeotf] Delete zero-size font on failure (#736)2.8.5 (released 2019-02-09)[tx] Improved subroutinization. Removal of futile subroutines is now the default.-no_futileoption has been deprecated (#704)[buildmasterotfs] Fixed failure when master UFOs and designspace file are in the same directory[buildcff2vf] Fixed type error bug[fdkutils] Fixed UnicodeDecodeError on py27 Windows (#719)[tx] Fixed failure processing already-subroutinized CFF2 font (#721)[tx] Fixed wrong entries in Standard Apple Glyph Ordering (#727)[makeotfexe] Added support for shorthand syntax for contextual multiple substitutionssub a b' c by d e;(#725)[makeotfexe] Fixed infinite loop (#728)[makeotfexe] Allow glyph at GID 0 in glyph classes (#726)[ufotools] Skip<dict>elements inside<array>(#700)[tx] Support self-closing<dict/>in UFO's lib.plist (#701)[makeotfexe] Fixed detection of offset overflow error (#731)[makeotfexe] Fixed application ofuseExtensionto anonymous lookups (#321)[tx] Support UFO3 guidelines (#705)2.8.4 (released 2019-01-09)[ufotools] Python 3 fix (#676)[tx] Fixed-dcfoption failing to print CFF2 global subrs (#681)[tx] Fixed subroutinizer 64K limit (#687)[makeinstancesufo] Switched from using mutatorMath to ufoProcessor (#669)[makeinstancesufo] Switched from using autohint to psautohint (#689)[makeotf] Fixed calls tosfntedit(#690)[checkoutlinesufo] Fixed failure to remove overlaps (#239)[checkoutlinesufo] Fixed glyph hashes when using-woption (#692)[spot] Updated OpenType feature tags to v1.8.3 (#693)[makeotfexe] Fixed "glyph not in font" error (#698)[tx] Fixed CFF2 blend/path optimization (#697)[otc2otf] Fixed file path bugs (#708)[ttfcomponentizer] Fixed setting first component flag (#709)[ttfcomponentizer] UpdatemaxpmaxComponentElements value (#710)2.8.3 (released 2018-11-02)Newotf2ttftool that converts OpenType-CFF fonts to TrueType. (#625)[tx] Font and glyph bounding box values are updated now (#618,#655)[makeotfexe] CFF tableFontBBoxvalues are updated now (#617)[makeotfexe] Removed warning about the font's major version number (#622)[makeotfexe] Fixed garbage in subtable overflow messages (#313)[makeotfexe] Clarified path resolution ofincludestatements (#164)[makeotfexe] Raised limit of feature file include recursion to 50 (#628)[mergefonts] Fixed warning messages (#635)[autohint] Fixed failure when path contained spaces (#654)[proofpdf/waterfallplot] Various PDF-related fixes (#638)[beztools] Fixed hintLimit calculation on py3 (#629)[comparefamily] Updated script and language lists to OpenType spec v1.8.3 (#592)[comparefamily] Fixed various crashes (#663, 746ddeb4dc995e9975f9a8851d23ed226811fdaa)[makeinstancesufo] Improved the tool's options (#662)[ufotools] Changed name of UFO processed layer fromAFDKO ProcessedGlyphstocom.adobe.type.processedglyphs(#662)2.8.2 (released 2018-09-18)Switched toautohintexefrompsautohint(v1.8.1) package (#596,#606)Added 64-bit (win_amd64) wheel for Windows (#609)[snftdiff/snftedit] Fixed exit codes (#613)[makeotfexe] Fixed exit codes (#607)[makeotfexe] Fixed bug in setting Unicode values (#609)[makeotf] Fixed calculation of relative paths when the input paths are not on the same drive (#605)2.8.1 (released 2018-09-07)Made the wheels 'universal' py2.py3 (#595)2.8.0 (released 2018-09-07)Added support for Python 3 (#593)Addedpsautohintto the list of installed packages[makeotfexe] Fixed contents ofGDEFtable when usingLigatureCaretByPosandLigatureCaretByIndexkeywords (#556)[stemhist] Fixed exit codes. Removed duplicate results from output and fixed its sorting (#552)[tx] Made subroutinization results deterministic (#541)[makeotfexe] Fixed the creation of secondary lookups withuseMarkFilteringSetflag (#538)[type1] Implemented-hoption. Fixed exit codes (#537)[detype1] Fixed exit codes (#536)[autohint] Fixed file conflicts when running concurrent processes (#534)[makeotf] Fixed-cnoption (#525)[spot] Fixed crash with-t GPOS=7option (#520)[tx] Added support for colon:in UFO glyph names (#518)[makeotf] Fixed-gaand related options (#514)Changed tools' and scripts' names to all lowercase (#511)Major reorganization of directory structure and package structure (#508)[spot] Fixed crash with-t GPOS=6option (#500)[makeotfexe] Allow mark-to-base statements to reference different sets of mark classes (#499)[makeotfexe] Allow any languages underDFLTscript (#498)[tx] Exit gracefully when a fatal error occurs (#495)Removed scriptsBuildMMFont.py,checkUFOProcessedLayer.pyand toolscopycffcharstrings,kerncheck,makeinstances(#490,#558)[checkoutlinesufo] Support processing UFO3 fonts (#482)[autohint/checkoutlinesufo/makeinstancesufo] Harmonized dot-progress (#478)[tx] Fixed incorrect warning when converting to CFF a CFF2 variable font with non-varying glyphs (#476)[tx] Fixed failure to dump CFF2 variable font containing many hints. Fixed bug in writing CFF2 fonts with FDSelect (#467)[makeotfexe] Zero the advance width of source glyphs with negative advance width (#460)[makeotf] Support file paths containing non-ASCII characters. Fixed warning about feature file not containing avertfeature. Removed non-essentialAdobe Cmapsfiles. Fixed-shw/-nshwoptions. Fixed documentation of-cs/-cloptions. Changed handling of CID fonts: the output OTF is now saved in the same directory as the input font (this matches the handling of non-CID formats; use option-o .to get the old behavior). Support building in release mode from Type 1 font without GlyphOrderAndAliasDB file (#458)[tx] Fixed crash processing UFOs containing<note>elements (#455)[tx] Fixed calculation of FontBBox values. Fixed crash processing UFOs containing<anchor>elements. Added support for UFO's empty arrays expressed as<array/>instead of<array></array>(#452)[makeotf] Removed support for UFOs withoutpostscriptFontName. Enabled output option to be a folder only (#451)[buildmasterotfs] Added support for designspace files without<instances>element (#449)[tx] Emit warning instead of error for charstrings longer than 65535 bytes (#446,#597)2.7.2 (released 2018-06-27)Implemented an integration testing framework (#346)[ttxn] Fixed ClassRecord AttributeError (#350)[ttxn] Trailing spaces are now stripped from script and language tags[tx] Get blended glyph stems when the output is not CFF2 (#378)[spot] Fixed crash due to buffer overrun errors from long glyph names (#373)[ProofPDF] Added 'pageIncludeTitle' option (#379)[ProofPDF] Removed search for 'CID charsets' folder (#368)RemovedCID charsetsfolder and its contents (#264,#368)[ProofPDF] Fixed broken 'lf' option (CID layout) (#382)[ProofPDF] Fixed crash when font has no BlueValues (#394)[makeinstancesufo] Disabled ufonormalizer's writeModTimes option. Fixed Windows command (#413)[ufoTools] Fixed line breaks when writting UFOs files on Windows (#413)[makeotf] Implemented correct exit codes (#417)[tx] Fixed Windows crash (#195)[tx] Fixed crash handling copyright symbol in UFO trademark string (#425)[makeotf] Ignore trailing slashes in input font path (#280)2.7.0 (released 2018-05-09)Newttfcomponentizertool that componentizes TrueType fonts using the component data of a related UFO font. (#293)[CheckOutlinesUFO] Replaced Robofab's pens with FontPens' (#230)RemovedextractSVGTableSVGDocs.pyandimportSVGDocsToSVGTable.py. These are superseded by the scripts athttps://github.com/adobe-type-tools/opentype-svg/Removedcmap-tool.pl,fdarray-check.pl,fix-fontbbox.pl,glyph-list.pl,hintcidfont.pl,setsnap.plandsubr-check.pl. These Perl scripts are available fromhttps://github.com/adobe-type-tools/perl-scriptsRemovedCID_font_supportfolder and its contents.[tx] Fixed assert "out of range region index found in item variation store subtable" (#266)[makeotfexe] Fixed unnecessary truncation of the Format 4 'cmap' subtable (#242)[buildCFF2VF] Fix support for CFF2 fonts with multiple FontDicts (#279)[ttxn] Update for latest FontTools version (#288)Added 64-bit support for Mac OSX and Linux (#271,#312,#344)[tx] Fixed-dcfmode failing to dump hinted CFF2 variable font (#322)[tx] Fixed conversion of multi-FD CFF2 font to CID-flavored CFF font (#329)[tx] Fixed-cff2failing to convert CID/CFF1 to CFF2 (#351)Wheels for all three environments (macOS, Windows, Linux) are now available onPyPIandGitHub2.6.25 (released 2018-01-26)This release fixes the following issues:[CheckOutlinesUFO] Skip glyphs whose names are referenced in the UFO's lib but do not exist (#228)Partial Python 3 support inBezTools.py,ConvertFontToCID.py,FDKUtils.py,MakeOTF.py,StemHist.py,autohint.py,buildMasterOTFs.pyandufoTools.py(#231, #232, #233)[makeotfexe] Fixed parsing of Character Variant (cvXX) feature number (#237)[pip] Fixedpip uninstall afdko(#241)2.6.22 (released 2018-01-03)Theafdkohas been restructured so that it can be installed as a Python package. It now depends on the user's Python interpreter, and no longer contains its own Python interpreter.In order to do this, the two Adobe-owned, non-opensource programs were dropped:ISandcheckOutlines. If these turn out to be sorely missed, an installer for them will be added to the old Adobe afdko website. The current intent is to migrate the many tests in checkOutlines to the newercheckOutlinesUFO(which does work with OpenType and Type 1 fonts, but currently does only overlap detection and removal, and a few basic path checks).Older releases can be downloaded from therepository's Releases page.2.5.66097 (released 2017-12-01)This only lists the major bug fixes since the last release. For a complete list see:https://github.com/adobe-type-tools/afdko/commits/master[buildCFF2VF] Add version check for fontTools module: only starting with version 3.19.0 does fontTools.cffLib build correct PrivateDict BlueValues when there are master source fonts not at the ends of the axes.[makeotfexe] Support mapping a glyph to several Unicode values. This can now be done by providing the the UV values as a comma-separated list in the third field of the GlyphOrderAndAliasDB file, in the 'uniXXXXX' format.[makeotfexe] Fixed a crashing bug that can happen when the features file contains duplicate class kern pairs. Reported by Andreas Seidel in email.[makeotfexe] Add fatal messages if a feature file 'cvParameters' block is used in anything other than a Character Variant (cvXX) feature, or if a 'featureNames' block is used in anything other than a Stylistic Set (ssXX) feature.[makeotfexe] Relaxed restrictions on name table name IDs. Only 2 and 6 are now reserved for the implementation.[makeotfexe] Fixed bug where use of the 'size' feature in conjunction with named stylistic alternates would cause the last stylistic alternate name to be replaced by the size feature menu name. Incidentally removed old patent notices.[makeotfexe] Restored old check for the fatal error of two different glyphs being mapped to the same character encoding.[makeotfexe] If the last line of a GOADB file did not end in a new-line, makeotf quit, saying the line was too long.[otf2otc] Can now take a single font as input, and can take an OTC font as input.[sfntdiff] Fixed old bug: it used to crash if no file path or only one file path was provided.[sfntdiff] Changed behavior: it now returns non-zero only if a real error occurs; it used to return non-zero when there was a difference between the fonts.[spot] Fixed old bug: a PrivateDict must exist, but it is legal for it to have a length of 0.[txet al.] Add support for reading and writing blended hints from/to CFF2.2.5.65811 (released 2017-04-27)[makeInstancesUFO] Preserve public.postscriptNames lib key.[makeInstancesUFO] Do not use postscriptFontName attribute.[makeotf] New option -V to print MakeOTF.py script version.[tx] Added new option '-maxs', to set the maximum number of subroutines allowed. The default is now 32K, as some legacy systems cannot support more than this.[tx] Add improved CFF2 support: tx can now use the option -cff2 to write from a CFF2 font (in a complete OpenType font) to a file containing the output CFF2 table, with full charstring optimization and subroutinization. This last option is still work in progress: it has not been extensively tested, and does yet support blended hints.[tx] Several bug fixes for overlap removal.[tx] Fixed bug in subroutinization that could leave a small number of unused subroutines in the font. This cleanup is optional, as it requires 3x the processing speed with the option than without, and typically reduces the font size by less than 0.5 percent.[ttxn] Option '-nv' will now print name IDs 3 and 5, but with the actual version number replaced by the string "VERSION SUPPRESSED".[ufoTools] FIx autohint bug with UFO fonts: if edit a glyph and re-hint, autohint uses old processed layer glyph.2.5.65781 (released 2017-04-03)[variable fonts]buildMasterOTFsnew script to build OTF font files from UFO sources, when building variable fonts.[variable fonts]buildCFF2VFnew command to build a CFF2 variable font from the master OTF fonts.[autohint] Fixed bug introduced by typo on Dec 1 2015. Caused BlueFuzz to always be set to 1. Rarely causes problems, but found it with font that sets BlueFuzz to zero; with BlueFuzz set to 1, some of the alignment zones were filtered out as being closer than BlueFuzz*3.[autohint] Fixed long-standing bug with UFO fonts where if a glyph was edited after being hinted, running autohint would process and output only the old version of the glyph from the processed layer.[CheckOutlinesUFO] Added "quiet mode" option.[CheckOutlinesUFO] Fixed a bug where logic could try and set an off-curve point as a start point.[CheckOutlinesUFO] Changed the logic for assigning contour order and start point. The overlap removal changes both, and checkOutlinesUFO makes some attempt to restore the original state when possible. These changes will result in different contour order and start points than before the change, but fixes a bug, and will usually produce the same contour order and start point in fonts that are generated as instances from a set of master designs. There will always be cases where there will be some differences.[MakeOTF] Replace old logic for deriving relative paths with python function for the same.[MakeOTF] When converting Type 1 to CID in makeotf, the logic in mergeFonts and ConvertFontToCID.py was requiring the FDArray FontDicts to have keys, like FullName, that are not in fact required, and are often not present in the source fonts. Fixed both mergeFonts and ConvertFontToCID.py.[MakeOTF] By default, makeotf will add a minimal stub DSIG table in release mode. The new options '-addDSIG' and '-omitDSIG' will force makeotf to either add or omit the stub DSIG table. This function was added because the Adobe Type group is discontinuing signing font files.[makeotfexe] Fixed bug in processing UVS input file for makeotf for non-CID fonts.[makeotfexe] Fixed bug where makeotf would reject a nameID 25 record when specified in a feature file. This nameID value used to be reserved, but is now used for overriding the postscript family named used with arbitrary instances in variable fonts.[mergeFonts] Removed requirement for mergeFonts that each FontDict have a FullName, Weight, and Family Name. This fixes a bug in using mergeFonts with UFO sources and converting to CID-keyed output font. Developers should not have to put these fields in the source fonts, since they are not required.[spot] Fixed bug in name table dump: Microsoft platform language tags for Big5 and PRC were swapped.[stemHist] Removed debug print line, that caused a lot of annoying output, and was left in the last update by accident.[tx] When getting Unicode values for output, the presence of UVS cmap meant that no UV values were read from any other cmap subtable. I fixed this bug, but 'tx' still does not support reading and showing UVS values. Doing so will be a significant amount of work, so I am deferring that to my next round of FDK work.[tx] Added support for CFF2 variable fonts as source fonts: when using -t1 or -cff, these will be snapshotted to an instance. If no user design vector (UDV) argument is supplied, then the output will be the default data. If a UDV argument is supplied with the option -U, then the instance is built at the specified point in the design space.[tx] Added new option +V/-V to remove overlaps in output Type 1 fonts (mode -t1) and CFF fonts (mode -cff). This is still experimental.[tx] Made the subroutinizer a lot faster; the speed bump is quite noticeable with CJK fonts. (by Ariza Michiharu)[tx] Added new option (+V/-V) to remove overlaps. (by Ariza Michiharu)[ttx] Updated to version 3.9.1 of the fontTools module from master branch on GitHub.2.5.65322 (released 2016-05-27)[CMAP files] Updated UniCNS-UTF32-H to v1.14[build] Made changes to allow compiling under Xcode 7.x and OSX 10.11[documentation] Fixed a bunch of errors in the Feature File spec. My thanks to Sascha Brawer, who has been reviewing it carefully. See the issues athttps://github.com/adobe-type-tools/afdko/issues/created_by/brawer.[autohint] Fixed support for history file, which can be used with non-UFO fonts only. This has been broken since UFO support was added.[autohintexe] Fixed really old bug: ascenders and descenders get dropped from the alignment zone report if they are a) not in an alignment zone and b) there is an overlapping smaller stem hint. This happened with a lot of descenders.[checkOutlines] Fixed bug in ufoTools.py that kept checkOutlines (NOT checkOutlinesUFO) from working with a UFO font.[checkOutlines] Fixed bug which misidentified orientation of path which is very thin and in part convex. I am a bit concerned about the solution, as what I did was to delete some logic that was used to double-check the default rules for determining orientation. However, the default logic is the standard way to determine orientation and should always be correct. The backup logic was definitely not always correct as it was applied only to a single point, and was correct only if the curve associated with the point is concave. It is in fact applied at several different points on a path, with the majority vote winning. Since the backup logic is used only when a path is very thin, I suspect that it was a sloppy solution to fix a specific case. The change was tested with several large fonts, and found no false positives.[makeInstances] Fixed bug which produced distorted shapes for those glyphs which were written with the Type 1 'seac' operator, a.k.a. Type 1 composite glyphs.[makeotfexe] Fixed bug where using both kern format A and B in a single lookup caused random values to be assigned.[makeotfexe] Fixed bug where a format A kern value (a single value) would be applied to X positioning rather than Y positioning for the features 'vkrn'. Applied same logic to vpal, valt, and vhal.[makeotfexe] Finally integrated Georg Seifert's code for supporting hyphen in development glyph names. This version differs from Georg's branch in that it does not allow any of the special characters in final names (i.e. the left side names in the GlyphAliasAndOrderDB). However, allowing this is a smaller tweak than it used to be: just use the same arguments incb.c:gnameFinalScan()as ingnameDevScan(). This update also includes Georg's changes for allow source fonts to have CID names in the form 'cidNNNN'.[ConvertToCID] Fixed bug that the script expected in several places that the fontinfo file would contain at least one user defined FontDict.[ConvertToCID] Fixed bug that the script expected that the source font would have Weight and Adobe Copyright fields in the font dict.[makeotf] Fixed a bug that kept the '-nS' option for having any effect when the '-cn' option is used.[makeotfexe] Remove use of 'strsep()'; function is not defined in the Windows C library.[makeotf] Fixed bug in removing duplicate and conflicting entries. Changed logic to leave the first pair defined out of a set of duplicate or conflicting entries.[makeotfexe] Fixed bug in processing GDEF glyph class statements: if multiple GlyphClass statements were used; the additional glyphs were added to a new set of 4 glyph classes, rather than merged with the allowed 4 glyph classes.[makeotfexe] Fixed issue in GDEF definition processing. Made it an error to specify both LigCaretByPosition and LigCaretByIndex for a glyph.[makeotfexe] Corrected error message: language and system statements are allowed in named lookups within a feature definition, but are not allowed in stand-alone lookups.[makeotf] Corrected typo in MakeOTF.py help text about what the default source font path.[makeotfexe] Fixed an old bug in makeotf. If a mark-to-base or mark-to-mark lookup has statements that do not all reference the same mark classes, makeotfexe used to write a 'default' anchor attachment point of (0.0) for any mark class that was not referenced by a given statement. Fixed this bug by reporting a fatal error: the feature file must be re-written so that all the statements in a lookup must all reference the same set of mark classes.[makeotf] Suppressed warning about not using GOADB file when building a CID font. Some of the changes I made a few weeks ago to allow building fonts with CIDs specified as glyphs names with the form 'cidNNNNN' allowed this warning to be be shown, but it is not appropriate for CID-keyed fonts.[makeotf] Fixed old bug where using option -'cn' to convert a non-CID source font to CID would cause a mismatch between the maxp table number of glyphs and the number of glyph actually in the output font, because the conversion used the source font data rather than the first pass name-keyed OTF which had been subject to glyph subsetting with the GOADB file.[makeotf] Fixed bug in reading UVS files for non_CID fonts.Fixed copyright statements that are incompatible with the open source license. Thanks to Dmitry Smirnov for pointing these out. These were in some make files, an example Adobe CMAP file, and some of the technical documentation.Fixed typos in help text in ProofPDF.py. Thank you Arno Enslin.[ttxn] Fixed bug in ttxn.py that broke it when dumping some tables, when used with latest fontTools library.[tx] Fixed bug in rounding fractional values when flattening library elements, used in design of CJK fonts.[tx] Fixed bug in handling FontDict FontMatrix array values: not enough precision was used, so that 1/2048 was written as 1/2049 in some cases.[tx] Fixed bug in reading UFO fonts, so that glyphs with no<outline>element and with a<lib>element would be skipped.[tx] Minor code changes to allow 'tx' to compile as a 64 bit program.[tx] Fixed bug in dumping AFM format data, introduced when tx was updated to be 64 bit.[tx] Fixed bug in processing seac, introduced in work on rounding fractional values.[tx] Fixed bug in writing AFM files: -1 value would be written as 4294967295 instead of -1.[tx] Added option -noOpt, renamed blend operator from 'reserved' to 'blend'. This was done in order to support experiments with multiple master fonts.[tx] When reading a UFO font: if it has no Postscript version entry, set the version to 1.0.[tx] When writing a UFO font: if StemSnap[H,V] are missing, but Std[H,V]W are present, use the Std[H,V]W values to supply the UFO's postscript StemSnap[H,V] values.[tx] Fixed old bug with rounding decimal values for BlueScale is one of the few Postscript values with several places of decimal precision. It is stored as an ASCII text decimal point number in T1, T2, and UFO files, but is stored internally as a C 'float' value in some programs. Real values in C cannot exactly represent all decimal values. For example, the closest that a C 'float' value can come to "0.375" is "0.03750000149".When writing output fonts, tx was writing out the latter value in ASCII text, rather than rounding back to 0.0375. Fixed by rounding to 8 decimal places on writing the value out. This bug had no practical consequences, as 0.0375 and 0.03750000149 both convert to exactly the same float value, but was annoying, and could cause rounding differences in any programs that use higher precision fields to hold the BlueScale value.2.5.65012 (released 2015-12-01)[makeotf] Fixed bug that kept makeotfexe from building fonts with spaces in the path.[ConvertFontToCID] Fixed bug that kept makeotf from converting UFO fonts to CID.[makeotf] Changed support for Unicode Variation Sequence file (option '-ci') so that when used with name-keyed fonts, the Region-Order field is omitted, and the glyph name may be either a final name or developer glyph name. Added warning when glyph in the UVS entry is not found in font. See MakeOTF User's Guide.[makeotfexe] now always makes a cmap table subtable MS platform, Unicode, format 4 for CID fonts. This is required by Windows. If there are no BMP Unicode values, then it makes a stub subtable, mapping GID 0 to UVS 0.[txet al.] When reading a UFO source font, do not complain if the fontinfo.plist entrystyleNameis present but has an empty string. This is valid, and is common when the style isRegular.2.5.64958 (released 2015-11-22)[autohint/tx] Switched to using new text format that is plist-compatible for T1 hint data in UFO fonts. See header of ufoTools.py for format.[autohint] Finally fixed excessive generation of flex hints. This has been an issue for decades, but never got fixed because it did not show up anywhere as a problem. The last version of makeotf turned on parsing warnings, and so now we notice.[checkOutlinesUFO] Fixed bug where abutting paths did not get merged if there were no changes in the set of points.[checkOutlinesUFO] Fixed bug where a.gliffile without an<outline>element was treated as fatal error. It is valid for the<outline>element to be missing.[checkOutlines] Changed -I option so that it also turns off checking for tiny paths. Added new option -5 to turn this check back on again.[checkOutlinesUFO] Increased max number of paths in a glyph from 64 to 128, per request from a developer.[CompareFamily] Fixed old bug in applying ligature width tests for CID fonts, and fixed issue with fonts that do not have Mac name table names. The logic now reports missing Mac name table names only if there actually are some: if there are none, these messages are suppressed.[fontplot/waterfallplot/hintplot/fontsetplot] Fixed bugs that prevented these from being used with CID-keyed fonts and UFO fonts. Since the third party library that generates the PDF files is very limited, I did this by simply converting the source files to a name-keyed Type 1 temporary font file, and then applying the tools the temporary file.[makeInstancesUFO] Added a call to the ufonormalizer tool for each instance. Also added a call to the defcon library to remove all private lib keys from lib.py and each glyph in the default layer, excepting only "public.glyphOrder".Fixed typos in MakeOTF User Guide reported by Gustavo Ferreira[MakeOTF] Increased max number of directories to look upwards when searching for GOADB and FontMenuNameDB files from 2 to 3.[MakeOTF/makeotfexe] Added three new options:omitMacNamesanduseMacNameswrite only Windows platform menu names in name table, apart from the names specified in the feature file.useMacNameswrites Mac as well as Windows names.overrideMenuNamesallows feature file name table entries to override default values and the values from the FontMenuNameDB for name IDs. NameIDs 2 and 6 cannot be overridden. Use this with caution, and make sure you have provided feature file name table entries for all platforms.skco/nskcodo/do not suppress kern class optimization by using left side class 0 for non-zero kern values. Optimizing saves a few hundred to thousand bytes, but confuses some programs. Optimizing is the default behavior, and previously was the only option.[MakeOTF] Allow building an OTF from a UFO font only. The internalfeatures.feafile will be used if there is nofeaturesfile in the font's parent directory. If the GlyphAliasAndOrderDB file is missing, only a warning will be issued. If the FontMenuNameDB is missing, makeotf will attempt to build the font menu names from the UFO fontinfo file, using the first of the following keys found:openTypeNamePreferredFamilyName,familyName, the family name part of thepostScriptName, and finally the valueNoFamilyName. For style, the keys are:openTypeNamePreferredSubfamilyName,styleName, the style name part of thepostScriptName, and finally the valueRegular.[MakeOTF] Fixed bug where it allowed the input and output file paths to be the same.[makeotfexe] Extended the set of characters allowed in glyph names to include+ * : ~ ^ !.[makeotfexe] Allow developer glyph names to start with numbers; final names must still follow the PS spec.[makeotfexe] Fixed crashing bug with more than 32K glyphs in a name-keyed font, reported by Gustavo Ferreira.[makeotfexe] Merged changes from Khaled Hosny, to remove requirement that 'size' feature menu names have Mac platform names.[makeotfexe] Code maintenance in generation of the feature file parser. Rebuilt the 'antler' parser generator to get rid of a compile-time warning for zzerraction, and changed featgram.g so that it would generate the current featgram.c, rather than having to edit the latter directly. Deleted the object files for the 'antler' parser generator, and updated the read-me for the parser generator.[makeotfexe] Fixed really old bug: relative include file references in feature files have not worked right since the FDK moved from Mac OS 9 to OSX. They are now relative to the parent directory of the including feature file. If that is not found, then makeotf tries to apply the reference as relative to the main feature file.[spot] Fixed bug in dumping stylistic feature names.[spot] Fixed bug proofing vertical features: needed to use vkern values. Fix contributed by Hiroki Kanou.[txet all.] Fix crash when using '-gx' option with source UFO fonts.[txet all.] Fix crash when a UFO glyph point has a name attribute with an empty string.[txet all.] Fix crash when a UFO font has no public.glyphOrder dict in the lib.plist file.[txet all.] Fix really old bug in reading TTF fonts, reported by Belleve Invis. TrueType glyphs with nested component references and x/y offsets or translation get shifted.[txet all.] Added new option '-fdx' to select glyphs by excluding all glyphs with the specified FDArray indices. This and the '-fd' option now take lists and ranges of indices, as well as a single index value.Added a command to call the ufonormalizer tool.Updated to latest version of booleanOperatons, defcon (ufo3 branch), fontMath (ufo3 branch), fontTools, mutatorMath, and robofab (ufo3 branch). The AFDKO no longer contains any private branches of third party modules.Rebuilt the Mac OSX, Linux and Windows Python interpreters in the AFDKO, bringing the Python version up to 2.7.10. The Python interpreters are now built for 64-bit systems, and will not run on 32-bit systems.2.5.64700 (released 2015-08-04)[ufoTools] Fixed bug that was harmless but annoying. Every time thatautohint -allwas run, it added a new program name entry to the history list in the hashmap for each processed glyph. You saw this only if you opened the hashmap file with a text editor, and perhaps eventually in slightly slower performance.[checkOutlinesUFO] Fixed bug where presence of outlines with only one or two points caused a stack dump.[makeotf] Fixed bug reported by Paul van der Laan: failed to build TTF file when the output file name contains spaces.[spot] Fixed new bug that caused spot to crash when dumping GPOS 'size' feature in feature file format.2.5.64655 (released 2015-07-17)[ufoTools] Fixed bug which placed a new hint block after a flex operator, when it should be before.[autohint] Fixed new bug in hinting non-UFO fonts, introduced by the switch to absolute coordinates in the bez file interchange format.[ufoTools] Fixed bugs in using hashmap to detect previously hinted glyphs.[ufoTools] Fixed bugs in handling the issue that checkOutlinesUFO.py (which uses the defcon library to write UFO glif files) will in some cases write glif files with different file names than they had in the default glyph layer.[makeotf] Fixed bug with Unicode values in the absolute path to to the font home directory.[makeotf] Add support for Character Variant (cvXX) feature params.[makeotf] Fixed bug where setting Italic style forced OS/2 version to be 4.[spot] Added support for cvXX feature params.[spot] Fixed in crash in dumping long contextual substitution strings, such as in 'GentiumPlus-R.TTF'.[tx] Fixed bug in handling CID glyph ID greater than 32K.[tx] Changed to write widths and FontBBox as integer values.[tx] Changed to write SVG, UFO, and dump coordinates with 2 places of precision when there is a fractional part.[tx] Fixed bugs in handling the '-gx' option to exclude glyphs. Fixed problem with CID > 32K. Fixed problem when font has 65536 glyphs: all glyphs after first last would be excluded.[tx] Fixed rounding errors in writing out decimal values to cff and t1 fonts.[tx] Increased interpreter stack depth to allow for CUBE operators (Library elements) with up to 9 blend axes.Fixed Windows builds: had to provide a roundf() function, and more includes for the _tmpFile function. Fixed a few compile errors.Fixed bug in documentation for makeInstancesUFO.Fixed bug in BezTools.py on Windows, when having to use a temp file.2.5.64261 (released 2015-05-26)[autohintexe] Worked through a lot of problems with fractional coordinates. In the previous release, autohintexe was changed to read and write fractional values. However, internal value storage used a Fixed format with only 7 bits of precision for the value. This meant that underflow errors occurred with 2 decimal places, leading to incorrect coordinates. I was able to fix this by changing the code to use 8 bits of precision, which supports 2 decimal places (but not more!) without rounding errors, but this required many changes. The current autohint output will match the output of the previous version for integer input values, with two exceptions. Fractional stem values will (rarely) differ in the second decimal place. The new version will also choose different hints in glyphs which have coordinate values outside of the range -16256 to +16256; the previous version had a bug in calculating weights for stems.[autohint] Changed logic for writing bez files to write absolute coordinate values instead of relative coordinate values. Fixed bug where truncation of decimal values lead to cumulative errors in positions adding up to more than 1 design unit over the length of a path.[tx] Fixed bugs in handling fractional values:txhad a bug with writing fractional values that are very near an integer value for the modes -dump, -svg, and -ufo.txalso always applied the logic for applying a user transform matrix, even though the default transform is the identity transform. This has the side-effect of rounding to integer values.2.5.64043 (released 2015-04-08)[checkOutlinesUFO] Added new logic to delete any glyphs from the processed layer which are not in the 'glyphs' layer.[makeotf] When building CID font, some error messages were printed twice.[makeotf] Added new optionstubCmap4. This causes makeotf to build only a stub cmap 4 subtable, with just two segments. Needed only for special cases like AdobeBlank, where every byte is an issue. Windows requires a cmap format 4 subtable, but not that it be useful.[makeCIDFont] Output FontDict was sized incorrectly. A function at the end adds some FontInfo keys, but did not increment the size of the dict. Legacy logic is to make the FontInfo dict be 3 larger than the current number of keys.[makeInstanceUFO] Changed AFDKO's branch of mutatorMath so that kern values, glyph widths, and the BlueValues family of global hint values are all rounded to integer even when thedecimaloption is used.[makeInstanceUFO] Now deletes the default 'glyphs' layer of the target instance font before generating the instance. This solves the problem that when glyphs are removed from the master instances, the instance font still has them.[makeInstanceUFO] Added a new logic to delete any glyphs from the processed layer which are not in the 'glyphs' layer.[makeInstanceUFO] Removed thealloption: even though mutatorMath rewrites all the glyphs, the hash values are still valid for glyphs which have not been edited. This means that if the developer edits only a few glyphs in the master designs, only those glyphs in the instances will get processed by checkOutlinesUFO and autohint.Support fractional coordinate values in UFO workflow:checkOutlinesUFO (but not checkOutlines), autohint, and makeInstancesUFO will now all pass through decimal coordinates without rounding, if you use the new option "decimal". tx will dump decimal values with 3 decimal places.tx already reported fractional values, but needed to be modified to report only 3 decimal places when writing UFO glif files, and in PDF output mode: Acrobat will not read PDF files with 9 decimal places in position values.This allows a developer to use a much higher precision of point positioning without using a larger em-square. The Adobe Type group found that using an em-square of other than 1000 design units still causes problems in layout and text selection line height in many apps, despite it being legal by the Type 1 and CFF specifications.Note that code design issues in autohint currently limit the decimal precision and accuracy to 2 decimal places: 1.01 works but 1.001 will be rounded to 0.2.5.63782 (released 2015-03-03)[tx] Fix bug in reading TTFs. Font version was taken from the name table, which can include a good deal more than just the font version. Changed to read fontRevision from the head table.[detype1] Changed to wrap line only after an operator name, so that the coordinates for a command and the command name would stay on one line.[otf2otc] Pad table data with zeros so as to align tables on a 4 boundary. Submitted by Cosimo Lupo.2.5.63718 (released 2015-02-21)[ufoTools] Fixed a bug with processing flex hints that caused outline distortion.[compareFamily] Fixed bug in processing hints: it would miss fractional hints, and so falsely report a glyph as having no hints.[compareFamily] Support processing CFF font without a FullName key.[checkOutlinesUFO] Coordinates are written as integers, as well as being rounded.[checkOutlinesUFO] Changed save function so that only the processed glyph layer is saved, and the default layer is not touched.[checkOutlinesUFO] Changed so that XML type is written as 'UTF-8' rather than 'utf-8'. This was actually a change in the FontTools xmlWriter.py module.[checkOutlinesUFO] Fixed typos in usage and help text.[checkOutlinesUFO] Fixed hash dictionary handling so that it will work with autohint, when skipping already processed glyphs.[checkOutlinesUFO] Fixed false report of overlap removal when only change was removing flat curve[checkOutlinesUFO] Fixed stack dump when new glyph is seen which is not in hash map of previously processed glyphs.[checkOutlinesUFO] Added logic to make a reasonable effort to sort the new glyph contours in the same order as the source glyph contours, so the final contour order will not depend on (x,y) position. This was needed because the pyClipper library (which is used to remove overlaps) otherwise sorts the contours in (x,y) position order, which can result in different contour order in different instance fonts from the same set of master fonts.[makeInstancesUFO] Changed so that the option -i (selection of which instances to build) actually works.[makeInstancesUFO] Removed dependency on the presence of instance.txt file.[makeInstancesUFO] Changed to call checkOutlinesUFO rather than checkOutlines[makeInstancesUFO] Removed hack of converting all file paths to absolute file paths: this was a work-around for a bug in robofab-ufo3k that is now fixed.[makeInstancesUFO] Removed all references to old instances.txt meta data file.[makeInstancesUFO] Fixed so that current dir does not have to be the parent dir of the design space file.Merged fixes from the GitHub AFDKO open source repo.Updated to latest version defcon, fontMath, robofab, and mutatorMath.Fix for Yosemite (Mac OSX 10.10) in FDK/Tools/setFDKPaths. When an AFDKO script is ran from another Python interpreter, such as the one in RoboFont, the parent Python interpreter may set the Unix environment variables PYTHONHOME and PYTHONPATH. This can cause the AFDKO Python interpreter to load some modules from its own library, and others from the parent interpreters library. If these are incompatible, a crash ensues. The fix is to unset the variables PYTHONHOME and PYTHONPATH before the AFDKO interpreter is called. Note: As a separate issue, under Mac OSX 10.10, Python calls to FDK commands will only work if the calling app is run from the command-line (e.g:open /Applications/RoboFont.app), and the argumentshell="True"is added to the subprocess module call to open a system command. I favor also adding the argumentstderr=subprocess.STDOUT, else you will not see error messages from the Unix shell. Example:log = subprocess.check_output( "makeotf -u", stderr=subprocess.STDOUT, shell=True).2.5.63408 (released 2014-12-02)[spot] Fixed error message in GSUB chain contextual 3 proof file output; was adding it as a shell comment to the proof output, causing conversion to PDF to fail.[makeotf] Increased the limit for glyph name length from 31 to 63 characters. This is not encouraged in shipping fonts, as there may be text engines that will not accept glyphs with more than 31 characters. This was done to allow building test fonts to look for such cases.2.5.63209 (released 2014-09-18)[makeInstancesUFO] Added new script to build instance fonts from UFO master design fonts. This uses the design space XML file exported by Superpolator 3 in order to define the design space, and the location of the masters and instance fonts in the design space. The definition of the format of this file, and the library to use the design space file data, is in the open source mutatorMath library on GitHub, and maintained by Erik van Blokland. There are several advantages of the Superpolator design space over the previousmakeInstancesscript, which uses the Type 1 Multiple Master font format to hold the master designs. The new version a) allows different master designs and locations for each glyph, and b) allows master designs to be arbitrarily placed in the design space, and hence allows intermediate masters. In order to use the mutatorMath library, the AFDKO-supplied Python now contains the robofab, fontMath, and defcon libraries, as well as mutatorMath.[ttx] Updated to the latest branch of the fontTools library as maintained by Behdad Esfahbod on GitHub. Added a patch to cffLib.py to fix a minor problem with choosing charset format with large glyph sets.Updated four Adobe-CNS1-* ordering files.2.5.63164 (released 2014-09-08)[makeotf] Now detectsIsOS/2WidthWeightSlopeOnlyas well as the misspelledIsOS/2WidthWeigthSlopeOnly, when processing the fontinfo file.[makeotfexe] Changed behavior when 'subtable' keyword is used in a lookup other than class kerning. This condition now triggers only a warning, not a fatal error. Change requested by FontForge developers.[makeotf] Fixed bug which prevented making TTF fonts under Windows. This was a problem in quoting paths used with the 'ttx' program.Fixed installation issues: removed old Windows install files from the Windows AFDKOPython directory. This was causing installation of a new AFDKO version under Windows to fail when the user's PATH environment variable contained the path to the AFDKOPython directory. Also fixed command file for invoking ttx.py.Updated files used for building ideographic fonts with Unicode IVS sequences:FDK/Tools/SharedData/Adobe Cmaps/Adobe-CNS1/Adobe-CNS1_sequences.txtandAdobe-Korea1_sequences.txt.2.5.62754 (released 2014-05-14)[IS/addGlobalColor] When using the '-bc' option, fixed bug with overflow for CID value in dumping glyph header. Fixed bug in IS to avoid crash when logic for glyphs > 72 points is used.[makeotfexe] Fixed bug that applied '-gs' option as default behavior, subsetting the source font to the list of glyphs in the GOADB.2.5.62690 (released 2014-04-30)[makeotf] When building output TTF font from an input TTF font, will now suppress warnings that hints are missing. Added a new option '-shw' to suppress these warnings for other fonts that with unhinted glyphs. These warnings are shown only when the font is built in release mode.[makeotfexe] If the cmap format 4 UTF16 subtable is too large to write, then makeotfexe writes a stub subtable with just the first two segments. The last two versions allowed using '-' in glyph names. Removed this, as it breaks using glyph tag ranges in feature files.Updated copyright, and removed patent references. Made extensive changes to the source code tree and build process, to make it easier to build the open source AFDKO. Unfortunately, the source code for theISandcheckOutlinesprograms cannot be open sourced.[tx/mergeFonts/rotateFont] Removed '-bc' option support, as this includes patents that cannot be shared in open source.[tx] All tx-related tools now report when a font exceeds the max allowed subroutine recursion depth.[tx/mergeFonts/rotateFont] Added common options to all when possible: all now support UFO and SVG fonts, the '-gx' option to exclude fonts, the '-std' option for cff output, and the '-b' option for cff output.2.5.61944 (released 2014-04-05)[makeotf] Added new option '-gs'. If the '-ga' or '-r' option is used, then '-gs' will omit from the font any glyphs which are not named in the GOADB file.[Linux] Replaced the previous build (which worked only on 64-bit systems) with a 32 bit version, and rebuilt checkOutlines with debug messages turned off.[ttx] Fixed FDK/Tools/win/ttx.cmd file so that the 'ttx' command works again.2.5.61911 (released 2014-03-25)[makeotf] Add support for two new 'features' file keywords, for the OS/2 table. Specifying 'LowerOpSize' and 'UpperOpSize' now sets the values 'usLowerOpticalPointSize' and 'usUpperOpticalPointSize' in the OS/2 table, and set the table version to 5.[makeotf] Fixed the '-newNameID4' option so that if the style name is "Regular", it is omitted for the Windows platform name ID 4, as well as in the Mac platform version. See change in build 61250.[tx] When the user does not specify an output destination file path (in which case tx tries to write to stdout), tx now reports a fatal error if the output is a UFO font, rather than crashing.[tx] Fixed crash when encountering an empty<dict/>XML element.[spot] Added logic to dump the new fields in OS/2 table version 5,usLowerOpticalPointSizeandusUpperOpticalPointSize. An example of these values can be seen in the Windows 8 system font Sitka.TTC.[ufo workflow] Fixed autohint and checkOutlines so that the '-o' option works, by copying the source UFO font to the destination UFO font name, and then running the program on the destination UFO font.[ufo workflow] Fixed tools that the PostScript font name is not required.Added Linux build.2.5.61250 (released 2014-02-17)[tx] Fixed rare crashing bug in reading a font file, where a charstring ends exactly on a refill buffer boundary.[tx] Fixed rare crashing bug in subroutinization.[tx] Fixed bug where it reported values for wrong glyph with more than 32K glyphs in the font.[tx] Fixed bug where the tool would not dump a TrueType Collection font file that contained OpenType/CFF fonts.[tx] Fixed issue where it failed to read a UFO font if the UFO font lacked a fontinfo.plist file, or a psFontName entry.[IS] Fixed IS so that it no longer scales the fontDict FontMatrix, when a scale factor is supplied, unless you provide an argument to request this.[makeotf] The option '-newNameID4' now builds both Mac and Win name ID 4 using name ID 1 and 2, as specified in the OpenType spec. The style name is omitted from name ID 4 it is "Regular".[makeotf] Changed logic for specifying ValueFormat for PosPair value records. Previous logic always used the minimum ValueFormat. Since changing ValueFormat between one PosPair record and the next requires starting a new subtable, feature files that used more than one position adjustment in a PosPair value record often got more subtable breaks then necessary, especially when specifying a PairPos statement with an all zero Value Record value after a PairPos statement with a non-zero Value Record. With the new logic, if the minimum ValueFormat for the new ValueRecord is different than the ValueFormat used with the ValueRecord for the previous PairPos statement, and the previous ValueFormat permits expressing all the values in the current ValueRecord, then the previous ValueFormat is used for the new ValueRecord.Added commandsotc2otfandotf2otcto build OpenType collection files from a OpenType font files, and vice-versa.[ttx] Updated the FontTools library to the latest build on the GitHub branch maintained by Behdad Esfahbod, as of Jan 14 2014.[ufo workflow] Fixed bugs in ufoTools.py. The glyph list was being returned in alphabetic order, even when the public.glyphOrder key was present in lib.py. Failed when the glyphOrder key was missing.2.5.60908 (released 2013-10-21)[tx] Can now take UFO font as a source font file for all outputs except rasterization. It prefers GLIF file from the layerglyphs.com.adobe.type.processedGlyphs. You can select another preferred layer with the option '-altLayer<layer name>'. Use 'None' for the layer name in order to have tx ignore the preferred layer and read GLIF files only from the default layer.[tx] Can now write to a UFO with the option '-ufo'. Note that it is NOT a full UFO writer. It writes only the information from the Postscript font data. If the source is an OTF or TTF font, it will not copy any of the meta data from outside the font program table. Also, if the destination is an already existing UFO font, tx will overwrite it with the new data: it will not merge the new font data with the old.[tx] Fixed bugs with CID values > 32K: used to write these as negative numbers when dumping to text formats such as AFM.[autohint/checkOutlines] These programs can now be used with UFO fonts. When the source is a UFO font, the option '-o' to write to another font is not permitted. The changed GLIF files are written to the layer 'glyphs.com.adobe.type.processedGlyphs'. Each script maintains a hash of the width and marking path operators in order to be able to tell if the glyph data in the default layer has changed since the script was last run. This allows the scripts to process only those glyphs which have changed since the last run. The first run of autohint can take two minutes for a 2000 glyph font; the second run takes less then a second, as it does not need to process the unchanged glyphs.[stemHist/makeotf] Can now take UFO fonts as source fonts.2.5.60418 (released 2013-02-26)[autohint] Now skips comment lines in fontinfo file.[makeotf] Added support for source font files in the 'detype1' plain text format. Added logic for "Language" keyword in fontinfo file; if present, will attempt to set the CID font makeotf option -"cs" to set he Mac script value.[compareFamily] Added check in Family Test 10 that font really is monospaced or not when either the FontDict isFixedPitch value or the Panose value says that it is monospaced.[spot] Fixed bug that kept 'palt'/'vpal' features from being applied when proofing kerning.2.5.59149 (released 2012-10-31)[makeotf] When building OpenType/TTF files, changed logic to copy the OS/2 table usWinAscent/Descent values over the head table yMax/yMin values, if different. This was because:both pairs are supposed to represent the real font bounding box top and bottom,and should be equal;the TTF fonts we use as sources for makeotf are built by FontLab;FontLab defines the font bounding box for TrueType fonts by using off-curve points as well as on-curve points. If a path does not have on-curve points at the top and bottom extremes, the font bounding box will end up too large. The OS/2 table usWinAscent/Descent values, however, are set by makeotf using the converted T1 paths, and are more accurate. Note that I do not try to fix the head table xMin and xMax. These are much less important, as the head table yMin and yMax values are used for line layout by many apps on the Mac, and I know of no application for the xMin and yMin values.[makeotf] Changed default Unicode H CMAP file for Adobe-Japan1 CID fonts to use the UniJIS2004-UTF32-H file.Added the CID font vertical layout files used with KozMinPr6N and KozGoPr6N: AJ16-J16.VertLayout.KozGo and AJ16-J16.VertLayout.KozMin.Updated several Unicode CMAP files, used only with CID fonts.Added new Perl script, glyph-list.pl, used in building CID fonts. This replaces the three scripts extract-cids.pl, extract-gids.pl, and extract-names.pl, which have been removed from the AFDKO.2.5.58807 (released 2012-09-13)[makeotf] Discovered that when building TTF fonts, the GDEF table was not being copied to the final TTF font file. Fixed.2.5.58732 (released 2012-09-04)[autohint] Added new feature to support sets of glyphs with different baselines. You can now specify several different sets of global alignment zones and stem widths, and apply them to particular sets of glyphs within a font when hinting. See option '-hfd' for documentation.[autohint] Allow AC to handle fonts with no BlueValues, aka alignment zones.[autohint] Respect BlueFuzz value in font.[autohint] Fixed the options to suppress hint substitution and to allow changes.[autohint] When hinting a font with no alignment zones or invalid alignment zones (and with the '-nb' option), set the arbitrary alignment zone outside the FontBBox, rather than the em-square.[checkOutlines] Fixed bug where the arms of an X would be falsely identified as coincident paths, when they are formed by only two paths with identical bounding boxes.[checkOutlines] Fixed bug where very thin elements would get identified as a tiny sub path, and get deleted.[checkOutlines] Fixed bug in determining path orientation. Logic was just following the on-path points, and could get confused by narrow concave inner paths, like parentheses with an inner contour following the outer contour, as in the Cheltenham Std HandTooled faces.[checkOutlines] Fixed bugs in determining path orientation. Previous logic did not handle multiple inner paths, or multiple contained outer paths. Logic was also dependent on correctly sorting paths by max Y of path bounding box. Replaced approximations with real bezier math to determine path bounding box accurately.[checkOutlines] Changed test for suspiciously large bounding box for an outline. Previous test checked for glyph bounding box outside of fixed limits that were based on a 1000 em square. The new test looks only for paths that are entirely outside a rectangle based on the font's em square, and only reports them: it does not ever delete them. Added new option '-b' to set the size of the design square used for the test.[checkOutlines] Fixed bug where it would leave a temp file on disk when processing a Type 1 font.[checkOutlines] Removed test for coincident control points. This has not been an issue for decades. It is frequently found in fonts because designers may choose to not use one of the two control points on a curve. The unused control point then has the same coordinates as its nearest end-point, and would to cause checkOutlines to complain.[compareFamily] Single Test 6. Report error if there is a patent number in the copyright. Adobe discovered that a company can be sued if it ships any product with an expired patent number.[compareFamily] Single Test 22 (check RSB and LSB of ligature vs. the left and right ligature components) did not parse contextual ligature substitution rules correctly. Now fixed.[compareFamily] Family Test 18. Survive OTF fonts with no blue values.[compareFamily] Family Test 2 (Check that the Compatible Family group has same nameIDs in all languages): Added the WPF nameIDs 21 and 22 to the exception list, which may not exist in all faces of a family.[fontsetplot] Fixed so it works with CID fonts. Also fixed so that widow line control works right. Added new low level option for controlling point size of group header.[fontsetplot] Fixed syntax of assert statements. Produced error messages on first use of the *plot commands.[kernCheck] Fix so that it survives fonts with contextual kerning. It does not, however, process the kern pairs in contextual kerning.[makeotf] Fixed bug in mark to ligature. You can now use an<anchor NULL>element without having to follow it by a dummy mark class reference.[makeotf] Fixed bug which limited source CID fonts to a maximum of 254 FDArray elements, rather than the limit of 255 FDArray elements that is imposed by the CFF spec.[makeotf] Fixed bugs in automatic GDEF generation. When now GDEF is defined, all conflicting class assignments in the GlyphClass are filtered out. If a glyph is assigned to a make class, that assignment overrides any other class assignment. Otherwise, the first assignment encountered will override a later assignment. For example, since the BASE class is assigned first, assignment to the BASE class will override later assignments to LIGATURE or COMPONENT classes.[makeotf] Fix bug in validating GDEF mark attachment rules. This now validates the rules, rather than random memory. Had now effect on the output font, but did sometimes produce spurious error messages.[makeotf] Fix crashing bug when trying to report that a glyph being added to a mark class is already in the mark class.[makeotf] If the OS/2 code page bit 29 (Macintosh encoding) is set, then also set bit 0 (Latin (1252). Under Windows XP and Windows 7, if only the Mac bit is set, then the font is treated as having no encoding, and you cannot apply the font to even basic Latin text.[makeotf] By default, set Windows name ID 4 (Full Name) same as Mac nameID 4, instead of setting it to the PostScript name. This is in order to match the current definition of the name ID 4 in the latest OpenType spec. A new option to makeotf ('-useOldNameID4'), and a new key in the fontinfo file ("UseOldNameID4"), will cause makeotf to still write the PS name to Windows name ID 4.[makeotf] Add support for WPF names, name ID 21 and 22.[makeotf] Fixed attachment order of marks to bug in generating Mark to Ligature (GPOS lookup type 4). The component glyphs could be reversed.[makeotf] Fixed bug in auto-generating GDEF table when Mark to Mark (GPOS lookup Type 4) feature statements are used. The target mark glyphs were registered as both GDEF GlyphClass Base and Mark glyphs, and the former took precedence. makeotfexe now emits a warning when a glyph gets assigned to more than one class when auto-generating a GDEF table GlyphClass, and glyphs named in mark to mark lookups are assigned only to the Mark GDEF glyph class.[makeotf] Fixed bugs in generating TTF fonts from TTF input. It now merges data from the head and hhea tables, and does a better job of dealing with the 'post' table. The previous logic made incorrect glyph names when the glyphs with names from the Mac Std Encoding were not all contiguous and at the start of the font.[makeotf] Added new option '-cn' for non-CID source fonts, to allow reading multiple global font alignment zones and stem widths from the fontinfo file, and using this to build a CID-keyed CFF table with an identity CMAP. This is experimental only; such fonts may not work in many apps.[makeotf] Fixed bug where the coverage table for an element in the match string for a chaining contextual statement could have duplicate glyphs. This happens when a glyph is specified more than once in the class definition for the element. The result is that the format 2 coverage table has successive ranges that overlap: the end of one range is the same glyph ID as the start of the next range; harmless, but triggers complaints in font validators.[makeotf] Updated to latest Adobe CMAP files for ideographic fonts. Changed name of CMAP directories in the AFDKO, and logic for finding the files.[makeotf] When providing a GDEF feature file definition, class assignments now may be empty:table GDEF { GlyphClassDef ,,,; } GDEF;is a valid statement. You just need to provide all three commas and the final colon to define the four classes. The following statement builds a GDEF GlyphClass with an empty Components class.table GDEF { GlyphClassDef [B], [L], [M], ; } GDEF;[makeotf] The glyph alias file now defines order in which glyphs are added to the end of the target font, as well as defining the subset and renaming.[makeotf] The-cid <cidfontinfo>option for converting a font to CID can now be used without a glyph alias file, if the source font glyphs have names in the form "cidXXXX", as is output when mergeFonts is used to convert from CID to name-keyed. If the-cid <cidfontinfo>option is used, and there is no glyph alias file, then any glyphs in the font without a name in the form "cidXXXX" will be ignored.[spot] Added error message for duplicate glyph IDs in coverage tables with format 2, a problem caused by a bug in makeotf with some Adobe fonts that use chaining contextual substitution. Note: error message is written only if level 7 GSUB/GPOS dump is requested.[spot] Minor formatting changes to the GSUB/GPOS level 7 dump, to make it easier to edit this into a real feature file.[spot] When writing out feature file syntax for GPOS 'ignore pos' rules, the rule name is now written as 'ignore pos', not just 'ignore'.[spot] Can now output glyph names up to 128 chars (Note: these are not legal PostScript glyph names, and should be encountered only in development fonts.)[spot] Has new option '-ngid' which suppresses output of the trailing glyph ID@<gid>for TTF fonts.[spot] No longer dumps the DefaultLangSys entry when there is none.[spot] Changed dump logic for contextual and chain contextual lookups so that spot will not dump the lookups referenced by the substitution or position rules in the contextual lookups. The previous logic led to some lookups getting dumped many times, and also to infinite loops in cases where a contextual lookup referenced other contextual lookups.[spot] Added support for Apple kern subtable format 3. Fixed old bug causing crash when dumping font with Apple kern table from Windows OS.[spot] Fixed error when dumping Apple kern table subtable format 0, when kern table is at end of font file.[spot] Fixed crashing bug seen in DejaVuSansMono.TTF: spot did not expect an anchor offset to be zero in a Base Array base Record.[spot] Removed comma from lookupflag dump, to match feature file spec.[spot] Added logic to support name table format 1, but it probably does not work, since I have been unable to find a font to test with this format.[spot] Fixed spelling error for "Canadian" in OS/2 code page fields.[spot] Changed dump of cmap subtable 14: hex values are uppercased, and base+UVS values are written in the order [base, uvs].[stemHist] Always set the alignment zones outside the font BBox, so as to avoid having the source font alignment zones affect collection of stem widths.[stemHist] Fix bug where the glyph names reported in the stem and alignment reports were off by 1 GID if the list of glyphs included the '.notdef' glyph.[tx] Added support for option '-n' to remove hints for writing Type 1 and CFF output fonts.[tx] Added new option "+b" to the cff output mode, to force glyph order in the output font to be the same as in the input font.[tx] Fixed bug in flattening 'seac' operator. If the glyph components were not in the first 256 glyphs, then the wrong glyph would be selected.[tx] Added new library to read in svg fonts as a source. tx can now read all the SVG formats that it can write. Handles only the path operators: M, m, L, L, C, c, Z, z, and the font and glyph attributes: 'font-family', 'unicode', 'horiz-adv-x', 'glyph-name', 'missing-glyph'.[tx] Fixed bug in converting TTF to OpenType/CFF. It flipped the sign of the ItalicAngle in the 'post' table, which in turn flipped the sign of the OS/2 table fields ySubscriptXOffset and ySuperscriptXOffset. This bug showed up in TTF fonts built by makeotf, as makeotf uses 'tx' to build a temporary Type 1 font from the source TTF.[tx] Fixed bug where '-usefd' option was not respected, when converting from CID to name-keyed fonts.Updated the internal Python interpreter to version 2.7.Updated Adobe Cmaps/Adobe-Japan1 files:Adobe-Japan1_sequences.txtUniJIS-UTF32-HUniJIS2004-UTF32-HUniJISX0213-UTF32-HUniJISX02132004-UTF32-HAdded several scripts related to CID font production:cmap-tool.plextract-cids.plextract-gids.plextract-names.plfdarray-check.plfix-fontbbox.plhintcidfont.plsubr-check.pl2.5.25466 (released 2012-03-04)[charplot] This was non-functional since build 21898. Now fixed.[checkOutlines] Changed so that the test for nearly vertical or horizontal lines is invoked only if the user specifies the options '-i' or '-4', instead of always. It turns out that this test, when fixed automatically, causes more problems than it cures in CJK fonts.[compareFamily] Changed so that the default is to check stem widths and positions for bogus hints. Used 'tx' rather than Python code for parsing charstring in order to speed up hint check.[compareFamily] Updated script tags and language tags according to OpenType specification version 1.6.[documentation] In feature file syntax reference, fixed some errors and bumped the document version to 1.10.[documentation] Fixed typo in example in section 4.d: lookFlag values are separated by spaces, not commas.[documentation] Fixed typo in example in section 8.c on stylistic names: quotes around name string need to be matching double quotes. Reported by Karsten Luecke.[documentation] Changed agfln.txt copyright notice to BSD license.[makeInstances] Fixed bug where a space character in any of the path arguments caused it to fail.[makeInstances] Fixed bug that can make the FontBBox come out wrong when using ExtraGlyphs.[makeInstances] Fixed rounding bug that could (rarely) cause makeInstances to think that a composite glyph is being scaled (which is not supported by this script) when it is not.[makeotf] Fixed bug in generating TTF fonts from TTF input. Previous version simply did not work.[spot] Added support for "Small" fonts, an Adobe internal Postscript variant used for CJK fonts.[spot] Added support for large kern tables, such as in the Vista font Cambria, where the size of the kern subtable exceeds the value that can be held in the subtable "length" field. In this case, the "length" filed must be ignored.[spot] Fixed proof option to show GPOS records in GID order by default, and in lookup order only with the '-f' option. It had always been proofing the GPOS rules in lookup order since 2003.[spot] Fixed double memory deallocation when dumping TTC files; this could cause a crash.[spot] When decompiling GSUB table to feature file format (-t GSUB=7) and reporting skipped lookups identify lookups which are referenced by a chaining contextual rule.[sfntedit] Changed final "done" message to be sent to stdout instead of stderr. Reported by Adam Twardoch.[stemHist] Fixed typo in help text, reported by Lee Digidea: '-all' option was not working.[tx] Added new option '-std' to force StdEncoding in output CFF fonts.2.5.21898 (released 2009-05-01)[autohint/checkOutlines] Fixed rare case when anrrcurvetois preceded by such a long list ofrlinetothat the stack limit is passed.[autohint/checkOutlines] Fixed to restore font.pfa output file to StandardEncoding Encoding vector. Since requirements of CFF StandardEncoding differs from Type 1 StandardEncoding, a StandardEncodingEncoding vector in a Type 1 font was sometimes getting converted to a custom Encoding vector when being round-tripped through the CFF format which autohint does internally.[checkOutlines] Fixed random crash on Windows due to buffer overrun.[checkOutlines] Changed default logging mode to not report glyph names when there is no error report for the glyph.[CompareFamily] Added "ring" to the list of accent names used to find (accented glyph, base glyph) pairs for Single Face Test 23. Reported by David Agg.Renamed showfont to fontplot2 to avoid conflict with the Mac OSX showfont tool.Fixed problem with showing vertical origin and advance: was not using VORG and vmtx table correctly.[FontLab scripts] Added logic to Instance Generator to support eliminating "working" glyphs from instances, to substitute alternate glyph designs for specific instances, and to update more Font Dict fields in the instance fonts. Added help.Added command line equivalent, "makeInstances' which does the same thing, but which uses the IS tool for making the snapshot. See the 'IS' entry.[IS] Added new tool for "intelligent scaling". This uses the hinting in an MM font to keep glyph paths aligned when snapshotting from MM fonts. The improvement is most visible in glyphs with several elements that need to maintain alignment, such as percent and perthousand. It is also useful for the same reason when scaling fonts from a large em-square size to a smaller size. To be effective, the source MM font must be hinted and must have global alignment zones defined. The new font must be re-hinted. For instances from MM fonts especially, it is a good idea to redo the alignment zones, as the blending of the MM base designs usually does not produce the best alignment zones or stem widths for the instance fonts. makeInstances and "Instance Generator" scripts allow you to preserve these modifications when redoing the MM instance snapshot.[makeotf] Fixed generation of version 1.2 GDEF table to match the final OpenType spec version 1.6. This version is generated only when the new lookup flag 'UseMarkFilteringSet" is used.[makeotf] Fixed generation of names for stylistic alternates features. There was a bug such that in some circumstances, the feature table entry for the stylistic alternate feature would point to the wrong lookup table.[makeotf] Fixed generation of the reverse substitution lookup type. This was unintentionally disabled just before the previous release.[makeotf] Fixed bugs in memory management of glyph objects. If the font built, it was correct, but this bug could cause the font to fail to build.[spot] Fixed to dump GDEF table version 1.2 according to the final OpenType spec version 1.6.[spot] Fixed feature-format dump of the lookupflags MarkAttachmentType and UseMarkFilteringSet to give a class name as an argument, rather than a class index.[spot] Extended the GDEF table dump to provide a more readable form.[spot] Added dump formats for htmx and vtmx to show the advance and side bearing metrics for all glyphs.2.5.21340 (released 2009-01-22)[AGLFN] (Adobe Glyph List for New Fonts) Created new version 1.7.[AGLFN] Reverted to the AGLFN v1.4 name and Unicode assignments for Delta, Omega, and mu. The v1.6 versions were better from a designer's point of view, but we cannot use name-to-Unicode value mappings that conflict with the historic usage in the Adobe Glyph List 2.0. Seehttp://www.adobe.com/devnet/opentype/archives/glyph.html.[AGLFN] Dropped all the 'afii' names from the list: 'uni' names are actually more descriptive, and map to the right Unicode values under Mac OSX.[AGLFN] Dropped all the 'commaccent' names from the list: 'uni' names map to the right Unicode values under Mac OSX before 10.4.x.[autohint] Converted AC.py script to call a command-line program rather than a Python extension module, same way makeotf works, to avoid continuing Python version problems.[autohint] Fixed to actually emit vstem3 and hstem3 hint operators (counter control hints, which work to keep the space between three stems open and equal, as in an 'm') - this has been broken since the first AFDKO. It will now also look in the same directory as the source font for a file named "fontinfo", and will attempt to add stem3 hints to the glyph which are listed by name in the name list for the keys "HCounterChars" or "VCounterChars".[autohint] Fixed old bug where it would only pay attention to the bottom four of the top zone specified in the FontDict BlueValues list. This results in more edge hints in tall glyphs.[autohint] Fixed special case when adding flex operator which could result in an endless loop[autohint] Added 'logOnly' option, to allow collecting report without changing the font.[autohint] Added option to specify which glyphs to exclude from autohinting.[autohint] Suppressed generation and use of<font-name>.plistfile, unless it is specifically requested.[autohint] Fixed bug where an extremely complex glyph would overflow a buffer of the list of hints.[checkOutlines] Improved overlap detection and path orientation: it will now work with outlines formed by overlapping many stroke elements, as is sometimes done in developing CJK fonts.[checkOutlines] added new test for nearly vertical or horizontal lines. Fixed bug in this new code, reported by Erik van Blokland.[CompareFamily] For the warning that the Full Family name in the CFF table differs from that in the name table, changed it to a "Warning" rather than "Error", and explained that there is no functional consequence.[CompareFamily] Removed check that Mac names ID 16 and 17 do not exist, as makeotf now does make them. See notes in MakeOTF User Guide about this.[CompareFamily] Fixed so it works with TTF fonts again.[makeotf] Removed code that added a default Adobe copyright to the name table if no copyright is specified, and removed code to add a default trademark.[makeotf] Added support for the lookupflag UseMarkFilteringSet. This is defined in the proposed changes for OpenType spec 1.6, and is subject to change in definition.[makeotf] Dropped restriction that vmtx/VORG/vhea tables will only be written for CID-keyed fonts. The presence in the feature file of either a 'vrt2' feature of vmtx table overrides will now cause these tables to be written for both CID-keyed and name-keyed fonts.[makeotf] Added warning when a feature is referenced in the aalt feature definition, but either does not exist or does not contribute any rules to the aalt feature. The aalt feature can take only single and alternate substitution rules.[makeotf] Added support for the following lookup types:GSUB type 2 Multiple SubstitutionGSUB type 8 Reverse Chaining Single SubstitutionGPOS type 3 Cursive AdjustmentGPOS type 4 Mark-to-Base AttachmentGPOS type 5 Mark-to-Ligature AttachmentGPOS type 6 Mark-to-Mark Attachment[makeotf] Added support for explicit definition of the GDEF table, and automatic creation of the GDEF when any of the lookup flag settings for ignoring a glyph class is used, or any mark classes are defined.[makeotf] Support using TTF fonts as input, to build an OpenType/TTF font, with the limitation that glyph order and glyph names cannot be changed. This is rather ugly under the hood, but it works. The MakeOTF.py Python script uses the tx tool to convert the TTF font to CFF data without changing glyph order or names. It then builds an OpenType/CFF font. It then uses the sfntedit tool to copy the TTF glyph data to the OpenType font, and to delete the CFF table.[makeotf] Added support for building Unicode Variation Selectors for CID-keyed fonts, using the new cmap subtable type 14.[makeotf] Fixed bug with inheritance of default rules by scripts and languages in feature file feature definitions. Explicitly defined languages were only getting default rules defined after the last script statement, and when a script is named, languages of the script which are not named got no rules at all.[makeotf] Fixed bug where you could not run makeotf when the current directory is not the same is the source font's home directory.[makeotf] Set OS/2.lastChar field to U+FFFF when using mappings beyond the BMP.[makeotf] Create the Mac platform name table font menu names by the same rules as used for the Windows menu names. Add new keywords to the FontMenuNameDB file syntax. If you use the old keywords, you get the old format; if you use the new syntax, you get nameIDs 1, 2 and 16 and 17 just like for the Windows platform.[makeotf] Fixed bug in name table font menu names: if you entered a non-English Preferred name ("f=") and not a compatible family name ("c="), you would end up with a nameID 16 but no nameID 17.[makeotf] Fixed bogus 'deprecated "except" syntax' message under Windows.[makeotf] Fixed bug where contextual pos statements without backtrack or lookahead context were writing as a non-contextual rule. Reported by Karsten Luecke.[makeotf] Added new option to make stub GSUB table when no GSUB rules are present.[makeotf] Added warning if the aalt feature definition references any feature tags that either do not exist in the font, or do not contribute any rules that the aalt feature can use.[sfntdiff] Fixed so that only error messages are written to stderr; all others now written to stdout.[sfntdiff] Fixed bug in dump of 'name' table: when processing directories rather than individual files, the name table text was never updated after the first file for the second directory.[spot] Fixed option '-F' to show the contextual rule sub-lookup indices, and to flag those which have already been used by another lookup.[spot] If a left side class 0 is empty, do not report it.[spot] For GSUB/GPOS=7 FEA dump, give each class a unique name in the entire font by appending the lookup ID to the class names. It was just[LEFTCLASS]()<class index>_<subtable index>, but these names are repeated in every lookup. It is nowLEFTCLASS_c<class index>_s<subtable index>_l<lookup index>.[spot] When a positioning value record has more than one value, print the full 4 item value record. Previously, it would just print non-zero values. This was confusing when dumping Adobe Arabic, as you would see two identical values at the end of some pos rules. In fact, each of these pos rule does have two adjustment values, one for x and one for y advance adjustment, that happen to be the same numeric value.[spot] Fixed to write backtrack context glyphs in the right order.[tx] Added option to NOT clamp design coordinates to within the design space when snapshotting MM fonts.[tx] Added option to subroutinize the font when writing to CFF. This option is derived from the same code used by makeotfexe, but takes only about 10% the memory and runs much faster. This should allow subroutinizing large CJK fonts that makeotfexe could not handle. This is new code, so please test results carefully, i.e. if you use it, always check that the flattened glyphs outlines from the output font are identical to the flattened glyph outlines from the input font.[ttxn] Added options to suppress hinting in the font program, and version and build numbers.2.0.27 (released 2007-11-10)[compareFamily] Fixed Single Test 3 (reported by Mark Simonson and others); the test should compare the Mac platform name ID 4 (name ID 1 + space + name ID 2) with the target value, but was instead using the value of the name ID 18 (Compatible Full Name).[compareFamily] Fixed Family Test 2 to print a report that helps determine which {platform, script, language, name ID} is present in some fonts but not others.[IS] Fixed a bug where applying hint-based scaling can cause an off-by-1 error when the theclosepathposition is supposed to coincide with the originalmoveto, leading to an effective final 1-unitlineto, that may overlap the initial path. In the old MM design world, we worked around this issue by designing the MMs so that there was always a one unit difference between a finalcurvetopoint and the originalmoveto. FontLab doesn't support doing that automatically, so when making an instance,ISwill instead simply look for cases where themovetoandclosepathpositions differ by one unit, and move themovetoposition to coincide with theclosepathposition.[makeotf] Fixed bug where specifying thousands of singleton kern pairs could silently overflow offsets, and makeotf would build a bad font without any warning. (reported by Adam Twardoch)[makeotf] Relative file paths can now be used even if the current directory is not the source font directory. Project files can now be saved to directories other than the source font directory. Note that paths stored in project file are relative to the project file's directory. (reported by Andreas Seidel)[makeotf/spot] Added support for Unicode Variation Sequences (UVSes). See MakeOTF User's Guide andUnicode Technical Standard #37[spot] Fixed bug where contents of 'size' GPOS feature would be printed for all dump levels.[spot] Fixed failure to process 'post' table format 4.0. which occurs in some Apple TT fonts, such as Osaka.dfontUpdated Adobe-Japan-1 CMAP files for building CID fonts.2.0.26 (released 2007-05-05)Addedfeaturefile.plistfor BBedit. Install this in the location shown at the top of the file; it enables code coloring for FEA syntax. The file is in FDK/Tools/SharedDataAddedMSFontValidatorIssues.htmlto FDK/Technical Documentation. It lists the error messages from the MS FontValidator tool that can be ignored for OpenType/CFF fonts.[FontLab macros] Added InstanceGenerator. Another script for making instances from an MM VFB font. It's simpler than MakeInstances macro.[FontLab macros] Removed debug statement in Set Start Points which blocked processing more than 50 glyphs. (reported by George Ryan)[FontLab macros] Added explanation of CheckOutlines errors to help dialog.[checkOutlines] Added option '-he' to print explanation of error messages.[compareFamily] Added error if the font's CFF table contains a Type 2seacoperator. The CFF spec does not support this operator. Some very old tools allow this to happen.[makeotf] Fixed a bug in decomposing glyphs that are defined as composite glyphs in a Type 1 source font. This bug caused the base component to be shifted when then left side bearing of the composite glyph differs from that of the base glyph. This could be consequential, as FontLab has an option to not decompose composite glyphs when generating a Type 1 font.[makeotf] Fixed a bug in recognizing the "Korea1" order when trying to pick a default Mac cmap script ID from a CID-keyed font's ROS (Registry-Order-Supplement) field.[tx] Fixed a bug in decomposing pretty much all composite glyphs from Type 1 and CFF source fonts. It happened only when a Type 1 or CFF font was being subset, i.e. converted into a font with fewer glyphs. tx now has the option '+Z' to force this to occur.2.0.25 (released 2007-03-30)[autohint] Added a new option to allow extending the list of glyph names for which autohint will try to make counter hints.[autohint] Fixed bug where Type 2 operator stack limit could be exceeded when optimizing Type 2 charstrings during conversion from bez format.[autohint] Fixed bug in setting OtherBlues alignment zone values.[FontLab macros] The Autohint macro behaves quite differently when adding 'flex' hints is turned off; it makes more hint substitutions, since these are not allowed within the segment of the outline that contributes the 'flex' stem. Turned it on, so that hint results will be the same as the command-line tool. This does not affect the outline data.[checkOutlines] Fixed bug that prevented the reporting of two successive points with the same coordinates. The code to convert from the source outline data to bez format was suppressing zero-length line segments, so the checkOutlines module never experienced the problem.[compareFamily] Added new options '-st n1,n2..' and '-ft n1,n2..' to allow executing only specific tests.[compareFamily] Fixed test "Warn if a style-linked family group does not have FamilyBlues". When reporting the error that FamilyBlues differ in a style-linked family group (where at least one font does have real FamilyBlues), use BlueValues as implied FamilyBlues when the latter attribute is missing from a font. Same for FamilyOtherBlues.[compareFamily] Warn about zones outside of font's BBox only if the entire zone is outside of the BBox, not just one edge, and warn only for BlueValue zones, not FamilyBlueValue zones.[compareFamily] Fixed fsType check. Complain if fsType is not 8 only for Adobe fonts, determined by checking if the name table trademark string is empty or contains "Adobe".[compareFamily] Fixed Single Face Test 3 to compare the CFF Full Name with the name table Preferred Full Name (ID 18) rather than the Full Name (ID 4).[compareFamily] Fixed bug where it failed with CID fonts, because it referenced the "Private" dict attribute of the font's topDict, which does not exist in CID fonts.[compareFamily] Fixed 'size' test to support the format that indicates only intended design size, where no range is supplied.[compareFamily] Fixed ligature width check to also check that left and right side bearings match those of the left and right components, and to use the 'liga' feature to identify ligatures and their components, instead of heuristics based on glyph names.[makeotf] Disallowed negative values in the feature file for the OS/2 table winAscent and winDescent fields.[makeotf] Fixed a bug where a lookup excluded with theexclude_dfltkeyword was nevertheless included if the script/language was specified with a languagesystem statement.[makeotf] Fixed issue on Windows where a user would see a debug assert dialog when the OS/2 vendorID was not specified in the feature file, and the Copyright string contained an 8-bit ASCII character, like the 'copyright' character.[makeotf] Fixed issue on Windows where name ID 17 would be garbage if no FontMenuNameDB was supplied, and the PostScript name did not contain a hyphen.[makeotf] Added warning for Mac OSX pre 10.5 compatibility: total size of glyphs names plus 2 bytes padding per glyph must be less than 32K, or OSX will crash.[makeotf] Fixed crash that occurred if the feature file did not have a languagesystem statement.[makeotf] Fixed bug in subroutinizer which allowed a subroutine stack depth of up to 10, but the Type 1 and Type 2 specs allow only 9. This caused most rasterizers to declare the font invalid.[makeotf] Removed '-cv' option; CJK vertical CMaps have not been supported since FDK 1.6.[spot] Added support for low-level and feature file style text dumps of GPOS Attachment formats 3, 4, 5 and 6.[spot] Added dump of lookup flag value to the feature-file style report.[spot] Added MarkAndAttachmentClassDef record to GDEF table report.[spot] Added support for GSUB lookup type 2 (Multiple) when within contextual substitutions.[spot] Fixed bug in GSUB lookup 5, causing crash in dumping trado.ttf.[spot] Fixed bug in level 7 (feature-file syntax) dump of GPOS table; was omitting the value record for extension lookup types.[spot] Fixed crash on Windows when proofing contextual substitution statements.[spot] Made Windows version behave like Mac when proofing: PostScript file data is always sent to standard output, and must be re-directed to a file.[spot] Improved documentation of proofing output and '-P' option.[spot] Fixed DSIG table reporting of TTC fonts with the version 2 TTC header, even if the header reports it is version 1, like meiryo.ttc.[spot] Enabled proofing TTC fonts that don't have glyph names in the post table.[spot] Fixed origin offset of bounding box for TTF fonts.[spot] Fixed crash in proofing TTF fonts when the last glyph is non-marking, like trado.ttf in LongHorn.2.0.24 (released 2006-11-06) — Public release of FDK 2.0[autohint/checkOutlines/ProofPDF] Fixed glyph name handling to avoid stack dump when glyph is not in font. Added support for CID values that are not zero-padded to 5 hex digits.[autohint] Fixed bug where edge hints would be generated rather than regular hints across the baseline, when there were fewer than 8 pairs of BlueValues.[checkOutlines] Fixed bug where it would not report an overlap if there were an even number of overlapping contours.[compareFamily] Fixed Italic angle Single Test 12 to look at the middle third of the test glyph stems, rather than the top and bottom of the glyph bounding box, when guessing the font's italic angle.[compareFamily] Fixed Single Test 15 to allow a difference of 1 unit in the font BBox, to allow for rounding differences.[compareFamily] Fixed Single Test 26 to identify uXXXX names as valid Unicode names; had bug in the regular expression that required 5 digits.[compareFamily] Fixed Single Test 22 to treat glyphs in the combining mark Unicode range u3000-u036F range as accent glyphs; require that they have the same width as the base glyph.[compareFamily] Changed report from Error to Warning for check that only the first four Panose values are non-zero.[compareFamily] Fixed bug that caused a stack dump in Single Test 16 and 22.[compareFamily] Added tests for Mac OSX pre 10.4 compatibility: no charstring is < 32K, total size of glyphs names plus padding is less than 32K.[compareFamily] Added test that known shipping font does not have OS/2 table version 4, and that new fonts do.[compareFamily] Fixed Single Test 11: allow BASE offset to differ from calculated offset by up to 10 design units before it complains.[compareFamily/makeotf] Fixed failure when tools path contains a space.[kernCheck] New tool; looks for kern GPOS rules that conflict, and also looks for glyph pairs that overlap.[kernCheck] Added option to allow running only the check of GPOS subtables for kerning rules that mask each other.[makeotf] Fixed '-adds' option.[makeotf] Added new option '-fi' to specify path to fontinfo file.[makeotf] Added new option '-rev' to increment the fontRevision field.[makeotf] If the (cid)fontinfo file contains the keyword/value for FSType, will check that the value is the same as the OS/2 fsType field in the final OTF font. This has to do with historic Adobe CJK font development practices.[makeotf] Added support for setting some of the Plane 1+ bits in the OS/2 ulUnicodeRange fields.[mergeFonts] Will now apply to the output font the values for the fields Weight and XUID, from the cidfontinfo file.[spot] Added support for showing some of the Plane 1+ bits in the OS/2 ulUnicodeRange fields.[stemHist] When requiring that reports not already exist, don't delete older stem reports when asking for new alignment zone reports, and vice-versa.[setsnap.pl] New tool to pick standard stem hint values. This Perl script takes in the report from stemHist, and recommends a set of values to use for the Type 1 font standard stem arrays. This is not as good as choosing the most relevant values yourself, but better than not providing any values.InOverview.html, added warning about 'languagesystem Dflt dflt' and FDK 1.6 feature files.InMakeOTFUserGuide.pdf, expanded discussion of fontinfo file, updated documentation of OS/2 v4 table bits with Adobe's practices for the next library release.InOT Feature File Syntax.html, fixed incorrect sign for winAscent keyword, extended discussion of DFLT script tag and useExtension keyword, and fixed minor typos.Added two new tech notes on using rotateFont and mergeFonts.2.0.22 (released 2006-09-12)[compareFamily] Single Test 3 now also checks that Mac name ID 4 starts with Preferred Family name, and is the same as the CFF table Full Name.[compareFamily] Added test for existence and validation of BASE table in Single Test 11.[compareFamily] Fixed bug where failed when reporting font BBox error.[compareFamily] Added test that some specific glyph names were not changed from previous version of font, in Single Test 26.[compareFamily] Added "Single Face Test 27: Check strikeout/subscript/superscript positions". Checks values against default calculations based on the em-box size.[compareFamily] Added "Single Face Test 28: Check font OS/2 codepages for a common set of code page bits". Checks OS/2 ulCodePageRange and ulUnicodeRange blocks against the default makeotf heuristics.[compareFamily] Added in Single Test 12 a rough calculation of the italic angle. Warns if this is more than 3 degrees different than the post table Italic angle value.[compareFamily] Added in Family Test 15 a check that all fonts in a preferred family have the same hhea table underline size and position values.[compareFamily] Added "Family Test 16: Check that for all faces in a preferred family group, the width of any glyph is not more than 3 times the width of the same glyph in any other face".[compareFamily] Fixed Family Test 3 to be more efficient.[makeotf/makeotfexe] Added a new option '-maxs<integer>' to limit the number of subroutines generated by subroutinization. Used only when building test fonts to explore possible errors in processing the subroutines.[makeotf/makeotfexe] Allow working names to be longer than 31 characters; warn but don't quit, if final names are longer than 31 characters.2.0.21 (released 2006-08-31)[makeotf] Fixed bug where 'size' feature was built incorrectly when it was the only GPOS feature in the font.[spot] Improved error messages for 'size' feature problems.[compareFamily] Added dependency on environment variables:CF_DEFAULT_URLshould be set to the foundry's URL; it's compared with name ID 11.CF_DEFAULT_FOUNDRY_CODEshould be set to the foundry's 4-letter vendor code; it's compared with OS/2 table achVendID field.[compareFamily] Check that CFF PostScript name is the same as Mac and Windows name table name ID 6.[compareFamily] Check that named IDs 9 and 11 (designer name and foundry URL) exist.[compareFamily] Extended Single Test 4 to verify that version string is in correct format '(Version|OTF) n.nnn'.[compareFamily] Improved Panose test to check that values are not all 0, and that the CFF font dict 'isFixedPitch' field matches the Panose monospace value.[compareFamily] Added check to confirm the presence of Unicode cmap sub table.[compareFamily] Added check to confirm that latn/dflt and DFLT/dflt script/languages are present, if there are any GPOS or GSUB rules. Also checks that script and language tags are in registered lists, and that all faces have the same set of language and script tags, and feature list under each language and script pair.[compareFamily] Added check to confirm that all faces in the family have the same OS/2 table fsType embedding permission values.[compareFamily] Added check to confirm that if font has Bold style bit, the CFF forceBold flag is on. Also vice-versa, if the font weight is less than 700.[compareFamily] Added check to confirm that the font does not have a UniqueID or XUID, if it's not CID-keyed.[compareFamily] Added glyph name checks: OS/2 default char is .notdef, and that there are NULL and CR glyphs in TrueType fonts, and that names conform to the current Adobe Glyph Dictionary. Note that latest practice is to use 'uni' names for final names for all the 'afii' glyphs.[compareFamily] Fixed family BlueValues tests to compare within compatible family name groups.[compareFamily] Changed Family Test 2 to check that all name IDs except 16, 17, 18, are all present with the same language/script values within all faces of a preferred family.[compareFamily] Changed Single Test 3, which didn't do at all what it described.[FontLab macros] Fixed bug introduced when changing modules shared with command-line scripts in build 19.2.0.20 (released 2006-08-14)[ProofPDF] Fixed bug in waterfallplot mode, where Acrobat would report the output PDF file as being damaged.[makeotf] Fixed bug that prevented building CID fonts in release mode, introduced in build 19.2.0.19 (released 2006-08-04)[compareFamily] Added Family Test 13 to report error if two fonts in the same preferred family have the same OS/2 weight, width and Italic settings, and the OS/2 version is greater than 3. Also reports an error if the fsSelection field bit 8 "WEIGHT_WIDTH_SLOPE_ONLY" is set differently across faces of the same preferred family name group.[compareFamily] Fixed Family Test 12 to not fail when the font has a script/language with no DefaultLangSys entry.[makeotf] If a font file with the requested output file name already exists, will delete it before running makeotfexe, so can tell if it failed.[makeotf] Will now set the new 'fsSlection' bits if the following key/value pairs are in the 'fontinfo' file:PreferOS/2TypoMetrics 1 IsOS/2WidthWeigthSlopeOnly 1 IsOS/2OBLIQUE 1[digiplot] Added new option to specify the font baseline, so the baseline can be set correctly when proofing a font file without a BASE table.[digiplot] Allowed using a CID layout file to supply meta info when proofing name-keyed fonts.[ProofPDF] Added two functions:waterfallplotandfontsetplot. waterfallplot does not yet work with TrueType or CID-keyed fonts.2.0.17 (released 2006-05-15)Fixed multiple tools to allow installing the FDK on Windows on a path containing spaces.[autohint] Added option to suppress hint substitution.[autohint] Fixed help and message to refer to 'autohint' tool name, rather than to the AC script file name.[autohint] Fixed bug in processing hint masks: bytes with no bits set were being omitted.[autohint] Added option to allow hinting fonts without StdHW or StdVW entries in the font Private font-dictionary.[checkOutlines] Fixed writing out the changes when fixing outlines.[checkOutlines] Fixed bug that mangled outlines when three alternating perpendicular lines or vh/hv/vv/hh curveto's followed each other.[checkOutlines] Will now write report to a log file as well as to screen. Added option to set log file path, and added numeric suffix to name so as to avoid overwriting existing log files.[compareFamily] Fixed issue that happened when looking through the directory for font files, when encountering a file for which the user did not have read permission.[compareFamily] Added Single Test 24: check that 'size' feature Design Size is within the design range specified for the font.[ProofPDF] Addedshowfontcommand to show how to customize a command file to produce a different page layout.[ProofPDF] Fixed so fonts with em-square other then 1000 will work.[fontplot/charplot/digiplot/hintplot/showfont] Added support for Type 1 font files as well as OTF and TTF files.[makeotf] Fixed MakeOTF to survive being given a font path with spaces.[makeotf] Fixed '-S' and '-r' options.[makeotf] Added new option '-osv<number>' to allow setting the OS/2 table version number.[makeotf] Added new option '-osbOn<number>' to set arbitrary bitfields in OS/2 table 'fsSelection' to on. May be repeated more than once to set more than one bit.[makeotf] Added new option '-osbOff<number>' to set arbitrary bitfields in OS/2 table 'fsSelection' to off. May be repeated more than once to unset more than one bit.[makeotf] If neither '-b' nor '-i' options are used, check for a file 'fontinfo' in the same directory as the source font file, and set the style bits if these key/values are found:IsBoldStyle true IsItalicStyle true[FontLab macros] Built the autohint and checkOutline libraries (PyAC and focusdll) linked with Python2.3 so they work with FontLab 5.[mergeFonts] Added option to copy only font metrics from first source font.[mergeFonts] Allow empty lines and "#" comment lines in glyph alias and in cidfontinfo files.[rotateFont] Fixed bug where it did not allow negative numbers.[rotateFont] Allow empty lines and "#" comment lines in rotation info file[sfntedit] Fixed so that it will not leave the temp file behind on a fatal error, nor quit because one already exists.[spot] Fixed order of backtrack glyphs in dump of chaining contextualsubandposstatements. Now assumes that these are built in the correct order.Added two new tools,type1anddetype1, that compile/decompile a Type 1 font from/to a plain text representation.2.0.5 (released 2006-02-14)[compareFamily] Added warning if sum of OS/2 table sTypoLineGap, sTypoAscender, and sTypoDescender is not equal to the sum of usWinAscent and usWinDescent.[compareFamily] Updated test for allowable weights in style-linked faces to reflect the current behavior of Windows XP.[compareFamily] Added check for OpenType/CFF: Windows name table ID 4 (Full Name) is the same as the PostScript name.[compareFamily] Added report on sets of features in different languagesystems, and an error message if they are not the same in all faces of the font.[compareFamily] Fixed incorrect message about real error when menu names are not correctly built.[compareFamily] Fixed test for improbable FontBBOX to use em-square rather than assume 1000 em.[compareFamily] Added warning if widths of ligatures are not larger than the width of the first glyph.[compareFamily] Added warning if accented glyphs have a width different than their base glyph.[compareFamily] Added error message if two faces in the same family have the same OS/2 width and weight class and italic style setting, and are not optical size variants. Optical size check is crude: the Adobe standard optical size names (Caption, Capt, Disp, Ds, Subh, Six) are removed from the PS font names and then compared; if the PS names are the same, then they are assumed to be optical size variants.[compareFamily] Added check that no hint is outside the FontBBox, for CJK fonts only.[spot/otfproof] Added "Korean" to list of tags for OS/2 codepage range.[spot/otfproof] Fixed dump of 'size' feature to support correct and old versions[spot/otfproof] Added dump/proof of contextual chaining positioning format 3.[spot/otfproof] Added warnings that only low-level dump of other contextual lookups is supported.[makeotf] Program is now a stand-alone C executable.[makeotf] Removed option to write contextual positioning rules in theoldincorrect format.[makeotf] MakeOTF no longer assigns Unicode Private Use Area values to glyphs for which it cannot identify. To use PUAs, explicitly assign them in the GlyphOrderAndAlias file.[makeotf] Fixed bug in name table name ID "Version": if version decimal value is x.000, then the value in the Version name ID string was x.001.[makeotf] Fixed bug in handling of DFLT language script: it's now possible to use this tag.[makeotf] Fixed feature file parsing bug where 'dflt' lookups in one feature were applied to the following feature if the following feature started with a language statement other than 'dflt'.[makeotf] Fixed serious bug where wrong width is calculated for glyphs where the CFF font Type 2 charstring for the glyph starts with a width value. This is then followed by the value pairs for the coordinates for the vertical hint, and then these are followed by a hint mask or control mask operator. The bug was that when MakeOTF reads in the charstring in order to derive the hmtx width, it discards the data before the control mask operator, leading the parser to use the CFF default width for the glyph.[makeotf] vhea.caretSlopeRise and vhea.caretSlopeRun is now set to 0 and 1 respectively, rather than the opposite.[makeotf] The OS/2 table 'fsType' field is now set to the feature file override. If not supplied, then the value of the environment variable FDK_FSTYPE. If not set then 4 (Preview & Print embedding).[makeotf] Added support for contextual chaining positioning of base glyphs; mark and anchors not yet supported.[makeotf] Fixed bug in 'size' feature: the feature param offset is now set to the offset from the start of the feature table, not from from the start of the FeatureList table.[makeotf] Allowed 'size' feature point sizes to be specified as decimal points, as well as in integer decipoints.[makeotf] OS/2 table version is now set to 3.[makeotf] Added OS/2 overrides for winAscent and winDescent.[makeotf] Added hhea overrides for Ascender/Descender/LineGap.[makeotf] Set OS/2 Unicode coverage bits only if the font has a reasonable number of glyphs in the Unicode block; it was setting the bits if the font had even one glyph in the block.[makeotf] The "Macintosh" codepage bit in the OS/2 codePageRange fields is now set by default.[FEA spec] Fixed incorrect range example in section2.g.ii. Named glyph classes[FEA spec] Changed rule to allow lookup definitions outside of feature definitions in FDK 2.0.[FEA spec] Fixed incorrect uses of 'DFLT' rather than 'dflt' for a language tag.1.6.8139 (released 2005-08-30)[OTFProof] Fixed error in dumping GSUB table: GSUB lookup 5, context lookup assumed that there were both a lookahead and a backtrack sequence.Updated SING META table tags to latest set.1.6.7974 (released 2004-08-30)[makeotf] Fixed rule in building CJK font. When looking for Adobe CMap files, will no longer use a hardcoded max supplement value when building paths to try.1.6.7393 (released 2004-01-14)[compareFamily] Fix stack dump when family has no BlueValues (reported by House Industries).[compareFamily] Fix stack dump when CFF-CID font has glyph with nosubrcalls.[OTFProof] Corrected error in last release, where spaces between ligature match string names were omitted.[FontLab macros] Added scripts for testing if the joins in a connecting script font design are good.[OTFProof] Fixed crash on proofing or dumping feature file syntax for GSUB lookup 5, context lookup. Also fixed rule-generating logic: results were previously wrong for proof and for feature-file syntax formats. Text dump has always been correct.[OTFProof] Fixed crash when dumping cmap subtables that reference virtual GIDs not in the font.[OTFProof] Fixed crash on dumping GSUB lookup type 6 chaining context subtable format 2. This has never worked before.[OTFProof] Added demo for SING glyphlet tables, SING and META.[FontLab macros] Added scripts for reading and writing an external composites definition text file.[FontLab macros] Added scripts for working with MM fonts.1.6.6864 (released 2003-10-08)[OTFProof] Fixed crash after dumping contents of ttc fonts (bug introduced in version 6792).[OTFProof] Fixed cmap subtable 4 and 2 dumps. Cmap subtable 2 could show encoding values for single byte codes which were really the first byte of two byte character codes. In Format 4, idDelta values were not being added when the glyphindex was derived from the glyph index array. These show issues show up in some TTF CJKV fonts.1.6.6792 (released 2003-09-24)[OTFProof] Fixed crash when proofing fonts withmanyglyphs.[OTFProof] Restored "skipping lookup because already seen in script/language/feature" messages to proof file, which was lost in version 6604.[OTFProof] Added ability to proof resource fork sfnt fonts from Mac OSX command line. It's still necessary to use the SplitForks tool to make a data-fork only resource file, but spot/otfproof can now navigate in the resulting AppleDouble formatted resource file.[OTFProof] Added support for a text dump of the GDEF table.[OTFProof] Changed title in 'size' feature dump fromCommon Characterstoname table name ID for common Subfamily name for size group.[AGL] Fixed some minor errors in the Adobe Glyph List For New Fonts.1.6.6629[OTFProof] Fixed bug in dumping KERN table from Mac sfnt-wrapped resource fork Type 1 MM font.[OTFProof] Changed the AFM-format dump of kern pairs to list all kern pairs for each language/script combination in separate blocks, and to eliminate all class kern pairs that are masked by a singleton kern pair. The temp buffer file path is now taken from the system C library function tmpnam(), and is not necessarily in the current directory.1.6.6568[OTFProof] Fixed command-line tool to write proof files in same location as font, and with font-name prefix, when not auto-spooled for printing.[OTFProof] Fixed bug in UI version where proofing GSUB features and then GPOS features would cause the GPOS feature proof files to be empty.[makeotf] Fixed heuristics for picking OS/2 weight/width so that a font name containingultracondensedwould trigger only setting the width, and not the weight as well.Updated Mac OS project files to CodeWarrior 8.1.6.6564[OTFProof] When dumping data from TTF fonts, now add@<gid>to all glyph names. This is because the rules for deriving names can lead to two glyphs being given the same name.[OTFProof] Fixed bug in proofing GPOS class kern pairs: was generating bogus kern pairs and duplicate kern pairs when the coverage format was type 2. Affects proof file only, not AFM or feature-format dump.Fixed memory overwrite bug encountered by Goichi and cleaned up various memory leaks in the process.[compareFamily] Added report on whether a face contains known std charset. Stub implementation - still need list of std charsets.[AFM2Feat] Developed tool to convert an AFM file to a file with kern featureposrules.1.6.6148Rebuilt all libraries for v1.6 release 3/10/2003.1.6.6048Updated FinishInstall.py to reflect Python 2.2 requirements.Picked up last MakeOTF.pdf editing changes.Fixed bug in GOADB.Updated CID font data in example fonts.Updated FDK release notes and installation instructions.Updated to use the GlyphOrderAndAliasDB file developed while converting the Adobe Type Library. Maps all the old glyph names to AGL compatible names.1.6.6020[OTFProof] Fixed crash in handling of VORG with no entries. (Vantive 574752)[MakeOTF] Updated documentation: added a description of how all three columns of theGlyphOrderAndAliasDBfile are used; added a new section on the key-value pairs of the font project file; updated the description of the FontMenuNameDB file entries; added minor clarifications throughout.Updateddigital_signature_guide.htmto match current Verisign website.[Example fonts] Changed the incorrect language keyword TUR to TRK.[Example fonts] Removed the many key/value pairs in the fontinfo files that are not used by MakeOTF.[OTFProof/spot] Fixed 3-column handling of GOAADB. (Vantive 569681)1.6.5959[MakeOTF] Suppressed the "repeat hint substitution discarded" message from the source file parsing library. These are so common that they obscure more useful messages.[MakeOTF] Set as default the option to build chaining contextual substitution rules with the incorrect format used by InDesign 2.0 and earlier.[MakeOTF] If the option above is set, then MakeOTF will write a name ID (1,0,0,5 - "Version") which will contain the text string which triggers special case code in future Adobe apps so that it will process the chaining contextual substitution rules as they were intended. If this option is NOT set, the name ID 5 will be written so as to not trigger this special case code. The special case treats specially any font where the name table name ID (1,0,0,5) exists and either matches,"OTF[^;]+;PS[^;]+;Core 1\.0\.[23][0-9].*"(example: "OTF 1.006;PS 1.004;Core 1.0.35") or contains,"Core[^;]*;makeotf\.lib"(example: "Core 1.0.38;makeotf.lib1.5.4898") or just,"Core;makeotf.lib"[MakeOTF] Turn off by default the option to force the .notdef glyph in the output OTF font be an crossed rectangle with an advance width of 500.[MakeOTF] Added rule to force the OS/2 WeightClass to always be at least 250. Shows error message if set or calculated WeightClass was less than this.[MakeOTF] Added test that FSType is set the same in the feature file as in source CID font files.[OTFProof] Page layout for CJKV font vertical layout: now writes the vertical columns right to left.[OTFProof] When writing vertical features, now shows the advance width sign as negative.[OTFProof] When making PostScript proof file, now writes DSC tags with correct header and page info.AddedUnicode and Glyph Namedocumentation to the FDKTechnical Documentationdirectory, to allow access to this info under the FDK license.1.6.4908[MakeOTF/FEA syntax] Added new vmtx table overrides, to allow setting vertical metrics for pre-rotated proportional glyphs that are specifically designed and are not simply rotated forms of proportional glyphs.[MakeOTF/FEA syntax] Added new OS/2 overrides to set the Unicode and Windows codepage range fields: UnicodeRange CodePageRange.[MakeOTF/FEA syntax] Updated language keywords to be consistent with OpenType spec, i.e usingdfltinstead ofDFLT. Expanded section explaining use of language and script default keywords. Old keywords still work, but cause a warning to be emitted.[FEA syntax] Expanded explanation of kern class pairs and subtable breaks.[MakeOTF] Updated the search rules for CID font CMap files to support Adobe-Japan2-0, and to look first for UTF-32 CMAP files.1.5.4987Release to Adobe website Sept 2002.1.5.4908[MakeOTF] Changed the name table version string to match OT spec 1.4.[CompareFamily] Made itreallywork with Sept 10th 2002 release of Just van Rossum's FontTools library.1.5.4492[MakeOTF] (hotlib 1.0.35) Fixed the error in processing GSUB contextual chaining substitution format 3. This was originally done according to the OpenType spec 1.4, which is in error by the established implementation of VOLT and Uniscribe. Added option '-fc' to cause the library to use the incorrect implementation, according to OT spec v1.4. By default, MakeOTF builds the correct contextual format per spec v1.5.[MakeOTF] (hotlib 1.0.35) Fixed Unicode cmap bug in assigning the OS/2 table field usLastCharIndex. This is supposed to be the highest Unicode value in the BMP-16 cmap tables. The problem was in the logic by which alternates of supplemental plane glyph names were being assigned an EUS code, but not added to the BMP-16 Unicode cmap tables, e.g. u1D269.alt. When one of these alternates was assigned an EUS value, the usLastCharIndex was getting bumped even though the glyph was not being added to the BMP-16 cmap tables. Fixed by not incrementing usLastCharIndex in this case.[MakeOTF] Fixed bug in applying client-supplied Unicode override values. These were omitted if the glyph names in the font were different than the final glyph names, as can happen when the client uses the getFinalGlyphName call back to supply a glyph production name which is different than the final glyph name.[OTFProof] Fixed crash when proofing liga feature in CID font. Also fixed crash when proofing charstring with only one operand, e.g h/r/vmoveto.[CompareFamily] Updated to use the latest version of Just van Rossum's FontTools library, added support for TrueType fonts. Now requires Python 2.2.[CompareFamily] Added family test 11: verify that for base font in style-linked group, Mac and Windows menu names are the same, and that for other fonts in the style linked group, the Mac and Windows menu names differ.1.5.4099External release of FDK 1.5 on Adobe website.1.5.3849[CompareFamily] Fixed tabular glyph and isFixedPitch test so that they are now useful - used to generate far too many false errors.[MakeOTF] Fixed bug in setting Panose values from a feature file override. If any value in the Panose value string is 0, all subsequent values were also set to 0.[MakeOTF] Fixed bug where glyphs that got renamed were not subjected to the ordering specified by the GlyphOrderAndAliasDB file.Added FDK.py file to integrate all tools into a common UI.[OTFCompare] Added use of CFFChecker library for CFF table.[CFFChecker] Added resource fork handling on OSX.[CompareFamily] Added family test 10: if any face in family has a real panose value, report derived panose values as an error.[CompareFamily] Fixed bug in comparing copyright notices in family test 7: will now really report error only if differs in other than years.[CFFChecker] Added support for multiple input files.[CFFChecker] Added support for resource fork fonts under MacOS 9.Added CFFChecker interface to makeotf.[OTFCompare] Added OSX prompt-based support.Fix R-O-S mapping for CMAP files.Fixed getunicodeCmap() to not hard-wire Adobe-Japan1-3 when processing J fonts.[CFFChecker] MacOS 9 version created.Added CFFChecker.[CompareFamily] Fixed to not die on font menu names with non-std ASCII.[OTFProof] Fixed vertical metrics proofing.[MakeOTF] Added warning when truncating OS/2 TypoAscender to force its sum with TypoDescender to be equal to the em-box.[MakeOTF] Allow fractional synthetic weight values. These are rounded to an integer.[MakeOTF] Changed XUID adding algorithm to NOT add the revision number to the XUID array.[MakeOTF] In release mode, add current year to copyright, suppress (c) string, and fix spaces around the phrase 'All Rights Reserved'.[MakeOTF] Fixed to permit building a font in release mode with no unique ID at all.[MakeOTF] Fixed bad cmap entry offset calculation.[MakeOTF] Fixed for bad cmap table entry.1.5.1023[MakeOTF] Changed algorithm for adjusting advance width/lsb/rsb of non-slanted synthetic glyphs when adding to italic fonts.[MakeOTF] Fixed failure of re-ordering when NOT forcing use of marking notdef.[MakeOTF] Fixed interaction between 'Sigma' and synthetic 'summation', 'Pi' and 'product'.[spot] Added the option to select which feature to dump in GPOS or GSUB=7 dumps.[OTFProof] Added support of TT instructions in compound glyphs.[CompareFamily] Fixed incorrect unwrapping T2 charstring subroutines. All previous reports on whether glyphs were hinted should be doubted.[MakeOTF] Tweaked horizontal spacing of upright glyphs in oblique fonts.[MakeOTF] Added support for "italicangle", "width" and "weight" keywords in FontMenuNameDB.[SCM/makeotf/typecomp] Fixed Euro-adding bug.[OTFProof] Removed header note "1000 units/em" from proofs.[OTFProof] Added support for cmap version 12.[OTFProof] Removed zero padding of CID values from text reports.[OTFProof] Reduced number of warnings about missing characters.[OTFProof] Removed warning when GPOS and GSUB table may be too big, as no tools make this error anymore, and it is triggered inappropriately when font uses the extension lookup.[OTFProof] Fixed different spacing problem reported. (Vantive 420313)[OTFProof] Fixed so that vertical proofs write from right to left.[MakeOTF] Fixed problem with unspecified CMap files.1.5.600[CompareFamily] Fixed so that it will not error out when one of the Blues arrays is not present.[OTFProof] Fixed so that glyph names for CID fonts print properly.[OTFProof] Fixed problems with compile under SunOS.[MakeOTF] Added MakeOTFScript.py as an example file to edited, in order to allow scripting of makeOTF on the Mac (or any other platform). Minor changes to MakeOTF.py to fix this.[MakeOTF] Added an option to allow removing deprecated Type 1 operands from output font (e.g.seacanddotsection).[MakeOTF] Added an option to allow adding synthesized glyphs to fonts, leveraging a built-in sans and serif multiple master substitution font. The source font must contain a 'zero' and a capital 'O'. The glyphs that can be synthesized are:Euro Delta Omega approxequal asciicircum asciitilde at backslash bar brokenbar currency dagger daggerdbl degree divide equal estimated fraction greater greaterequal infinity integral less lessequal litre logicalnot lozenge minus multiply notequal numbersign onehalf onequarter paragraph partialdiff perthousand pi plus plusminus product quotedbl quotesingle radical section summation threequarters zero1.4.583Began tracking files by Perforce changelist label, from the Perforce source code management system.Updated compilers to Mac/CodeWarrior 6 Pro, Windows Visual C++ 6.0.Re-organized build directories to have mac/win/sun4 subdirectories.Re-organized shared include files to all be under /Programs/api, with non-conflicting names.[Example fonts] Updated MinionPro-Capt: now has correct frac and size features.[Example fonts] Added KozMinPro to samples.[MakeOTF] Fixed bug where fontinfo keyword IsStyleBold was ignored for CID fonts.[MakeOTF] Fixed Mac build project to load debug and release libraries by different names.[MakeOTF] Added feature file support for the "languagesystem" statement. Note that this entailed removing support for script, language, and named lookup statements in the size feature, and removing support for script and language statements in the aalt feature. See feature file spec for details.[MakeOTF] More descriptive wording in offset overflow error messages. Feature file error handling improved: multiple error messages are emitted before failing if possible, instead of just one; final glyph name as well as glyph alias (if applicable) reported if not found in font.[MakeOTF] Changed the 14 Corporate Use subarea Unicode values for Zapf Dingbats to the proposed UVs in anticipation of their being incorporated into the Unicode standard.[MakeOTF] Added FontWorks ('FWKS') to vendor ID list.[MakeOTF] Increased the maximum number of named lookups allowed to 8192.[MakeOTF] Now makes kern and vert features from kern data passed in by clients and from V CMap (respectively) only when the HOT_CONVERSION bit is set. (Previously, these features were made from the sources mentioned above if they weren't already defined in a feature file.)[MakeOTF] Fixed an obscure bug in OS/2.ulUnicodeRange computation: if the largest UV in the font were not in any Unicode range recognized by hotlib then it was counted as being in the next recognized Unicode range after the UV. (No known fonts are affected by this.)[MakeOTF] Forced the OS/2 codepage range bits for Chinese to either Simplified or Traditional, based on the Mac cmap script, if it is defined as either Simplified or Traditional, and will fall back to the heuristics if the script is undefined. If the mac.script is something other than a Chinese script, then the OS/2 codepage range bits for Chinese will not be set.[OTFCompare] The Python sys.path variable must now contain the path to the directory containing the OTFProof library (usuallyFDK/Tools/Programs/otfproof/exe). This replaces the hardcoded path reference in the OTFCompare.py script. On all platforms, this is done by adding the file "otfproof.pth", containing the path, to the Python installation.[OTFCompare] Fixed a bug that was causing tables smaller than 16 bytes to be reported as different[OTFProof] Added new proofing mode to CFF_ to print one glyph per page.[OTFProof] Added new proofing option to suppress file-specific header info to facilitate diff-ing of multiple proofs.[OTFProof] Added alphabetical sorting of AFM-style dump.[OTFProof] Fixed bug causing GPOS/GSUB features with digits in their names to not appear in the proofing list.[OTFProof] Added support for glyphsize option in CFF_ dumps.[OTFProof] Fixed conflicting include file names; must now specify include paths in project file.[OTFProof] Reduced some of the recursion in the subroutinization code to reduce stack space requirements.[OTFProof] Fixed support for included feature files in parent folder on the Mac.1.3.2 (2000-10-24)[OTFProof] Fixed bug where would report error opening Mac TTF suitcase font, because data fork was of size 0.[OTFProof] Fixed bug where feature tags containing numbers were filtered out of the feature list for proofing.[OTFProof] Fixed bug where baseline was shown incorrectly for CJK fonts with baselines other than 120.[OTFProof] Fixed bug where y-placement changes were not shown correctly in vertical writing mode proofs.1.3.1 (2000-08-15)[MakeOTF] Fixed problem with heuristics for OS/2 codepage range settings, for Chinese Simplified vs Traditional.[MakeOTF] Added macro to define MakeOTF version number.[MakeOTF] updated makeotflib help/usage messages: shown when args are incorrectly formatted.[makeotf] (makeotf/exe/makeotfutils.py)added fontinfo list entry for "Language".added 'parameter' variable entry for same.increased num values to from 34 to 35.changed initialization of 'parameter' so can more easily figure out which index matches which fontinfo field.[makeotf] (makeotf/exe/makeotf.py)updated version numbers to 1.3.1.added '-cs' and '-cl' options to help.added processing of Language field, to set script and language IDs with '-cs' and '-cl' options.[makeotf] (makeotf/source/main.c)added macro to define MakeOTF version number, used in help message, and in client name string for name id 5 "Version".added mac_script and mac_language fields to global static 'convert' structure.added processing of '-cs' and '-cl' arguments to parse_args().added mac_script and mac_language arguments to call to cbconvert().updated print_usage to match that of makeotf.py.updated the ReadFontInfo() to process new Language field.[makeotf] (makeotf/source/cb.c)moved initialization (as type unknown) of mac.encoding, mac.script and mac.language from cbconvert to cbnew().added setting of mac.script and mac.language to cbconvert(), from arguments.added mac_script and mac_language arguments to call to cbconvert().[makeotf] (source/includes/cb.h)added mac_script and mac_language arguments to call to cbconvert().[hotconvlib] (coretype/source/map.c)changed logic for setting OS/2 codepage range to set code page to Simplified or Traditional Chinese based on mac.script setting; fallback on heuristics only if mac.script is not set.
afd-measures
AFD measuresA collection of measures for Approximate Functional Dependencies in relational data. Additionally, this repository contains all artifacts to "Approximately Measuring Functional Dependencies: a Comparative Study".Short descriptionIn real-world research projects, we often encounter unknown relational (tabular) datasets. In order to process them efficiently, functional dependencies (FDs) give us structural insight into relational data, describing strong relationships between columns. Errors in real-world data let traditional FD detection techniques fail. Hence we consider approximate FDs (AFDs): FDs that approximately hold in relational data.This repository contains the implemented measures as well as the all artifacts to "Approximately Measuring Functional Dependencies: a Comparative Study".Overviewcode: this directory holds the code used to generate the results in the paperafd_measures: all Python source code relating to the implemented AFD measuresexperiments: Jupyter notebooks containing the processing steps to generate the results, figures or tables in the papersynthetic_data: all Python source code relating to the synthetic data generation processdata: the datasets used in the paperrwd: manually annotated dataset of files found on the web (seedata/ground_truth.csv)rwd_e: datasets fromrwdwith errors introduced into them. Generated by the notebookcode/experiments/create_rwd_e_dataset.ipynb.syn_e: synthetic dataset generated focussing on errors. Generated by the notebookcode/experiments/create_syn_e.ipynbsyn_u: synthetic dataset generated focussing on left-hand side uniqueness. Generated by the notebookcode/experiments/create_syn_u.ipynbsyn_s: synthetic dataset generated focussing on right-hand side skewness. Generated by the notebookcode/experiments/create_syn_s.ipynbpaper: A full version of the paper including all proofs.results: results of applying the AFD measures to the datasets.Installation (measure library)This library can be found onPyPI:afd-measures. Install it usingpiplike this:pipinstallafd-measuresUsage (measure library)To apply one of the measures to your data, you will need a pandas DataFrame of your relation. Pandas will automatically installed as a dependency ofafd-measures. You can start with this Python snippet to analyse your own data (a CSV file in this example):importafd_measuresimportpandasaspdmy_data=pd.read_csv("my_amazing_table.csv")print(afd_measures.mu_plus(my_data,lhs="X",rhs="Y"))Installation (experiments)To revisit the experiments that we did, clone this repository and install all requirements withPoetry(preferred) orConda.PoetryInstall the requirements using poetry. Use the extra flag "experiments" to install all additional requirements for the experiments to work. This includes (amongst others)Jupyter Lab.$poetryinstall-Eexperiments $jupyterlabCondaCreate a new environment from theconda_environment.yamlfile, activate it and run Jupyter lab to investigate the code.$condacreate-fconda_environment.yaml $jupyterlabDataset ReferencesIn addition to this repository, we made our benchmark also available on Zenodo:find it hereadult.csv: Dua, D. and Graff, C. (2019).UCI Machine Learning Repository. Irvine, CA: University of California, School of Information and Computer Science.claims.csv: TSA Claims Data 2002 to 2006,published by the U.S. Department of Homeland Security.dblp10k.csv: Frequency-aware Similarity Measures. Lange, Dustin; Naumann, Felix (2011). 243–248.Made available as DBLP Dataset 2.hospital.csv: Hospital dataset used in Johann Birnick, Thomas Bläsius, Tobias Friedrich, Felix Naumann, Thorsten Papenbrock, and Martin Schirneck. 2020. Hitting set enumeration with partial information for unique column combination discovery. Proc. VLDB Endow. 13, 12 (August 2020), 2270–2283.https://doi.org/10.14778/3407790.3407824).Made available as part the dataset collection to that paper.t_biocase_...files: t_bioc_... files used in Johann Birnick, Thomas Bläsius, Tobias Friedrich, Felix Naumann, Thorsten Papenbrock, and Martin Schirneck. 2020. Hitting set enumeration with partial information for unique column combination discovery. Proc. VLDB Endow. 13, 12 (August 2020), 2270–2283.https://doi.org/10.14778/3407790.3407824).Made available as part the dataset collection to that paper.tax.csv: Tax dataset used in Johann Birnick, Thomas Bläsius, Tobias Friedrich, Felix Naumann, Thorsten Papenbrock, and Martin Schirneck. 2020. Hitting set enumeration with partial information for unique column combination discovery. Proc. VLDB Endow. 13, 12 (August 2020), 2270–2283.https://doi.org/10.14778/3407790.3407824).Made available as part the dataset collection to that paper.
afei
UNKNOWN
afeng-py-tools
afeng-py-tools介绍阿锋的Python工具集软件架构软件架构说明安装教程安装pipinstallxxxxxxxx使用说明xxxxxxxxxxxx参与贡献Fork 本仓库新建 Feat_xxx 分支提交代码新建 Pull Request特技使用 Readme_XXX.md 来支持不同的语言,例如 Readme_en.md, Readme_zh.mdGitee 官方博客blog.gitee.com你可以https://gitee.com/explore这个地址来了解 Gitee 上的优秀开源项目GVP全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目Gitee 官方提供的使用手册https://gitee.com/helpGitee 封面人物是一档用来展示 Gitee 会员风采的栏目https://gitee.com/gitee-stars/
afenrirpdf
This is the homepage of our project.
aferro-ml-lib
python_ml_templateFirst actions:When setting up the repo (and potentially also the venv) from scratch, a few one-time actions are needed:install pip dependenciespre-commit install --install-hooks -t pre-commit -t commit-msggit config branch.master.mergeOptions "--squashActivate gh-pages web (otherwise the CI release will error here).Features:The following things are already integrated via CI, but can be run manually:Utest: python -m unittestutest with py coverage: coverage run -m unittestflake8allusing pre-commit, added commitizen to pre-commit (remember topre-commit install --install-hooks -t pre-commit -t commit-msg). This enforces "conventional commits" style:https://www.conventionalcommits.org/en/v1.0.0/#summaryTo commit, reecommended topip install commitizenand then commit using:cz c(orcz c --retryif the last one failed).docs from scratch:Add docs folder and requirements.txt withsphinxandsphinx-rtd-themeCentralized version and metadata. Setup works with very few parametersTo enforce squash merging to master, issuegit config branch.master.mergeOptions "--squash"(info:https://stackoverflow.com/a/37828622)GH pages action. Make sure that the repo server has publishing enabled, otherwise it will error.PyPI: need a regular and a test account. Create a token for GH actions (if global only need to do this once). Then, in the GH repo, add that token under secrets->pypi.https://pypi.org/manage/account/token/Further feature ideas/TODOs:TUTinitcheck_installationautoimports in eachinitdcase test toolspylintrc?custom "asteroid" sphinx thememypy (not needed in research code)gitignore.iodependabothttps://dependabot.com/github-actions/Ignore commits in changelog:https://github.com/conventional-changelog/conventional-changelog/issues/342Deploy to conda-forgechange docstring style to napoleonadd doctestAdd changelog to autodocsIntegrate wiki. Add wiki to autodocsAutocomment:https://github.com/marketplace/actions/label-commenterTODO:CML+ Complete ML projectGeneralize runner to GPU, home and GitLab
afeSMS
No description available on PyPI.
afesta-tools
Library and tools for AFesta.tvFeaturesLogin to Afesta/LPEG API and register as a new player/clientRe-use existing 4D Media Player installation + login credentials when available (Windows only)Download Afesta videos via CLI (requires valid account and appropriate purchases/permissions)Download and extract interlocking goods scripts from Afesta vcz archives (supports extracting scripts in both Vorze CSV and Funscript formats)RequirementsPython 3.8+Valid Afesta accountInstallationYou can installAfesta ToolsviapipfromPyPI:$pipinstallafesta-toolsUsageLogin to Afesta via CLI (not required on Windows if 4D Media Player is installed and logged into Afesta):$afestaloginAfesta username: username Afesta password:Download videos:$afestadlm1234-0000m1234-0000_1m1234-0000_2m1234-0000_3...Download vcz archives:$afestadl-vczABC123-Takumi-R1_sbsABC123-Takumi-R2_sbsABC123-Takumi-R3_sbs...Extract CSV scripts from vcz archives:$afestaextract-scriptABC123-Takumi-R1_sbs.vczABC123-Takumi-R2_sbs.vczABC123-Takumi-R3_sbs.vcz...Extract Funscript scripts from vcz archives (for Piston only).$afestaextract-script--format=funscriptABC123-Takumi-R1_sbs.vczABC123-Takumi-R2_sbs.vczABC123-Takumi-R3_sbs.vcz...Please see theCommand-line Referencefor details.ContributingContributions are very welcome. To learn more, see theContributor Guide.LicenseDistributed under the terms of theMIT license,Afesta Toolsis free and open source software.IssuesIf you encounter any problems, pleasefile an issuealong with a detailed description.CreditsThis project was generated from@cjolowicz’sHypermodern Python Cookiecuttertemplate.
afew
No description available on PyPI.
afewpython
No description available on PyPI.
afex-audit-trail
AFEX Audit TrailInstallationInstall DependenciesPython 3.8Django 4.0Install the package with pip and all the required libraries would be installedpipinstallafex-audit-trailSetting up...Add 'audit-trails' to your installed apps:INSTALLED_APPS=[...'audit_trails',....]Run 'python manage.py migrate' to add the schemapythonmanage.pymigrateGenerating LogsTo generate log for every request and response on the server, add the 'ActivityLoggingMiddleware' to your MIDDLEWARE list.MIDDLEWARE=[....'audit_trails.middleware.ActivityLoggingMiddleware',]The log can be stored in either database or file, file being the default storage. Set the LOG_STORAGE variable in your settings.py file if you wish to use database for storage.LOG_STORAGE='database'Log file can be found in activity.log in the project directoryGenerating NotificationsNotifications are generated manually by calling the appropriate method in your views or anywhere you'd like to generate notifications.Notification has 4 levels namely;info, success, warning, error. Each of the has a method for creating notification with their respective level.To generate notification anywhere in your code, import notify from signals and call the method that matches your notification level with the right attribute.The right syntax is:from audit_trails.signals import notify notify.success(actor, recipients, action, action_object_type, action_object_id)Add notification urls to your confFor webview projects, includeaudit_trails.urlsandaudit_trails.api.urlsfor api, in your urlconf:urlpatterns = [ ... path('notifications/', include('audit_trails.api.urls')), ... ]Responses (View)For api, '/notifications' returns a javascript object similar to the sample below:{"responseCode":100,"data":[{"id":1,"level":"success","description":"You modified John Doe's profile","timestamp":"2023-04-03T17:03:01.957252+01:00","timesince":"15 minutes","is_read":false},{"id":5,"level":"success","description":"John created Mary Doe's profile","timestamp":"2023-03-03T10:05:18.361405+01:00","timesince":"1 month","is_read":false}],"message":"Notification list retrieved successfully"}For webview, '/notifications' returns a html page with list of notificationsArguments:Requiredactor: A required object of a user instancerecipients: A set of users to whom the notifications are sentaction: A short description (preferably one or two word)action_object_type: Specifies the object type on whom the action was performed and it could be of nay typeaction_object_id: An integer of the action object id. together with theaction_object_type. The actual object is gotten.Othersaction_target_object_type: Specifies the object typetowhich the action was performed and it could be of nay typeaction_target_object_id: An integer of the action object id. together with theaction_target_object_type.detail: An optional string field for more information about the notification.Extra InformationOther notification level methods are:notify.info(), notify.warning(), notify.error(), with the same arguments asnotify.success()Queryset MethodsQueryset methods were added to make querying and manipulations easier. Some of the methods are :unread(), read(), mark_all_as_read(), mark_all_as_unread()e.guser.notifications.mark_all_as_read()would mark all notification as read for a particular user.Model Methods and Propertiestimesince: Property returning the difference between the current date and the date the notification was created.description: Property returning string sentence of the actor, action and object of the notificationmark_as_read(): toggles theis_readfield of a notification object toTruemark_as_unread(): toggles theis_readfield of a notification object to ```False``
afex-devtools
No description available on PyPI.
af-execution-manager
AristaFlow BPM REST Client library for connecting to the ExecutionManager/ExecutionManager endpoint.https://pypi.org/project/aristaflowpy/provides APIs on top of the AristaFlow BPM REST endpoints for many use cases, so using aristaflowpy is recommended.
afex-sso
AFEX SSO (DJANGO)Simple Integration (usage)instantiate the SSO classfrom AFEX_SSO import SSO sso = SSO() def get_user_details(View): sso_instance = sso.check_credentials(session_key) get_user = sso_instance['data'].get('user') ''' # other codes ''' def logout(View): # get user email email = " " signout = sso.sign_out(email) ''' # other codes '''Keyssession_key : sent from the service provider client (frontend) after successful authentication on the ssoSETTINGSset the sso details on settings.py as shown belowSSO_URL = ""SSO_API_KEY = ""SSO_SECRET_KEY = ""Sample Response{ "responseCode": "100", "data": { "session_identifier": "SES_2c73ff51cfe5c5a68fc58934c9be3b", "user": { "email": "[email protected]", "first_name": "Ayodeji", "last_name": "Balogun", "photo": null, "tribe": null, "designation": "Software Developer", "email_aliases": [ "[email protected]", ] } }, "message": "Successfully Retrieved" }
aff
affAnti Fragile ForecastingIt's a opensource solution for many forecasting common issues.
aff4-snappy
Python bindings for the snappy compression library from Google.More details about Snappy library:http://code.google.com/p/snappyThis package is statically built against the snappy codebase so that we do not need to ship libsnappy.so together with the python module. This makes it easier to host on PyPi.
affability
AffabilityAffability allows for an easy utilization of Google's DialogFlow for natural language understanding. It allows for calling a single function and returning the result from Dialogflow as a class containing all the pertinent data such as detected intent. Communicating with Dialogflow through Affability trades-off features and customizability for simplicity and conciseness.This can be utilized to understand commands and then perform the relevant tasks based from the detected intent. Affability is ultimately designed to make it easy to integrate DialogFlow in other standalone projects.DependenciesAs of v1.0.1, affability automatically installs dialogflow. Should speech recognition be needed, the SpeechRecognition pakage needs to be installed.pipinstallSpeechRecognitionWith an invalid argument, Affability throws an InvalidArgument exception, which requires importing it from the Google API Core exceptions:fromgoogle.api_core.exceptionsimportInvalidArgumentInstallationpipinstallaffabilityUsageThe module can be imported as affability:importaffabilityUsing the understand function:The understand function contains 5 parameters: text, credentials, projectID, languageCode, and sessionID. Text is text to be analyzed, credentials is the file path of the authentication key, projectID is the project ID, languageCode is the language, and sessionID is the session ID. All parameters are strings.affability.understand('textToBeAnalyzed','filepath','projectIDname','en-US','me')The understand function returns the results as an organizer class. This class contains detectedIntent, confidence, reply, action, requiredParamsPresent, and replyParams.classorganizer:def__init__(self,detectedIntent,confidence,reply,action,requiredParamsPresent,replyParams):self.detectedIntent=detectedIntentself.confidence=confidenceself.reply=replyself.action=actionself.requiredParamsPresent=requiredParamsPresentself.replyParams=replyParamsFor example, to extract and print detected intent:reply=affability.understand('textToBeAnalyzed','filepath','projectIDname','en-US','me')print(reply.detectedIntent)Affability throws the InvalidArgument exception when DialogFlow detects invalid arguments. To handle this, it is recommended to use the understand function in a try and except block:try:reply=affability.understand('textToBeAnalyzed','filepath','projectIDname','en-US','me')# do something with replyexceptInvalidArgument:# Handle invalid argument errorSample usageThe sample.py file demonstrates the ease of communicating with Dialogflow through Affability.
affan
Failed to fetch description. HTTP Status Code: 404
affapy
AffapyAffapyis a Python library for multiprecision Affine Arithmetic. Affapy can be used to perform operations with affine forms and intervals.InstallationAffapy can be installed withpip:pip3installaffapyUsageSee the Affapy's documentationhere.ContributorsQuentin DESCHAMPS:[email protected] GUILY:[email protected] MICHEL:[email protected] ZENG:[email protected] GPLv3
affbio
Affinity Propagation for biomolecules
affection
AffectionAlgebraic Effect for modern Python.Tips: Istronglyrecommend you to readAlgebraic Effects for the Rest of Usbefore you start.Affectionis a small library that implementsAlgebraic Effectfor Python. It leveragesasyncio, decorator andwithsyntax for a smooth experience.Warning: Please note that untilHigher Rank Type Variantsare supported in Python, theEffect.handleAPI will be quite ugly.UsageThis project is designed to be a single file project.You can either directly copy it into your project, or addaffectionfromPyPIwith your favorite package manager.fromaffectionimportEffect,Handle,effect,performclassLog(Effect[None]):def__init__(self,content:str):self.content=contentdefget_name(name:str|None=None)->str:perform(Log(f"Getting name with{name}"))returnperform(effect("ask_name",str))ifnameisNoneelsenamedefmain():withHandle()ash:@Log.handle(h)def_(l:Log):print(l.content)@effect("ask_name",str).handle(h)def_(_)->str:return"Default"perform(Log("Test parent log"))withHandle()asi_h:@Log.handle(h)def_(l:Log):print("Inner",l.content.lower())print(get_name("Ann"))print(get_name())if__name__=="__main__":main()"""Test parent logInner getting name with annAnnInner getting name with noneDefault"""
affectivecloud
Enter Affective Cloud SDK For PCIntroductionEnter Affective Cloud SDK For PC is provided byEnter Technology, designed to work with Enter Technology's Bluetooth chip and the Affective Cloud platform. This SDK is developed in Python and can run on macOS, Linux, and Windows.Installationpip install affectivecloudFeaturesAccess Bluetooth data (enterble)Connect to the Affective Cloud serverCall the Affective Computing serviceReceive data from the Affective Computing serviceUsageSeeexamplessimpleheadband Demoheadband Demo GUI VersionNoteDevice-relatedEach type of device has a different name. When using the demo, please use the corresponding name or do not specify a name. If no name is specified, all devices under the same UUID will be enumerated.Development EnvironmentThe SDK by default supports Python runtime environments of version >= 3.6 and < 3.10; if you need to use versions above 3.10, please upgrade the websockets dependency package to version >= 10.0.Environment VariablesWhen using the demo, you need to set the environment variables:APP_KEYAPP_SECRETCLIENT_IDFor details, refer to:Authenticate and create a session
affectivemachine
AffectiveMachineAn affective computing toolkit in pythonInstallationpipinstallaffectivemachineLicenseAffectiveMachine isApache 2.0 licensed.
affen
Affen: plone.restapi for Humans™Affenis arequestsSession equiped to easily consumeplone.restapiIterating without Affen>>>importrequests>>>response=requests.get('https://plonedemo.kitconcept.com/@search?sort_on=path',...headers={'Accept':'application/json'},auth=('admin','admin'))>>>fori,iteminenumerate(response.json()['items']):...print(i,item['@id'])...0https://plonedemo.kitconcept.com/de1https://plonedemo.kitconcept.com/de/Assets2https://plonedemo.kitconcept.com/de/demo3https://plonedemo.kitconcept.com/de/demo/a-image.jpg4https://plonedemo.kitconcept.com/de/demo/big_buck_bunny.mp45https://plonedemo.kitconcept.com/de/demo/ein-link6https://plonedemo.kitconcept.com/de/demo/ein-ordner7https://plonedemo.kitconcept.com/de/demo/ein-ordner/eine-seite-in-einem-ordner8https://plonedemo.kitconcept.com/de/demo/ein-termin9https://plonedemo.kitconcept.com/de/demo/eine-nachricht10https://plonedemo.kitconcept.com/de/demo/eine-seite11https://plonedemo.kitconcept.com/de/demo/ploneconf-plone5.pdf12https://plonedemo.kitconcept.com/de/frontpage13https://plonedemo.kitconcept.com/en14https://plonedemo.kitconcept.com/en/assets15https://plonedemo.kitconcept.com/en/demo16https://plonedemo.kitconcept.com/en/demo/a-event17https://plonedemo.kitconcept.com/en/demo/a-file.pdf18https://plonedemo.kitconcept.com/en/demo/a-folder19https://plonedemo.kitconcept.com/en/demo/a-folder/a-page-inside-a-folder20https://plonedemo.kitconcept.com/en/demo/a-link21https://plonedemo.kitconcept.com/en/demo/a-news-item22https://plonedemo.kitconcept.com/en/demo/a-page23https://plonedemo.kitconcept.com/en/demo/a-photo.jpg24https://plonedemo.kitconcept.com/en/demo/a-video.mp4>>>And then follow thebatchingfor more. (and remember to startenumerateat the right number)>>>response=requests.get(response.json()['batching']['next'],...headers={'Accept':'application/json'},auth=2*('admin',))>>>fori,iteminenumerate(response.json()['items'],start=i+1):...print(i,item['@id'])...25https://plonedemo.kitconcept.com/en/frontpage26https://plonedemo.kitconcept.com/my-document>>>An Affen Session can take credentials and an api_root in the contructor, and has anitemsfunction that iterates over anything in restapi that uses the batching protocol; like Folders, Collectors and restapi endpoints like@search:>>>fromaffenimportSession>>>plone=Session('admin','admin','https://plonedemo.kitconcept.com')>>>fori,iteminenumerate(plone.items('@search?sort_on=path')):...print(i,item['@id'])...0https://plonedemo.kitconcept.com/de1https://plonedemo.kitconcept.com/de/Assets2https://plonedemo.kitconcept.com/de/demo3https://plonedemo.kitconcept.com/de/demo/a-image.jpg4https://plonedemo.kitconcept.com/de/demo/big_buck_bunny.mp45https://plonedemo.kitconcept.com/de/demo/ein-link6https://plonedemo.kitconcept.com/de/demo/ein-ordner7https://plonedemo.kitconcept.com/de/demo/ein-ordner/eine-seite-in-einem-ordner8https://plonedemo.kitconcept.com/de/demo/ein-termin9https://plonedemo.kitconcept.com/de/demo/eine-nachricht10https://plonedemo.kitconcept.com/de/demo/eine-seite11https://plonedemo.kitconcept.com/de/demo/ploneconf-plone5.pdf12https://plonedemo.kitconcept.com/de/frontpage13https://plonedemo.kitconcept.com/en14https://plonedemo.kitconcept.com/en/assets15https://plonedemo.kitconcept.com/en/demo16https://plonedemo.kitconcept.com/en/demo/a-event17https://plonedemo.kitconcept.com/en/demo/a-file.pdf18https://plonedemo.kitconcept.com/en/demo/a-folder19https://plonedemo.kitconcept.com/en/demo/a-folder/a-page-inside-a-folder20https://plonedemo.kitconcept.com/en/demo/a-link21https://plonedemo.kitconcept.com/en/demo/a-news-item22https://plonedemo.kitconcept.com/en/demo/a-page23https://plonedemo.kitconcept.com/en/demo/a-photo.jpg24https://plonedemo.kitconcept.com/en/demo/a-video.mp425https://plonedemo.kitconcept.com/en/frontpage26https://plonedemo.kitconcept.com/my-document>>>Wrangling the RegistryAnd if you have the permissions, you can read and write to the registry as if it were a dictionary:>>>plone=Session('admin','admin','http://127.0.0.1:8080/Plone')>>>plone.registry['plone.allowed_sizes']['large 768:768','preview 400:400','mini 200:200','thumb 128:128','tile 64:64','icon 32:32','listing 16:16']>>>plone.registry['plone.allowed_sizes']=['supersize_me 3840:2160']>>>plone.registry['plone.allowed_sizes']['supersize_me 3840:2160']>>>But my requests.Session does almost the same!>>>vanilla=requests.Session()>>>vanilla.auth=('admin','admin')>>>vanilla.headers['accept']='application/json'>>>ROOT='http://127.0.0.1:8080/Plone'>>># these two lines make it almost as short as Affen...>>>[t['title']fortinvanilla.get(f'{ROOT}/@types').json()]['Collection','Event','File','Folder','Image','Link','News Item','Page']>>># see? f-strings were such a great idea!>>># Affen is hardly shorter>>>[t['title']fortinplone.get('@types').json()]['Collection','Event','File','Folder','Image','Link','News Item','Page']>>>Sure, until you accidentally reuse the session for requests to a different host. It's so conveniently close, and seems to behave likerequests.get. So your mypy powered IDE didn't catch it. In fact, it provided handy autocompletion, so it looked like the Right Thing™.>>>vanilla.get('https://httpbin.org/headers').json()['headers']['Authorization']'Basic YWRtaW46YWRtaW4='>>>OOPS, did we just send our 'Authorization' header to the nice people of httpbin.org? An Affen Session will throw a fit when you try to do that:>>>plone.get('https://httpbin.org/headers').json()Traceback(mostrecentcalllast):...ValueError:Makingrequeststootherhoststhanhttp://127.0.0.1:8080/Plone/mayleakcredentials.Useadifferentrequests.Sessionforthoseorchangeroot>>># and even when whe change the api root>>>plone.root='https://httpbin.org'>>>plone.get('headers').json()['headers']['Authorization']Traceback(mostrecentcalllast):...KeyError:'Authorization'>>># it won't send the secrets
affiliate-deeplink
No description available on PyPI.
affiliatelinkconverter
This is affiliate link converter packageChane Log1.0.0 (12/8/2020)First Release
affilipy
No description available on PyPI.
affinda
Python Client Library for Affinda Document Parser APIThis is a python client for the Affinda document parsing API which wraps all available endpoints and handles authentication and signing. You may also want to refer to the fullAPI documentationfor additional information.InstallationpipinstallaffindaAPI Version CompatibilityThe Affinda API is currently onv3, with breaking changes meant the release of new versions of the client library. Please see below for which versions are compatible with which API version.Affinda API versionaffinda-pythonversionsv20.1.0 - 3.x.xv3>= 4.x.xQuickstartIf you don't have an API token, obtain one fromaffinda.com.frompathlibimportPathfrompprintimportpprintfromaffindaimportAffindaAPI,TokenCredentialfromaffinda.modelsimportWorkspaceCreate,CollectionCreatetoken="REPLACE_API_TOKEN"file_pth=Path("PATH_TO_DOCUMENT.pdf")credential=TokenCredential(token=token)client=AffindaAPI(credential=credential)# First get the organisation, by default your first one will have free creditsmy_organisation=client.get_all_organizations()[0]# And within that organisation, create a workspace, for example for Recruitment:workspace_body=WorkspaceCreate(organization=my_organisation.identifier,name="My Workspace",)recruitment_workspace=client.create_workspace(body=workspace_body)# Finally, create a collection that will contain our uploaded documents, for example resumes, by selecting the# appropriate extractorcollection_body=CollectionCreate(name="Resumes",workspace=recruitment_workspace.identifier,extractor="resume")resume_collection=client.create_collection(collection_body)# Now we can upload a resume for parsingwithopen(file_pth,"rb")asf:resume=client.create_document(file=f,file_name=file_pth.name,collection=resume_collection.identifier)pprint(resume.as_dict())SamplesSamples for all operations using the client can befound here.API referenceAPI operations can be found hereAPI models and objectsExceptionsChangelogAll notable changes to this project will be documented in this file.The format is based onKeep a Changelog, and this project adheres toSemantic Versioning.[Unreleased][4.18.0] - 2024-01-31AddedAdd sourceEmailAddress to DocumentMeta modelAdd tablesBeta to InvoiceData modelAdd sourceEmailAddress to document meta[4.17.0] - 2024-01-16AddedAdded "website" data point typeAdd mapping and dataSource to the field endpointsAdd list mapping data sources endpointRemovedRemoved "cell" data point typeChangedAdd URL annotation type[4.16.0] - 2023-12-04AddedAdd data mappingAdd dropNullEnums to FieldAdded AnnotationContentTypeAdded show_custom_field_creation to OrganizationIntroduce endpoints to deal with data sources that can be created by customers, and used to map data onto a picklist, or lookup values for downstream validation[4.15.0] - 2023-11-14AddedAdd PATCH /index/ endpointAdd user to Index objectAdd "compact" query parameter to GET /documents/ endpointAdd "compact" query parameter to POST /documents endpoint[4.14.0] - 2023-11-08AddedAddparentfield toAnnotationFixedMakeAnnotation.rectanglesfield non-nullableMakeAnnotation.documentfield requiredChangedRemove enum constraint fromorderingon thegetAllDocumentsoperation[4.13.0] - 2023-10-24AddedAdd display_enum_value config to Collection field configChangedMigrate display_enum_value from DataPoint to Collection field configRemovedRemove display_enum_value from DataPoint[4.12.0] - 2023-10-19AddedAdd disableEditDocumentMetadata option to validation tool configAdd field custom_identifier to DocumentMeta modelAllow specifying custom_identifier when create/update documentDeprecatedDeprecate writing to identifier when creating/updating document[4.11.0] - 2023-10-03AddedAdd SOC group codes to classification[4.10.0] - 2023-09-21AddedAllow creating workspace-scope webhookAdd "document.rejected" webhook event[4.9.0] - 2023-07-26AddedAllow create and enable/disable child fields in Collection.fieldsLayoutDeprecatedDeprecatefieldsin favor ofenabledChildFieldsanddisabledChildFieldsin Collection.fieldsLayout[4.8.1] - 2023-07-19FixedSerialisation of Document to Invoice, Resume etc in async get_document()[4.8.0] - 2023-07-19ChangedMake Field.slug nullable and not requiredDeprecatedDeprecate Field.slugAddedSupport for custom base URL and http scheme in async client[4.7.2] - 2023-07-07ChangedSet CustomFieldConfig default to 0.5FixedFixed serialisation of Document to Invoice, Resume etc in get_document()[4.7.1] - 2023-06-28AddedAdd xml response to api spec to GET /v3/documenets to match existing functionality[4.7.0] - 2023-06-27AddedAllow create/update data point'sparentanddisplayEnumValuepropertyAllow explicitly set a document as low_priorityChangedMakeslugandorganizationrequired when creating data pointRemovedRemove data point'ssimilarToproperty[4.6.0] - 2023-06-16AddedAddtailoredExtractorRequestedto CollectionAdd endpoint for update resumes and JD data[4.5.1] - 2023-06-14AddedAddrawTextto invoice data[4.5.0] - 2023-06-09AddedAbility to post/patch languages for resumes in v2Addinclude_publicparameter to /data_points endpointAddbase_extractorparameter to collection creation endpointChangedMakeextractora non required field (internal use)[4.4.0] - 2023-06-07AddedEndpoints for add/remove tag for documentsIdentifier field in DocumentUpdate modelAllow settingregion_biaswhen uploading documentrawText field to JobDescription ModelRequired fields for resthook subscriptionsAddfieldsLayouttoCollectionschemaDeprecatedDeprecateCollection.fieldsin favor ofCollection.fieldsLayout[4.3.5] - 2023-05-09ChangedNest line item table rows correctly.[4.3.4] - 2023-05-09ChangedNest line item table rows correctly.[4.3.3] - 2023-05-09AddedAddOrganization.validationToolConfigfor configuration of the embeddable validation toolPhone number details to Resume Candidate infoAdd some filters toGET /documentsendpoint:failed,ready,validatableCustom fields to Job DescriptionsAdd custom data to job description search resultsAdd international_country_code to phone number detailsChangedProvide additional filters for data point choices, and allow data point choices to be specified for any existing text field.Allow custom resume fields to be nullableAllow custom job description fields to be nullableMake "pdf" property in SearchResults nullableRemovedRemoveinclude_childfilter from/data_pointsendpointFixedUpdate python_requires to be PEP compliant[4.3.2] - 2023-04-20ChangedrawText is now not nullableOccupationGroupSearchResult.children is now optionalFixedAllow rejectDuplicates to be null[4.3.1] - 2023-03-29AddedAddwhitelistIngestAddressesto WorkspaceFixedMake search config action fields required[4.3.0] - 2023-03-28AddedAdding group annotation content typeAdd rejectDuplicates setting to workspaceAddhideToolbarto resume & JD search configAdd ExtractorConfig object to Collection[4.2.0] - 2023-03-20Fixedfixed - Use OccupationGroupResult for v3 SearchAndMatch detailFixed return type for InvoiceData.currencyCodeChangedDon't require Field.slugAddedAdd redactedText field to ResumeData[4.1.0] - 2023-03-15FixedFixed type and path of data_point and data_point_choicesFixed missing data field on base Document typeFixed search and match return typesfixed document error return typesEnsure list endpoints have 'results' and 'count' properties requiredChangedMinor re-ordering of API spec pathsChange Document API tag from Document API - Upload Documents to Document API - Document[4.0.1] - 2023-03-10FixedFixed resume search response object[4.0.0] - 2023-03-09AddedAdd resthook subscription endpointsAdd py.typed marker fileAdd link to affinda help docs for resthook creationChangedRemove extractor'sidfield, useidentifierfield insteadRemovedRemove extractor'sidfieldRemoved v2 endpoints[2.1.0] - 2023-02-06AddedAdd document.collection.extractor.identifier to DocumentMetaAdd cell to valid content typesAdd EU API server to api docsAdd latitude and longtitude to LocationAdd expectedremuneration, jobtitle, language, skill and yearsexperience to AnnotationContentTypere-add DataPoint.simlarToAddexcludeparameter to /documents queryadd ingest email to Workspace and CollectionChangedUpdated endpoints for old v2 and newer v3 to point to the correct places.Changed Document top level structure to more closely resemble api v2 with top level keys of meta, data and errorResumeSearchParamaters.resume, ResumeSearchParameters.jobdescription, JobDescriptionSearchParameters.resume, DataPoint.organizationUpdate azure-core version in setup.cfg and pin setuptools as latest version doens't buldFixedFixed various nullable fields not being nullable, and vice versaRemovedMaster/child accounts endpoints[2.0.0] - 2023-01-13AddedAdded endpoints: Organization, Membership, Invitation, tagsAdded name, organization to DataPoint, change id to identifierAdd new objects schemas Organization, OrganizationMembership, InvitationChangedIdentifier instead of id as URL paramUpdate data point filtersAllow unlimited nesting in field configChange document state from "export" to "archive"FixedCollection identifier should be nullableDon't paginate extractors endpointFix avatar uploadsAllow writing resthookSignatureKey[1.9.0] - 2023-01-12Yanked as this was a breaking release, see newer release for more info[1.8.0] - 2023-01-12ChangedAllow non TLS http requests[1.7.0] - 2023-01-10AddedAdd rectangles to Annotation, add position to referee, add actions to JobDescriptionSearchConfig[1.6.0] - 2023-01-09FixedBump version to force new release[1.5.1] - 2023-01-08ChangedAllowing a few more fields in ResumeData to be null[1.5.0] - 2022-11-17FixedDocument meta pages without images should be nullableSmall fixes for accreditiation and education return objectsVarious nullable fields in the API specSecurityBumped package versions for patch reasonsAddedAdd reject_duplicates to document upload endpointXML 404 response schemaCustomData to resume search specsuggest skills and job titles endpointsChangedUpdate spec to allow XML content-type return from resumes, make totalYearsExperience nullableAllow additonalproperties for custom data upload (resumes) and search[1.4.2] - 2022-09-23ChangedUpdate API spec to match API response.[1.4.1] - 2022-09-23AddedAdd job description search config and embed endpointsUpdate index endpoint with document type parameterFixedFix casing of some properties to match API response.[1.4.0] - 2022-08-25ChangedUpdate modelerfour version to latestUpdate types of objects for some endpoints using AllOf attributes for better client library generationChanged and updated tag order to better match documentation needsUpdated autorest client versionDeprecatedDepreciated resume_formats and reformatted_resumes endpointsAddedReverse match functionality - search job descriptions with a resume, or with a set of parameters.[1.3.1] - 2022-08-10AddedAdd search expression to 1v1 match[1.3.0] - 2022-07-27AddedAdd ability to find other candidates that have similar attributes to a resumeAdd an endpoint to get the matching score between a resume and a job description[1.2.0] - 2022-07-04Addedadd "tables" property to InvoiceData[1.1.0] - 2022-07-03AddedAbility to update resume data in the search systemNew endpoint for creating and managing users within a master account[1.0.2] - 2022-05-07FixedMake expiry time native date time[1.0.1] - 2022-05-01AddedAdd review URL in the invoice response that allows embedding of the Affinda Invoice Review UI[1.0.0] - 2022-04-28Addedadded confidenceChangedchanged strings to objects[0.4.1] - 2022-04-19FixedFixes bug in create_invoice when URL is not specified[0.4.0] - 2022-04-13ChangedUpdate autorest depedencies[0.3.0] - 2022-04-06AddedResume search[0.2.2] - 2022-03-25AddedAdd iso 3166 country code to locations[0.2.1] - 2021-12-09AddedBump version[0.2.0] - 2021-10-06AddedInvoices endpointRemovedRemoved 'url' format from url strings in api spec[0.1.13] - 2021-10-05ChangedPin azure-core to 1.18.0[0.1.12] - 2021-10-05ChangedPin azure-core[0.1.11] - 2021-10-05ChangedPinning azure-core dependency due to incompatible changes in 1.19[0.1.10] - 2021-09-30AddedAdding LinkedIn to ResumeDataChangedReformatted code with blackMinor changesVery minor formatting changes[0.1.9] - 2021-09-08AddedProfession in ResumeData modelUnified Error models[0.1.8] - 2021-09-06Fixedwait=true in API spec[0.1.7] - 2021-09-05FixedCode samples naming conversion[0.1.6] - 2021-09-05ChangedDescription of some endpoints to match updats in API specMoved samples to their own./docs/samples_python.mdfile[0.1.5] - 2021-08-25AddedAdded flake, editorconfig, tox.ini etc files to match best practices for existing Draftable/Affinda projects (thanks@ralish!)[0.1.4] - 2021-08-18FixedUpdate README.md to fix install instructions[0.1.3] - 2021-08-18FixedUpdate README.md to hard link to github hosted logo to fix display on PyPi[0.1.2] - 2021-08-18Initial releaseThe MIT License (MIT)Copyright (c) AffindaPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
affinder
affinderQuickly find the affine matrix mapping one image to another using manual correspondence points annotationThisnapariplugin was generated withCookiecutterusing with@napari'scookiecutter-napari-plugintemplate.InstallationYou can installaffinderviapip:pip install affinderContributingContributions are very welcome. Tests can be run withtox, please ensure the coverage at least stays the same before you submit a pull request.LicenseDistributed under the terms of theBSD-3license, "affinder" is free and open source softwareIssuesIf you encounter any problems, pleasefile an issuealong with a detailed description.
affine
Matrices describing 2D affine transformation of the plane.The Affine package is derived from Casey Duncan’s Planar package. Please see the copyright statement inaffine/__init__.py.UsageThe 3x3 augmented affine transformation matrix for transformations in two dimensions is illustrated below.| x' | | a b c | | x | | y' | = | d e f | | y | | 1 | | 0 0 1 | | 1 |Matrices can be created by passing the valuesa, b, c, d, e, fto theaffine.Affineconstructor or by using itsidentity(),translation(),scale(),shear(), androtation()class methods.>>>fromaffineimportAffine>>>Affine.identity()Affine(1.0, 0.0, 0.0, 0.0, 1.0, 0.0)>>>Affine.translation(1.0,5.0)Affine(1.0, 0.0, 1.0, 0.0, 1.0, 5.0)>>>Affine.scale(2.0)Affine(2.0, 0.0, 0.0, 0.0, 2.0, 0.0)>>>Affine.shear(45.0,45.0)# decimal degreesAffine(1.0, 0.9999999999999999, 0.0, 0.9999999999999999, 1.0, 0.0)>>>Affine.rotation(45.0)# decimal degreesAffine(0.7071067811865476, -0.7071067811865475, 0.0, 0.7071067811865475, 0.7071067811865476, 0.0)These matrices can be applied to(x, y)tuples to obtain transformed coordinates(x', y').>>>Affine.translation(1.0,5.0)*(1.0,1.0)(2.0, 6.0)>>>Affine.rotation(45.0)*(1.0,1.0)(1.1102230246251565e-16, 1.414213562373095)They may also be multiplied together to combine transformations.>>>Affine.translation(1.0,5.0)*Affine.rotation(45.0)Affine(0.7071067811865476, -0.7071067811865475, 1.0, 0.7071067811865475, 0.7071067811865476, 5.0)Usage with GIS data packagesGeoreferenced raster datasets use affine transformations to map from image coordinates to world coordinates. Theaffine.Affine.from_gdal()class method helps convertGDAL GeoTransform, sequences of 6 numbers in which the first and fourth are the x and y offsets and the second and sixth are the x and y pixel sizes.Using a GDAL dataset transformation matrix, the world coordinates(x, y)corresponding to the top left corner of the pixel 100 rows down from the origin can be easily computed.>>>geotransform=(-237481.5,425.0,0.0,237536.4,0.0,-425.0)>>>fwd=Affine.from_gdal(*geotransform)>>>col,row=0,100>>>fwd*(col,row)(-237481.5, 195036.4)The reverse transformation is obtained using the~operator.>>>rev=~fwd>>>rev*fwd*(col,row)(0.0, 99.99999999999999)
affine6p
The Python affine6p lib is to estimate affine transformation parameters between two sets of 2D points.:| x' | | a b p | | x | | y' | = | c d q | | y | | 1 | | 0 0 1 | | 1 |When the sets are more than three points, the lib estimate parameters with the least squares method.In making this lib, I used a lot of ideas in nudged lib. Ref:https://github.com/axelpale/nudged-pyInstallUse pip:pip install affine6pUsageYou have lists of points for theoriginalandconvertedof the transformation function to be estimated:import affine6p origin = [[0,0], [1,0], [0,1], [1,1]] convert = [[0,0], [1,0], [0,1], [1,1.1]] trans = affine6p.estimate(origin, convert) trans.get_matrix() # [[1.0, 0.0, 0.0], # [0.050000000000000044, 1.05, -0.02499999999999991], # [0, 0, 1]] affine6p.estimate_error(trans, origin, convert) # 0.025000000000000022When the number of origin is1, assume the following relationship:a = d = 1 and b = c = 0When the number of origin is2, assume the following relationship as described inestimate_helmert.:a = d and b = -cYou can accessTransform class members.:trans.a() # params[0] trans.b() # params[1] trans.c() # params[2] trans.d() # params[3] trans.p() # params[4] trans.q() # params[5] trans.get_matrix() # [[a, b, p], [c, d, q], [0, 0, 1]] trans.get_rotation_x() # math.atan2(-b, a) trans.get_rotation_y() # math.atan2(c, d) trans.get_scale_x() # sqrt(a*a + b*b) trans.get_scale_y() # sqrt(c*c + d*d) trans.get_scale() # sqrt((scale_x*scale_x+scale_y*scale_y)*0.5) trans.get_translation() # [p, q] trans.params # [a, b, c, d, p, q]You can applytransformorrotateto 2D point or points. The rotate meansp = q = 0.:trans.transform([0, 0]) trans.transform([[0, 0], [1, 1]]) point = [0, 0] trans.transform_inv(point) trans.rotate(point) trans.rotate_inv(point)
affine6p-cstest
The Python lib to estimate affine transformation parameters between two sets of 2D points.:| x' | | a b p | | x | | y' | = | c d q | | y | | 1 | | 0 0 1 | | 1 |When the sets are more than three points, the lib estimate parameters with the least squares method.In making this lib, I used a lot of ideas in nudged lib. Ref:https://github.com/axelpale/nudged-pyInstallUse pip:pip install affine6pUsageYou have lists of points for theoriginalandconvertedof the transformation function to be estimated:import affine6p origin = [[0,0], [1,0], [0,1], [1,1]] convert = [[0,0], [1,0], [0,1], [1,1.1]] trans = affine6p.estimate(origin, convert) trans.get_matrix() # [[1.0, 0.0, 0.0], # [0.050000000000000044, 1.05, -0.02499999999999991], # [0, 0, 1]] affine6p.estimate_error(trans, origin, convert) # 0.025000000000000022When the number of origin is1, assume the following relationship:a = d = 1 and b = c = 0When the number of origin is2, assume the following relationship as described inestimate_helmert.:a = d and b = -cYou can accessTransform class members.:trans.a() # params[0] trans.b() # params[1] trans.c() # params[2] trans.d() # params[3] trans.p() # params[4] trans.q() # params[5] trans.get_matrix() # [[a, b, p], [c, d, q], [0, 0, 1]] trans.get_rotation_x() # math.atan2(-b, a) trans.get_rotation_y() # math.atan2(c, d) trans.get_scale_x() # sqrt(a*a + b*b) trans.get_scale_y() # sqrt(c*c + d*d) trans.get_scale() # sqrt((scale_x*scale_x+scale_y*scale_y)*0.5) trans.get_translation() # [p, q] trans.params # [a, b, c, d, p, q]You can applytransformorrotateto 2D point or points. The rotate meansp = q = 0.:trans.transform([0, 0]) trans.transform([[0, 0], [1, 1]]) point = [0, 0] trans.transform_inv(point) trans.rotate(point) trans.rotate_inv(point)
affinegap
No description available on PyPI.
affine-transform
This project explores how C++17 and OpenMP can be combined to write a surprisingly compact implementation of n-dimensional parallel affine transformations which are linked into Python via theaffine_transformmodule.While this project is still under development, the following features are supported:Linear and cubic (without prefiltering) interpolationConstant boundariesCompiling code for arbitrarily dimensional dataParallelism via OpenMPArbitrary shaped output arrays, allowing e.g. to only extract a transformed sliceShort example usageimportnumpyasnpfromaffine_transformimporttransformfrommgenimportrotation_from_angle# Create a simple white square in an imageoriginal=np.zeros((601,401))original[100:300,100:300]=1# Rotate by 22.5° (around the centre of the square (200,200))# and shift +200 in x and +100 in ytransformed=transform(original,rotation_from_angle(np.pi/8),np.array([200,100]),origin=(200,200))
affinidi.common-check-widget-backend-lib
@affinidi/common-check-widget-backend-libAn common-check-widget-backend-lib package authored in TypeScript that gets published as GitHub packages for Node.js, Python etcLicenseThis library is licensed under the MIT-0 License. See the LICENSE file.Documentationshttps://common-check-widget-backend-lib.affinity-project.org/
affinitic.caching
IntroductionChangelog0.7.1 (2016-06-03)Testing layer that avoids caching [gotcha]0.7 (2016-06-03)Enable/disable caching via python or browser view [gotcha]0.6.2 (2016-05-25)Add environment variable to set default cache lifetime [jfroche]Fix dependencies storage [jfroche]0.6.1 (2015-09-22)Use advanced dict to allow getattr on cached rowproxy refs #7577 [schminitz]0.6 (2014-10-22)Allow to invalidate dependencies0.5 (2014-08-26)Move memcache utility to overrides zcmlDelegate the namespace definition to a utility and cache the namespace calculationMake sqlalchemy a soft dependency0.4 (2013-02-22)Optimizes the caching functions.Adds two decorators who clears the cache before or after a function.Adds a function to clear a specific cache.Adds a function to invalidate a specific key in the cache.0.3 (2013-02-13)Change name from arsia.caching to affinitic.caching0.2 (2011-02-22)Fix dependencies0.1 (2010-11-01)Initial release
affinitic.docpyflakes
IntroductionCheck your doctest for various errors. Depends on pyflakes (http://pypi.python.org/pypi/pyflakes).Usage example:docpyflakes yourdoctext.txtThis package has an entry point for buildout to create a script via:[buildout] parts = ... scripts [scripts] recipe = zc.recipe.egg:scripts eggs = affinitic.docpyflakesVIMMy vim configuration integration to run docpyflakes while I am working on my doctest and handle errors quickly:fun! PyflakesForDocTest() let tmpfile = tempname() execute "w" tmpfile execute "set makeprg=(docpyflakes\\ " . tmpfile . "\\\\\\|sed\\ s@" . tmpfile ."@%@)" make cw redraw! endfun autocmd BufWrite *.{txt} :call PyflakesForDocTest()EMACSLearn VIMChangelog0.1 (2010-02-19)Initial release
affinitic.privatefolder
This products allows you to add folders with only a ‘Private’ state. You can create a simple Extranet with only this folder and the sharing tab.FeaturesAdds PrivateFolder content typeAdds privatefolder_workflow workflow (with Private state)TranslationsThis product has been translated intoFrenchInstallationInstall affinitic.privatefolder by adding it to your buildout:[buildout] ... eggs = affinitic.privatefolderand then runningbin/buildoutContributeIssue Tracker:https://github.com/affinitic/affinitic.privatefolder/issuesSource Code:https://github.com/affinitic/affinitic.privatefolderLicenseThe project is licensed under the GPLv2.CreditsThis package was developed byAffinitic team.affinitic.privatefolderis licensed under GNU General Public License, version 2.ContributorsLaurent Lasudry,[email protected] (2020-01-21)Initial release. [laulaz]
affinitic.recipe.fakezope2eggs
Zope 2 isn’t eggified yet, Zope 3 does. That can become a problem if you want to install some egg with depedencies related to Zope 3 eggs (such as zope.interface, zope.component, …)This buildout recipe will simply add some fake egg link to zope libraries (installed inside zope/lib/python/zope/…) so that setuptools can see that the dependencies are already satisfied and it won’t fetch them anymore.Just add it to your buildout config like this:[buildout] parts = ... your other parts ... fakezope2eggs [fakezope2eggs] recipe = affinitic.recipe.fakezope2eggsBe careful to run this recipe after the plone.recipe.zope2install recipe.You might also want to add other fake eggs to your buildout, to do so use the additional-fake-eggs option, for example:[buildout] parts = ... your other parts ... fakezope2eggs [fakezope2eggs] recipe = affinitic.recipe.fakezope2eggs additional-fake-eggs = ZODB3
affinitic.simplecookiecuttr
affinitic.simplecookiecuttrBasic integration ofjquery.cookiecuttr.jsfor Plone 3.If you want jquery.cookiecuttr.js integration for Plone 4, please considercollective.cookiecuttr.OptionsOptions are stored inportal_properties/affinitic_simplecookiecuttrsheet. You can enable / disable the warning and add any language there.French is supported by default.CreditsThis package was developed byAffinitic team.affinitic.simplecookiecuttris licensed under GNU General Public License, version 2.Changelog0.1 (2015-03-25)Initial release
affinitic.smartweb
An agnostic version of IMIO SmartwebFeaturesCan be bullet pointsExamplesThis add-on can be seen in action at the following sites: - Is there a page on the internet where everybody can see the features?DocumentationFull documentation for end users can be found in the “docs” folder, and is also available online at …TranslationsThis product has been translated intoFrenchInstallationInstall affinitic.smartweb by adding it to your buildout:[buildout] ... eggs = affinitic.smartweband then runningbin/buildoutContributeIssue Tracker:http://git.affinitic.be/affinitic-addons/affinitic.smartweb/issuesSource Code:http://git.affinitic.be/affinitic-addons/affinitic.smartwebSupportIf you are having issues, please let us know.LicenseThe project is licensed under the GPLv2.ContributorsAffinitic,[email protected] (2024-02-20)Add links to item title and image in mini-list template section [jchandelle]Add plone.footer viewlet [jchandelle]Add mini-list template for section [jchandelle]Add hook for publication import [jchandelle]1.0.0a12 (2024-02-19)Add allowed_content_types to LRF [jchandelle]Add plone.translatable behavior to default smartweb type [jchandelle]Add links to item title and image in list template section [jchandelle]Add hook for collage in import document [jchandelle]Allow news and events sections in portal page [laulaz]1.0.0a11 (2023-11-08)Fix Remove unfinished behavior from configure [jchandelle]Add behavior to section to select a image scale [jchandelelle]1.0.0a10 (2023-11-02)Fix “/” in type declaration [jchandelle]Change i18n domain on types [jchandelle]Fix i18n for event macro [jchandelle]Fix i18n for see more button [jchandelle]1.0.0a9 (2023-10-19)Fix Event and News container creation [jchandelelle]1.0.0a8 (2023-10-19)Compile Ressources and remove dist from gitignore [jchandelle]1.0.0a7 (2023-10-19)Add bundels and hide workshop button [jchandelle]Fix event and news creation [jchandelelle]Add option to choose interface in check folder [jchandelle]Change publish date location [jchandelle]1.0.0a6 (2023-09-15)Fix collection section view [jchandelle]1.0.0a5 (2023-09-08)Fix event and news default layout [jchandelle]1.0.0a4 (2023-09-07)Update and fix types [jchandelle]Fix adding new and event folder [jchandelle]1.0.0a3 (2023-08-18)Add ownership to event and news type [jchandelle]1.0.0a2 (2023-08-18)Modfiy Smartweb type behavior [jchandelle]Fix section duplication when reimporting data [jchandelle]Fix missing section files [jchandelle]Remove iam from types behavior [jchandelle]Fix for missing title and too long description [jchandelle]1.0.0a1 (2023-04-25)Locals [jchandelle]Add multilangual dependencies [jchandelle]Fix removing default folder [jchandelle]Add back portlet support [jchandelle]Add Event and News type [jchandelle]Remove CirkwiView type [jchandelle]Add custom hook for migration [jchandelle]Remove default dependencies from imio smartweb [Nicolas]Initial release. [Affinitic]
affinitic.tools
This package contains multiple python tools.LicenseThe project is licensed under the GPLv2.CreditsThis package was developed byAffinitic team.affinitic.toolsis licensed under GNU General Public License, version 2.Changelog1.0 (2017-01-09)Initial release [mpeeters]
affinitic.verifyinterface
IntroductionWhat’s the use to declare an interface if your class doesn’t implement correctly the interface ?Of course you should verify that in a test but if you don’t want to write a test to check that all your code really implements the promised interfaces use this package.It’s a simple patch that callszope.interface.verify.verifyClassonce you declare implementing an interface and print the BrokenImplementation or BrokenMethodImplementation as a warning (if any).Simple example in testrunner:By default the egg enable interface contract verification forzope.interface.implementsandzope.interface.classImplementsthat are present in all your packages:>>> write('buildout.cfg', ... """ ... [buildout] ... parts = ... test ... ... [test] ... recipe = zc.recipe.testrunner ... eggs = affinitic.verifyinterface ... zope.exceptions ... defaults = ['-m', 'module'] ... """) >>> print system(buildout) Installing test. ... >>> from os.path import join >>> print system(join('bin', 'test')), <class 'affinitic.verifyinterface.tests.test_module1.Foo'> failed implementing <InterfaceClass affinitic.verifyinterface.tests.test_module1.IFoo>: An object has failed to implement interface <InterfaceClass affinitic.verifyinterface.tests.test_module1.IFoo> <BLANKLINE> The bla attribute was not provided. <BLANKLINE> <class 'affinitic.verifyinterface.tests.test_module2.Bar'> failed implementing <InterfaceClass affinitic.verifyinterface.tests.test_module2.IBar>: An object has failed to implement interface <InterfaceClass affinitic.verifyinterface.tests.test_module2.IBar> <BLANKLINE> The bla attribute was not provided. <BLANKLINE> Running zope.testing.testrunner.layer.UnitTests tests: Set up zope.testing.testrunner.layer.UnitTests in 0.000 seconds. Ran 2 tests with 0 failures and 0 errors in 0.000 seconds. Tearing down left over layers: Tear down zope.testing.testrunner.layer.UnitTests in 0.000 seconds.Limit verificationsBut you can limit the package where this verification needs to be done (sometimes you don’t care that a package you depend on didn’t implement correctly an interface).This is done by adding an environment variableverifyinterfacewhere you specify what packages/modules (separated by n as usual) you accept to verify interfaces.Here is a simple example where I only want to have warning for bad implementation of interfaces used by module1:>>> write('buildout.cfg', ... """ ... [buildout] ... parts = ... test ... ... [test] ... recipe = zc.recipe.testrunner ... eggs = affinitic.verifyinterface ... zope.exceptions ... defaults = ['-m', 'module'] ... environment = testenv ... ... [testenv] ... verifyinterface = affinitic.verifyinterface.tests.test_module1 ... """) >>> print system(buildout) Uninstalling test. Installing test. ... >>> from os.path import join >>> print system(join('bin', 'test')) <class 'affinitic.verifyinterface.tests.test_module1.Foo'> failed implementing <InterfaceClass affinitic.verifyinterface.tests.test_module1.IFoo>: An object has failed to implement interface <InterfaceClass affinitic.verifyinterface.tests.test_module1.IFoo> <BLANKLINE> The bla attribute was not provided. <BLANKLINE> Running zope.testing.testrunner.layer.UnitTests tests: Set up zope.testing.testrunner.layer.UnitTests in 0.000 seconds. Ran 2 tests with 0 failures and 0 errors in 0.000 seconds. Tearing down left over layers: Tear down zope.testing.testrunner.layer.UnitTests in 0.000 seconds.Changelog0.1 (2009-12-18)Initial release
affinitic.zamqp
This package defines basic components of a Messaging Gateway integrated inside Zope using AMQP.Zope Component Architecture (ZCA) is about loosely coupled design in an Application. AMQP is about loosely coupled communication between Applications. This package tries to join the two.Documentation:http://docs.affinitic.be/affinitic.zamqpCode Repository:http://bitbucket.org/jfroche/affinitic.zamqpBuildbot:http://buildbot.affinitic.be/builders/affinitic.zamqp%20linux_debian/Test Coverage:http://coverage.affinitic.be/affinitic.zamqp/affinitic.zamqp.htmlChangelog0.6 (2011-06-14)Nothing changed yet.0.5 (2011-06-09)Also compatible with Zope 2.10/2.110.4 (2011-06-09)Change transactionmanager order to be the very last one0.3 (2011-02-22)Fix for Zope 2.130.2 (2010-10-19)Abort transaction correctly on error - send error to utility if availableAdd multithreaded consumer (default to 1)0.1 (2010-03-20)Initial release
affinity
‘affinity’ provides a simple api for setting the processor affinity by wrapping the specific underlying function calls of each platform. works on windows (requires pywin32) and linux (kernel 2.6 or patched 2.4).
affinity-crm
No description available on PyPI.
affirm
UNKNOWN
affirmative-sampling
Affirmative Sampling: Reference ImplementationThis repository contains a reference implementation, in Python, of theAffirmative Samplingalgorithm by Jérémie Lumbroso and Conrado Martínez (2022), as well as the original paper, accepted at the Analysis of Algorithms 2022 edition in Philadelphia.Table of contents:AbstractInstallationHistorical ContextExampleIntuition of How the Random Sample GrowsLicenseToC generated with markdown-tocAbstractAffirmative Samplingis a practical and efficient novel algorithm to obtain random samples of distinct elements from a data stream.Its most salient feature is that the size $S$ of the sample will, on expectation,grow with the (unknown) number $n$ of distinct elements in the data stream.As any distinct element has the same probability to be sampled, and the sample size is greater when the "diversity" (the number of distinct elements) is greater, the samples thatAffirmative Samplingdelivers are more representative than those produced by any scheme where the sample size is fixeda priori—hence its name. This repository contains a reference implementation, in Python, to illustrate how the algorithm works and showcase some basic experimentation.InstallationThis package is available on PyPI and can be installed through the typical means:$pipinstallaffirmative_samplingThe hash functions that are used in this package come fromtherandomhashPython package.Historical ContextSampling is a very important tool, because it makes it possible to infer information about a large data set using the characteristics of a much smaller data set. Historically, it came in the following flavors:(Straight) Sampling: Each element of the initial data set of size $N$ is taken with the same (fixed) probability $p$. Such sample's size is a random variable, distributed like a binomial and centered in a mean of $Np$.Reservoir Sampling: This (family of) algorithm(s),introduced by Jeffrey Vitter (1985), ensures the size of the resulting sample is fixed, by usingreplacements—indeed an element that is in the sample at some point in these algorithms, might later be evicted and replaced, to ensure the sample is both of fixed size, yet contains elements with uniform probability.Adaptive/Distinct Sampling: This algorithm, introduced by Mark Wegman (1980),analyzed by Philippe Flajolet (1990)andrebranded by Philip Gibbons (2001), draws elements not from a data set of size $N$, but by the underlying set of distinct items of that data set, of cardinality $n$. Both previous families of algorithm are susceptible to large, frequent elements, that drawn out other more rare elements. Distinct sampling algorithms are family of sampling algorithms that use hash functions to be insensitive to repetitions. While the size of the sample is not fixed, it oscillates closely around a fixed (constant) size.Affirmative Sampling: This novel algorithm conserves the properties of the Distinct Sampling family of algorithms (because it also uses a hash function to be insensitive to repeated elements), but allows the target size of the sample to be a function of $n$, the number of distinct elements in the source data set—to be precise, the size of the sample is supposed to be $~k \cdot \log \frac n k + k$, logarithmic in the number of distinct elements. This is important, because the accuracy of estimates inferred from a random sample depend on how representative the sample is of the diversity of the source data set, and Affirmative Sampling calibrates the size of the sample to deliver accurate estimates.ExampleYou can look and run an example. Assuming you havepipenv:$pipenvrunpythonexample.pyor otherwise assuming your current Python environment has the packageaffirmative_samplinginstalled:$pythonexample.pyThe output will be something along the following lines (exact value will change as the seed depends on the computer's clock):===================================================== 'Affirmative Sampling' by J. Lumbroso and C. Martínez ===================================================== Examples use Moby Dick (from the Gutenberg Project) N=215436, n=19962, k=100, k*ln(n/k)=629.641555925844 EXAMPLE 1: Number of tokens without 'e' ==================================== - Exact count: 6839 - Estimated count: 7398.94 - Error: 8.19% - Size of sample: 648 - Expected size of sample: 629.64 - Tokens in sample without 'e': 242 - Proportion of tokens in sample without 'e': 37.35% EXAMPLE 2: Number of mice (freq. less or equal to 5) ==================================================== - Exact count: 16450 - Estimated count: 16999.21 - Error: 3.34% - Size of sample: 648 - Expected size of sample: 629.64 - Tokens in sample without 'e': 556 - Proportion of tokens in sample without 'e': 85.8% SAMPLE ====== 1780 but 427 would 315 do 165 water 103 sight 86 give 68 name 61 together 54 entire 43 straight 37 famous 33 idea 31 mariners 29 person 29 stands 27 wooden 26 circumstance 26 cutting 26 otherwise 25 souls 22 aboard 22 owing 20 ah 19 concluded 19 deeper 19 leaves 19 ordinary 18 anchor 18 presently 17 foolish 17 previously 17 weight 16 fate 15 fit 15 flag 15 grass 15 shake 14 intent 14 rock 13 bunger 13 cool 13 eager 13 glancing 13 slightly 13 token 13 trademark 13 visit 12 america 12 smells 12 solemn 12 street 12 touched 11 ashes 11 carefully 11 carpenters 11 dish 11 downwards 11 sounding 11 stream 10 event 10 inferior 10 lift 10 perch 9 cask 9 change 9 driving 9 everlasting 8 crushed 8 currents 8 damp 8 leviathanic 8 mayhew 8 monkey 8 ought 8 published 8 shooting 8 strove 7 cracked 7 destined 7 knocking 7 lookout 6 arch 6 bury 6 cheek 6 comfort 6 decent 6 longitude 6 probable 6 purple 6 subjects 6 symptoms 6 value 5 depend 5 dip 5 disordered 5 faded 5 fasten 5 france 5 guard 5 humming 5 invited 5 navy 5 paradise 5 pen 5 riveted 5 rude 5 specimen 5 sufficient 5 wait 4 anchored 4 arsacidean 4 assert 4 beast 4 beaver 4 blubberroom 4 boatknife 4 cease 4 damages 4 distinguish 4 fidelity 4 follows 4 gills 4 hearses 4 moves 4 music 4 ninety 4 offers 4 paintings 4 razor 4 respectfully 4 scorching 4 sets 4 spaniards 4 standers 4 stroll 4 supposition 4 tufted 4 unrecorded 3 asiatic 3 behooves 3 brilliancy 3 capacity 3 capricious 3 cares 3 characteristics 3 charley 3 churned 3 closet 3 cuts 3 describe 3 disposition 3 dodge 3 entity 3 epidemic 3 eternities 3 extinct 3 fancies 3 figured 3 fleetness 3 flooded 3 flurry 3 grizzled 3 halls 3 hip 3 inconsiderable 3 inmates 3 inseparable 3 mending 3 mule 3 pouring 3 pregnant 3 providence 3 quoted 3 rags 3 romish 3 route 3 shun 3 smoky 3 socks 3 spots 3 stained 3 stolen 3 substantiated 3 suspect 3 tarpaulins 3 tashtegos 3 thrusts 3 ticklish 3 tows 3 tragedy 3 treat 3 typhoons 3 unabated 3 user 3 weighty 3 westward 3 whittling 3 wraps 2 accessible 2 admitting 2 admonished 2 aglow 2 agonized 2 alluding 2 attain 2 avenues 2 awed 2 backwoodsman 2 barely 2 belshazzars 2 bout 2 brag 2 bravest 2 bumps 2 burkes 2 ceases 2 chancelike 2 chasefirst 2 complement 2 confidently 2 constitution 2 cows 2 cringing 2 decanting 2 digest 2 dilapidated 2 distinctive 2 dusting 2 egotistical 2 enlivened 2 ensue 2 entrances 2 error 2 essentially 2 exertion 2 expiring 2 faraway 2 fearlessly 2 fishe 2 fishspears 2 girdling 2 glide 2 grammar 2 halloo 2 hilariously 2 housekeeping 2 hover 2 hudson 2 imputation 2 injured 2 junks 2 keyhole 2 manofwar 2 masterless 2 meridian 2 misanthropic 2 navel 2 newspaper 2 obligations 2 opulent 2 oughts 2 outlast 2 outwardbound 2 overseeing 2 paramount 2 penetrating 2 performed 2 permitting 2 pumping 2 quaint 2 quilt 2 rabelais 2 reappeared 2 regulating 2 ripple 2 ruinous 2 sadder 2 sagittarius 2 saltsea 2 scandinavian 2 scratches 2 serves 2 shunned 2 snows 2 squeezed 2 stiffest 2 sympathies 2 tarpaulin 2 temperature 2 texas 2 toilings 2 tweezers 2 underneath 2 unthinkingly 2 unwarrantably 2 ushered 2 vagabond 2 whalehunters 2 woodlands 1 abstemious 1 accomplishment 1 acquiesce 1 admirer 1 adoring 1 affghanistan 1 afterhes 1 ahabshudder 1 airfreighted 1 alpine 1 amosti 1 ancestress 1 andromedaindeed 1 animosity 1 annually 1 antecedent 1 aroostook 1 arter 1 asa 1 atom 1 attarofrose 1 backof 1 ballena 1 bamboozingly 1 bamboozle 1 battled 1 bays 1 bedclothes 1 beehive 1 bellbuttons 1 bestreaked 1 billiardball 1 billiardballs 1 boatsmark 1 boatswain 1 brandingiron 1 breedeth 1 brutal 1 brutes 1 bungle 1 burlybrowed 1 cajoling 1 cambrics 1 centipede 1 channel 1 characteristically 1 chickens 1 circumambient 1 clapt 1 claw 1 claws 1 cloudscud 1 colorless 1 commentator 1 confidentially 1 congeniality 1 connexions 1 consolatory 1 constrain 1 contiguity 1 controllable 1 costermongers 1 couldin 1 counteracted 1 counterbalanced 1 counters 1 courtesymay 1 coverlid 1 creware 1 crookedness 1 crownjewels 1 czarship 1 dallied 1 deaden 1 decisionone 1 defiles 1 delightwho 1 demonism 1 departing 1 detects 1 digester 1 dines 1 disbands 1 discipline 1 dissolve 1 domineered 1 donned 1 donthe 1 doubleshuffle 1 doubling 1 doughnuts 1 dubiouslooking 1 dugongs 1 dumbest 1 dwarfed 1 earththat 1 eavetroughs 1 ego 1 ellery 1 elucidating 1 emoluments 1 englishknowing 1 engraven 1 enthusiasmbut 1 errorabounding 1 eventuated 1 exaggerate 1 exegetists 1 exploring 1 expressly 1 exultation 1 factories 1 feasting 1 featuring 1 ferdinando 1 fiercefanged 1 fissures 1 fitsthats 1 flavorish 1 froissart 1 funereally 1 furs 1 garterknights 1 ghastliness 1 glimmering 1 gloss 1 glows 1 godomnipresent 1 grease 1 greenly 1 grog 1 groupings 1 guido 1 halfbelieved 1 hangdog 1 hayseed 1 headladen 1 heraldic 1 hitching 1 hoarfrost 1 honing 1 hopefulness 1 horned 1 hussars 1 ifand 1 ignore 1 ignoring 1 ills 1 illumination 1 imitated 1 import 1 incidents 1 indianfile 1 inflated 1 instigation 1 intangible 1 intercedings 1 interflow 1 inventing 1 inventors 1 irresolution 1 ithow 1 ixion 1 jobcoming 1 jollynot 1 jugglers 1 lackaday 1 lacks 1 ladthe 1 lakeevinced 1 laureate 1 legmaker 1 lend 1 leopardsthe 1 leviathanism 1 lifeas 1 lighten 1 lighthouse 1 lordvishnoo 1 lovings 1 maintruckha 1 maltreated 1 manufacturer 1 marquee 1 meatmarket 1 miasmas 1 midnighthow 1 migrating 1 milkiness 1 misfortune 1 mixing 1 mock 1 moons 1 mossy 1 mutinying 1 mystically 1 namelessly 1 nantuckois 1 napoleons 1 naythe 1 negligence 1 neighborsthe 1 netted 1 nondescripts 1 offwe 1 oftenest 1 ohwhew 1 oilpainting 1 onsets 1 overbalance 1 overdoing 1 palpableness 1 panicstricken 1 parenthesize 1 particoloured 1 pascal 1 pauselessly 1 pave 1 peddlin 1 pedestal 1 perturbation 1 pester 1 philopater 1 plaintively 1 platos 1 poker 1 prescribed 1 princess 1 proas 1 propulsion 1 prtorians 1 queerqueer 1 quitthe 1 quivered 1 rads 1 rarities 1 readable 1 reasona 1 rechristened 1 regardless 1 reglar 1 repent 1 reverenced 1 reveriestallied 1 rightdown 1 rioting 1 rob 1 rosesome 1 rustling 1 saidtherefore 1 sawlightning 1 sayshands 1 scoot 1 scornfully 1 scuffling 1 seafowl 1 seamless 1 seasalt 1 seconds 1 sedentary 1 seducing 1 selfcollectedness 1 sheathed 1 shindy 1 shipwhich 1 shirrbut 1 shortwarpthe 1 shoutedsail 1 sideladder 1 silverso 1 singlesheaved 1 sirin 1 slanderous 1 soars 1 sodom 1 songster 1 sphynxs 1 spill 1 spoiling 1 spurzheim 1 starbuckbut 1 staterooms 1 stingy 1 stoopingly 1 sunburnt 1 superseded 1 surcoat 1 surpassingly 1 surveying 1 syren 1 tenement 1 terribleness 1 theni 1 therethe 1 thingbe 1 thingnamely 1 thingsoak 1 thinkbut 1 thisgreen 1 thisthe 1 thunderclotted 1 ticdollyrow 1 tick 1 ticking 1 tie 1 timberhead 1 tipping 1 topple 1 tracingsout 1 traditional 1 trans 1 treachery 1 treasuries 1 trivial 1 trumpblister 1 tunnels 1 unblinkingly 1 unchallenged 1 undecided 1 undefiled 1 underground 1 unequal 1 unfavourable 1 unfractioned 1 unmisgiving 1 unsay 1 unthought 1 usei 1 vanquished 1 victory 1 virgo 1 volunteered 1 wading 1 wales 1 wan 1 wary 1 waythats 1 weathersheet 1 weaverpauseone 1 wept 1 wethough 1 whalethis 1 whalewise 1 winces 1 workmen 1 worm 1 wornout 1 worseat 1 zipIntuition of How the Random Sample GrowsThe novel property of the algorithm is that it grows in a controlled way, that is related to the logarithm of the number of distinct elements. The sample is divided into two parts: A fixed-size part (sample_core) that will always be of size $k$; and a variable-size part (sample_xtra) that will grow slowly throughout the process of the algorithm. Depending on its hashed value, a new element $z$ might either be DISCARDED, REPLACE an existing element of the sample, or EXPAND the variable-size sample, see diagram below:REPRESENTATION OF THE SAMPLE DURING THE ALGORITHM | OUTCOMES FOR NEW ELEMENT z | y = hash(z) High hash values | ^ | | | | | +-------------------------+ <-- max hash of S so far | | | (no need to track this) | <-- y >= k-th hash | sample_core | | | size = k (always/fixed) | | EXPAND: | | | ADD z to sample_core +-------------------------+ <-- k-th hash of S | MOVE z_kth_hash from | | = min hash in sample_core | sample_core to sample_xtra | | | total size ++ | sample_xtra | | | size = S - k (variable) | | <-- kth_hash > y > min_hash | | | | | | REPLACE z_min_hash with z: | | | ADD z to sample_xtra +-------------------------+ <-- min hash of S | REMOVE z_min_hash from sample_xtra | = min hash in sample_xtra | | | <-- y <= min_hash | | v | DISCARD z Low hash values | |As the paper illustrates, it is also possible to design variants of the Affirmative Sampling algorithm, with a growth rate that is different than logarithmic.LicenseThis project is licensed under the MIT license, which means that you can do whatever you want with this code, as long as you preserve, in some form, the associated copyright and license notice.
affirm-pay
Affirm Python SDKAffirm Python SDK is a client library to interact withAffirm. For API reference:https://docs.affirm.com/Integrate_Affirm/Direct_API/Affirm_API_ReferenceAffirm helps customers to pay over time for things they want to buy. The customers are in control of how long you get to make monthly payments. They do the approval process in minutes. This client will help you integrate with Affirm.UsageClient Creationfrom affirm import Client client = Client(auth=(<PUBLIC_API_KEY>, <PRIVATE_API_KEY>))Performing Authorizefrom affirm import Client client = Client(auth=(<PUBLIC_API_KEY>, <PRIVATE_API_KEY>)) resp = client.charge.create(data={"checkout_token":<CHECKOUT_TOKEN_FROM_AFFIRM>, "order_id": <YOUR_GENERATED_ORDER_ID>)Performing Capturefrom affirm import Client client = Client(auth=(<PUBLIC_API_KEY>, <PRIVATE_API_KEY>)) resp = client.charge.capture(charge_id = <CHARGE_ID>, order_id=<YOUR_GENERATED_ORDER_ID>)Performing Refundfrom affirm import Client client = Client(auth=(<PUBLIC_API_KEY>, <PRIVATE_API_KEY>)) resp = client.charge.capture(charge_id = <CHARGE_ID>, order_id= <YOUR_GENERATED_ORDER_ID>)Perform Updatefrom affirm import Client client = Client(auth=(<PUBLIC_API_KEY>, <PRIVATE_API_KEY>)) resp = client.charge.update(charge_id = <CHARGE_ID>, order_id": <YOUR_GENERATED_ORDER_ID>)Perform Voidfrom affirm import Client client = Client(auth=(<PUBLIC_API_KEY>, <PRIVATE_API_KEY>)) resp = client.charge.void(charge_id=<CHARGE_ID>, order_id=<YOUR_GENERATED_ORDER_ID>)Using the client for Production(or live)The only change you need to make pass aprodkeyward while to client creation step.from affirm import Client client = Client(auth=(<PUBLIC_API_KEY>, <PRIVATE_API_KEY>), prod=True)If you have any questions please shoot a mail to anshul[dot]jmi[at]gmail[dot]com.
affix
No description available on PyPI.
affixapi
openapi-clientThe affixapi.com API documentation.IntroductionAffix API is an OAuth 2.1 application that allows developers to access customer data, without developers needing to manage or maintain integrations; or collect login credentials or API keys from users for these third party systems.OAuth 2.1Affix API follows theOAuth 2.1 spec.As an OAuth application, Affix API handles not only both the collection of sensitive user credentials or API keys, but also builds and maintains the integrations with the providers, so you don't have to.How to obtain an access tokenin order to get started, you must:register aclient_iddirect your user to the sign in flow (https://connect.affixapi.comwith the appropriate query parameters)captureauthorization_codewe will send to your redirect URI after the sign in flow is complete and exchange thatauthorization_codefor a Bearer tokenSandbox keys (developer mode)deveyJhbGciOiJFUzI1NiIsImtpZCI6Ims5RmxwSFR1YklmZWNsUU5QRVZzeFcxazFZZ0Zfbk1BWllOSGVuOFQxdGciLCJ0eXAiOiJKV1MifQ.eyJwcm92aWRlciI6InNhbmRib3giLCJzY29wZXMiOlsiLzIwMjMtMDMtMDEvZGV2ZWxvcGVyL2NvbXBhbnkiLCIvMjAyMy0wMy0wMS9kZXZlbG9wZXIvZW1wbG95ZWUiLCIvMjAyMy0wMy0wMS9kZXZlbG9wZXIvZW1wbG95ZWVzIiwiLzIwMjMtMDMtMDEvZGV2ZWxvcGVyL2lkZW50aXR5IiwiLzIwMjMtMDMtMDEvZGV2ZWxvcGVyL3BheXJ1bnMiLCIvMjAyMy0wMy0wMS9kZXZlbG9wZXIvcGF5cnVucy86cGF5cnVuX2lkIiwiLzIwMjMtMDMtMDEvZGV2ZWxvcGVyL3RpbWUtb2ZmLWJhbGFuY2VzIiwiLzIwMjMtMDMtMDEvZGV2ZWxvcGVyL3RpbWUtb2ZmLWVudHJpZXMiLCIvMjAyMy0wMy0wMS9kZXZlbG9wZXIvdGltZXNoZWV0cyJdLCJ0b2tlbiI6ImQ1OTZhMmYzLWYzNzktNGE1ZC1hMmRhLTk4OWJmYWViYTg1ZCIsImlhdCI6MTcwMjkyMDkwMywiaXNzIjoicHVibGljYXBpLWludGVybWVkaWF0ZS5kZXYuZW5naW5lZXJpbmcuYWZmaXhhcGkuY29tIiwic3ViIjoiZGV2ZWxvcGVyIiwiYXVkIjoiM0ZEQUVERjktMURDQTRGNTQtODc5NDlGNkEtNDEwMjc2NDMifQ.VLWYjCQvBS0C3ZA6_J3-U-idZj5EYI2IlDdTjAWBxSIHGufp6cqaVodKsF2BeIqcIeB3P0lW-KL9mY3xGd7ckQemployeesendpoint sample:curl --fail \\ -X GET \\ -H 'Authorization: Bearer eyJhbGciOiJFUzI1NiIsImtpZCI6Ims5RmxwSFR1YklmZWNsUU5QRVZzeFcxazFZZ0Zfbk1BWllOSGVuOFQxdGciLCJ0eXAiOiJKV1MifQ.eyJwcm92aWRlciI6InNhbmRib3giLCJzY29wZXMiOlsiLzIwMjMtMDMtMDEvZGV2ZWxvcGVyL2NvbXBhbnkiLCIvMjAyMy0wMy0wMS9kZXZlbG9wZXIvZW1wbG95ZWUiLCIvMjAyMy0wMy0wMS9kZXZlbG9wZXIvZW1wbG95ZWVzIiwiLzIwMjMtMDMtMDEvZGV2ZWxvcGVyL2lkZW50aXR5IiwiLzIwMjMtMDMtMDEvZGV2ZWxvcGVyL3BheXJ1bnMiLCIvMjAyMy0wMy0wMS9kZXZlbG9wZXIvcGF5cnVucy86cGF5cnVuX2lkIiwiLzIwMjMtMDMtMDEvZGV2ZWxvcGVyL3RpbWUtb2ZmLWJhbGFuY2VzIiwiLzIwMjMtMDMtMDEvZGV2ZWxvcGVyL3RpbWUtb2ZmLWVudHJpZXMiLCIvMjAyMy0wMy0wMS9kZXZlbG9wZXIvdGltZXNoZWV0cyJdLCJ0b2tlbiI6ImQ1OTZhMmYzLWYzNzktNGE1ZC1hMmRhLTk4OWJmYWViYTg1ZCIsImlhdCI6MTcwMjkyMDkwMywiaXNzIjoicHVibGljYXBpLWludGVybWVkaWF0ZS5kZXYuZW5naW5lZXJpbmcuYWZmaXhhcGkuY29tIiwic3ViIjoiZGV2ZWxvcGVyIiwiYXVkIjoiM0ZEQUVERjktMURDQTRGNTQtODc5NDlGNkEtNDEwMjc2NDMifQ.VLWYjCQvBS0C3ZA6_J3-U-idZj5EYI2IlDdTjAWBxSIHGufp6cqaVodKsF2BeIqcIeB3P0lW-KL9mY3xGd7ckQ' \\ 'https://dev.api.affixapi.com/2023-03-01/developer/employees'prodeyJhbGciOiJFUzI1NiIsImtpZCI6Ims5RmxwSFR1YklmZWNsUU5QRVZzeFcxazFZZ0Zfbk1BWllOSGVuOFQxdGciLCJ0eXAiOiJKV1MifQ.eyJwcm92aWRlciI6InNhbmRib3giLCJzY29wZXMiOlsiLzIwMjMtMDMtMDEvZGV2ZWxvcGVyL2NvbXBhbnkiLCIvMjAyMy0wMy0wMS9kZXZlbG9wZXIvZW1wbG95ZWUiLCIvMjAyMy0wMy0wMS9kZXZlbG9wZXIvZW1wbG95ZWVzIiwiLzIwMjMtMDMtMDEvZGV2ZWxvcGVyL2lkZW50aXR5IiwiLzIwMjMtMDMtMDEvZGV2ZWxvcGVyL3BheXJ1bnMiLCIvMjAyMy0wMy0wMS9kZXZlbG9wZXIvcGF5cnVucy86cGF5cnVuX2lkIiwiLzIwMjMtMDMtMDEvZGV2ZWxvcGVyL3RpbWUtb2ZmLWJhbGFuY2VzIiwiLzIwMjMtMDMtMDEvZGV2ZWxvcGVyL3RpbWUtb2ZmLWVudHJpZXMiLCIvMjAyMy0wMy0wMS9kZXZlbG9wZXIvdGltZXNoZWV0cyJdLCJ0b2tlbiI6IjI5YjFjYTg4LWNlNjktNDgyZC1iNGZjLTkzMWMzZmJkYWM4ZSIsImlhdCI6MTcwMjkyMTA4MywiaXNzIjoicHVibGljYXBpLWludGVybWVkaWF0ZS5wcm9kLmVuZ2luZWVyaW5nLmFmZml4YXBpLmNvbSIsInN1YiI6ImRldmVsb3BlciIsImF1ZCI6IjA4QkIwODFFLUQ5QUI0RDE0LThERjk5MjMzLTY2NjE1Q0U5In0.2zdpFAmiyYiYk6MOcbXNUwwR4M1Fextnaac340x54AidiWXCyw-u9KeavbqfYF6q8a9kcDLrxhJ8Wc_3tIzuVwemployeesendpoint sample:curl --fail \\ -X GET \\ -H 'Authorization: Bearer eyJhbGciOiJFUzI1NiIsImtpZCI6Ims5RmxwSFR1YklmZWNsUU5QRVZzeFcxazFZZ0Zfbk1BWllOSGVuOFQxdGciLCJ0eXAiOiJKV1MifQ.eyJwcm92aWRlciI6InNhbmRib3giLCJzY29wZXMiOlsiLzIwMjMtMDMtMDEvZGV2ZWxvcGVyL2NvbXBhbnkiLCIvMjAyMy0wMy0wMS9kZXZlbG9wZXIvZW1wbG95ZWUiLCIvMjAyMy0wMy0wMS9kZXZlbG9wZXIvZW1wbG95ZWVzIiwiLzIwMjMtMDMtMDEvZGV2ZWxvcGVyL2lkZW50aXR5IiwiLzIwMjMtMDMtMDEvZGV2ZWxvcGVyL3BheXJ1bnMiLCIvMjAyMy0wMy0wMS9kZXZlbG9wZXIvcGF5cnVucy86cGF5cnVuX2lkIiwiLzIwMjMtMDMtMDEvZGV2ZWxvcGVyL3RpbWUtb2ZmLWJhbGFuY2VzIiwiLzIwMjMtMDMtMDEvZGV2ZWxvcGVyL3RpbWUtb2ZmLWVudHJpZXMiLCIvMjAyMy0wMy0wMS9kZXZlbG9wZXIvdGltZXNoZWV0cyJdLCJ0b2tlbiI6IjI5YjFjYTg4LWNlNjktNDgyZC1iNGZjLTkzMWMzZmJkYWM4ZSIsImlhdCI6MTcwMjkyMTA4MywiaXNzIjoicHVibGljYXBpLWludGVybWVkaWF0ZS5wcm9kLmVuZ2luZWVyaW5nLmFmZml4YXBpLmNvbSIsInN1YiI6ImRldmVsb3BlciIsImF1ZCI6IjA4QkIwODFFLUQ5QUI0RDE0LThERjk5MjMzLTY2NjE1Q0U5In0.2zdpFAmiyYiYk6MOcbXNUwwR4M1Fextnaac340x54AidiWXCyw-u9KeavbqfYF6q8a9kcDLrxhJ8Wc_3tIzuVw' \\ 'https://api.affixapi.com/2023-03-01/developer/employees'WebhooksAn exciting feature for HR/Payroll modes are webhooks.If enabled, yourwebhook_uriis set on yourclient_idfor the respective environment:dev | prodWebhooks are configured to make live requests to the underlying integration 1x/hr, and if a difference is detected since the last request, we will send a request to yourwebhook_uriwith this shape:{ added: <api.v20230301.Employees>[ <api.v20230301.Employee>{ ..., date_of_birth: '2010-08-06', display_full_name: 'Daija Rogahn', employee_number: '57993', employment_status: 'pending', employment_type: 'other', employments: [ { currency: 'eur', effective_date: '2022-02-25', employment_type: 'other', job_title: 'Dynamic Implementation Manager', pay_frequency: 'semimonthly', pay_period: 'YEAR', pay_rate: 96000, }, ], first_name: 'Daija', ... } ], removed: [], updated: [ <api.v20230301.Employee>{ ..., date_of_birth: '2009-11-09', display_full_name: 'Lourdes Stiedemann', employee_number: '63189', employment_status: 'leave', employment_type: 'full_time', employments: [ { currency: 'gbp', effective_date: '2023-01-16', employment_type: 'full_time', job_title: 'Forward Brand Planner', pay_frequency: 'semimonthly', pay_period: 'YEAR', pay_rate: 86000, }, ], first_name: 'Lourdes', } ] }the following headers will be sent with webhook requests:x-affix-api-signature: ab8474e609db95d5df3adc39ea3add7a7544bd215c5c520a30a650ae93a2fba7 x-affix-api-origin: webhooks-employees-webhook user-agent: affixapi.comBefore trusting the payload, you should sign the payload and verify the signature matches the signature sent by theaffixapi.comservice.This secures that the data sent to yourwebhook_uriis from theaffixapi.comserver.The signature is created by combining the signing secret (yourclient_secret) with the body of the request sent using a standard HMAC-SHA256 keyed hash.The signature can be created via:create anHMACwith yourclient_secretupdate theHMACwith the payloadget the hex digest -> this is the signatureSampletypescriptcode that follows this recipe:import { createHmac } from 'crypto'; export const computeSignature = ({ str, signingSecret, }: { signingSecret: string; str: string; }): string => { const hmac = createHmac('sha256', signingSecret); hmac.update(str); const signature = hmac.digest('hex'); return signature; };Rate limitsOpen endpoints (not gated by an API key) (applied at endpoint level):15 requests every 1 minute (by IP address)25 requests every 5 minutes (by IP address)Gated endpoints (require an API key) (applied at endpoint level):40 requests every 1 minute (by IP address)40 requests every 5 minutes (byclient_id)Things to keep in mind:Open endpoints (not gated by an API key) will likely be called by your users, not you, so rate limits generally would not apply to you.As a developer, rate limits are applied at the endpoint granularity.For example, say the rate limits below are 10 requests per minute by ip. from that same ip, within 1 minute, you get:10 requests per minute on/orders,another 10 requests per minute on/items,and another 10 requests per minute on/identity,for a total of 30 requests per minute.This Python package is automatically generated by theOpenAPI Generatorproject:API version: 2023-03-01Package version: 1.0.0Build package: org.openapitools.codegen.languages.PythonClientCodegenRequirements.Python >= 3.6Installation & Usagepip installIf the python package is hosted on a repository, you can install directly using:pipinstallgit+https://github.com/GIT_USER_ID/GIT_REPO_ID.git(you may need to runpipwith root permission:sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)Then import the package:importopenapi_clientSetuptoolsInstall viaSetuptools.pythonsetup.pyinstall--user(orsudo python setup.py installto install the package for all users)Then import the package:importopenapi_clientGetting StartedPlease follow theinstallation procedureand then run the following:importtimeimportopenapi_clientfrompprintimportpprintfromopenapi_client.apiimport2023_03_01_apifromopenapi_client.model.companies20230301_responseimportCompanies20230301Responsefromopenapi_client.model.create_employee_requestimportCreateEmployeeRequestfromopenapi_client.model.employee_responseimportEmployeeResponsefromopenapi_client.model.employees20230301_responseimportEmployees20230301Responsefromopenapi_client.model.groups20230301_responseimportGroups20230301Responsefromopenapi_client.model.identity_responseimportIdentityResponsefromopenapi_client.model.inline_response400importInlineResponse400fromopenapi_client.model.inline_response401importInlineResponse401fromopenapi_client.model.message_responseimportMessageResponsefromopenapi_client.model.payruns20230301_responseimportPayruns20230301Responsefromopenapi_client.model.payslips20230301_responseimportPayslips20230301Responsefromopenapi_client.model.time_off_balances20230301_responseimportTimeOffBalances20230301Responsefromopenapi_client.model.time_off_entries20230301_responseimportTimeOffEntries20230301Responsefromopenapi_client.model.timesheets20230301_responseimportTimesheets20230301Responsefromopenapi_client.model.work_locations20230301_responseimportWorkLocations20230301Response# Defining the host is optional and defaults to https://api.affixapi.com# See configuration.py for a list of all supported configuration parameters.configuration=openapi_client.Configuration(host="https://api.affixapi.com")# The client must configure the authentication and authorization parameters# in accordance with the API server security policy.# Examples for each auth method are provided below, use the example that# satisfies your auth use case.# Configure API key authorization: access-tokenconfiguration.api_key['access-token']='YOUR_API_KEY'# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed# configuration.api_key_prefix['access-token'] = 'Bearer'# Enter a context with an instance of the API clientwithopenapi_client.ApiClient(configuration)asapi_client:# Create an instance of the API classapi_instance=2023_03_01_api.20230301Api(api_client)try:# Companyapi_response=api_instance.developer_companies20230301()pprint(api_response)exceptopenapi_client.ApiExceptionase:print("Exception when calling 20230301Api->developer_companies20230301:%s\n"%e)Documentation for API EndpointsAll URIs are relative tohttps://api.affixapi.comClassMethodHTTP requestDescription20230301Apideveloper_companies20230301GET/2023-03-01/developer/companyCompany20230301Apideveloper_create_employee20230301POST/2023-03-01/developer/employeeCreate employee20230301Apideveloper_employees20230301GET/2023-03-01/developer/employeesEmployees20230301Apideveloper_groups20230301GET/2023-03-01/developer/groupsGroups20230301Apideveloper_identity20230301GET/2023-03-01/developer/identityIdentity20230301Apideveloper_payruns20230301GET/2023-03-01/developer/payrunsPayruns20230301Apideveloper_payslips20230301GET/2023-03-01/developer/payruns/{payrun_id}Payslips20230301Apideveloper_time_off_balances20230301GET/2023-03-01/developer/time-off-balancesTime off balances20230301Apideveloper_time_off_entries20230301GET/2023-03-01/developer/time-off-entriesTime off entries20230301Apideveloper_timesheets20230301GET/2023-03-01/developer/timesheetsTimesheets20230301Apideveloper_work_locations20230301GET/2023-03-01/developer/work-locationsWork locations20230301Apiofficial_companies20230301GET/2023-03-01/official/companyCompany20230301Apiofficial_create_employee20230301POST/2023-03-01/official/employeeCreate Employee20230301Apiofficial_employees20230301GET/2023-03-01/official/employeesEmployees20230301Apiofficial_groups20230301GET/2023-03-01/official/groupsGroups20230301Apiofficial_time_off_balances20230301GET/2023-03-01/official/time-off-balancesTime off balances20230301Apiofficial_time_off_entries20230301GET/2023-03-01/official/time-off-entriesTime off entries20230301Apiofficial_timesheets20230301GET/2023-03-01/official/timesheetsTimesheets20230301Apiofficial_work_locations20230301GET/2023-03-01/official/work-locationsWork locations20230301Apiofficialdentity20230301GET/2023-03-01/official/identityIdentityCoreApiprovidersGET/providersProvidersDeveloperApideveloper_companies20230301GET/2023-03-01/developer/companyCompanyDeveloperApideveloper_create_employee20230301POST/2023-03-01/developer/employeeCreate employeeDeveloperApideveloper_employees20230301GET/2023-03-01/developer/employeesEmployeesDeveloperApideveloper_groups20230301GET/2023-03-01/developer/groupsGroupsDeveloperApideveloper_identity20230301GET/2023-03-01/developer/identityIdentityDeveloperApideveloper_payruns20230301GET/2023-03-01/developer/payrunsPayrunsDeveloperApideveloper_payslips20230301GET/2023-03-01/developer/payruns/{payrun_id}PayslipsDeveloperApideveloper_time_off_balances20230301GET/2023-03-01/developer/time-off-balancesTime off balancesDeveloperApideveloper_time_off_entries20230301GET/2023-03-01/developer/time-off-entriesTime off entriesDeveloperApideveloper_timesheets20230301GET/2023-03-01/developer/timesheetsTimesheetsDeveloperApideveloper_work_locations20230301GET/2023-03-01/developer/work-locationsWork locationsManagementApiclientGET/2023-03-01/management/clientClientManagementApidisconnectPOST/2023-03-01/management/disconnectDisconnect tokenManagementApiintrospectGET/2023-03-01/management/introspectInspect tokenManagementApitokenPOST/2023-03-01/management/tokenCreate tokenManagementApitokensGET/2023-03-01/management/tokensTokensManagementApiupdate_clientPOST/2023-03-01/management/clientUpdate clientOfficialApiofficial_companies20230301GET/2023-03-01/official/companyCompanyOfficialApiofficial_create_employee20230301POST/2023-03-01/official/employeeCreate EmployeeOfficialApiofficial_employees20230301GET/2023-03-01/official/employeesEmployeesOfficialApiofficial_groups20230301GET/2023-03-01/official/groupsGroupsOfficialApiofficial_time_off_balances20230301GET/2023-03-01/official/time-off-balancesTime off balancesOfficialApiofficial_time_off_entries20230301GET/2023-03-01/official/time-off-entriesTime off entriesOfficialApiofficial_timesheets20230301GET/2023-03-01/official/timesheetsTimesheetsOfficialApiofficial_work_locations20230301GET/2023-03-01/official/work-locationsWork locationsOfficialApiofficialdentity20230301GET/2023-03-01/official/identityIdentityDocumentation For ModelsAddressNoNonNullRequestAddressResponseClientRequestClientResponseCompanies20230301ResponseCompanyResponseCreateEmployeeRequestCreateEmployeeRequestBankAccountCreateEmployeeRequestManagerCurrencyRequestCurrencyResponseDisconnectResponseEmployeeResponseEmployees20230301ResponseEmploymentNoNullEnumRequestEmploymentResponseGroupNoNullEnumRequestGroupResponseGroups20230301ResponseGroupsNoNullEnumRequestIdAndMessageResponseIdentityResponseInlineResponse400InlineResponse401InlineResponse409IntrospectResponseLocationNoNonNullRequestLocationResponseMessageResponseModeRequestModeResponsePayrunResponsePayruns20230301ResponsePayslipResponsePayslipResponseContributionsPayslipResponseDeductionsPayslipResponseEarningsPayslipResponseTaxesPayslips20230301ResponseProviderRequestProviderResponseProvidersResponseScopesRequestScopesResponseTimeOffBalanceResponseTimeOffBalances20230301ResponseTimeOffEntries20230301ResponseTimeOffEntryResponseTimesheetResponseTimesheets20230301ResponseTokenRequestTokenResponseTokensResponseWorkLocations20230301ResponseDocumentation For Authorizationaccess-tokenType: API keyAPI key parameter name: AuthorizationLocation: HTTP headerbasicType: API keyAPI key parameter name: AuthorizationLocation: HTTP [email protected] for Large OpenAPI documentsIf the OpenAPI document is large, imports in openapi_client.apis and openapi_client.models may fail with a RecursionError indicating the maximum recursion limit has been exceeded. In that case, there are a couple of solutions:Solution 1: Use specific imports for apis and models like:from openapi_client.api.default_api import DefaultApifrom openapi_client.model.pet import PetSolution 2: Before importing the package, adjust the maximum recursion limit as shown below:import sys sys.setrecursionlimit(1500) import openapi_client from openapi_client.apis import * from openapi_client.models import *
affliction
afflictionwelcome to affliction. provides synchronous clients, based on deceit, for interacting with the microsoft graph api and the exchange management rest api. please be mindful that the exchange rest api is (still, as of 2023 after more than three years) in beta, and these apis are not currently published.this means that the exchange rest api will likely change between the time that this library is published and the time the exchange management rest api is officially released.powered by angry penguins.graph clientto use the graph client, you use theaffliction.graph_client.SynchronousGraphClientclass. there are a few pre-defined endpoints for now forusersandsubscribedSkus.fromaffliction.graph_clientimportSynchronousGraphClientclient=SynchronousGraphClient(tenant_id='01234567-000...',client_id='01234567-000...',client_secret='secret generated from azure app registration',)users=client.get_users(params={'$search':'"displayName:alice"',})documentation for theusers endpointis available from micrososft. other documents provide a more fulsome description of theavailable odata parametersexchange clientto use the exchange client, instantiateaffliction.exchange_client.ExchangeClientuse the mailboxes endpoint with$filteror$searchodata semantics just like you would with the graph api.fromaffliction.exchange_clientimportExchangeClientclient=ExchangeClient(tenant_id='01234567-00...',client_id='01234567-00...',client_secret='app secret from azure app registration with Exchange.ManageAsApp permissions')mailboxes=client.mailboxes(params={'$search':'"displayName:catsareawesome"',})recipients=client.recipients(params={'$filter':'LitigationHoldEnabled eq True',})hat tip to Vasil Michev who got us started down this path:https://www.michev.info/blog/post/2869/abusing-the-rest-api-endpoints-behind-the-new-exo-cmdletsto see how to add the requiredManageAsApppermission, please feel free to reference this link:https://4sysops.com/archives/connect-to-exchange-online-with-powershell-and-certificate-based-authentication/
affnine-client
affnine_clientA TCP stack python library. for IOT and Chat BotYou can Contribute HEREit's freeReally
affnine-deltaleaf
Affnine deltaleafEasy way to create MAP (Undirected Graph)and find shortest path from one Node to another.InstallationUse the package managerpipto install foobar.pipinstallaffnine-deltaleafQuick startimportaffnine_deltaleafnewMap=afn_spf.deltaLeaf()#create a object of affnine deltaleafnewMap.editNameOfTheMap("Miramar")#assign a name to the mapnewMap.updateDistance("A","B",1.1)# Distance from one node to anothernewMap.updateDistance("A","D",2)newMap.updateDistance("A","E",4)newMap.updateDistance("B","E",2)newMap.updateDistance("C","E",1)newMap.updateDistance("C","D",5)newMap.updateDistance("D","F",3)newMap.updateDistance("E","F",3.4)newMap.updateDistance("F","A",3)newMap.updateDistance("G","B",3)newMap.updateDistance("H","A",3)newMap.updateDistance("I","C",3)newMap.updateDistance("J","B",3)newMap.updateDistance("K","E",3)print(newMap.finder('A','E')).# Find shortest distance and# path between two nodesOutput:ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.LicenseMIT