Saravanan666/pypi-org huggingface dataset:
Package: ape-linea
Quick StartEcosystem Plugin for linea support in Ape.Dependenciespython3version 3.8 or greater, python3-devInstallationviasetuptoolsNote: will not work (check TODO section)You can clone the repository and usesetuptoolsfor the most up-to-date version:gitclonehttps://github.com/ApeWorX/ape-linea.gitcdape-linea
python3setup.pyinstallConfigurationYou need to configure a node provider for Linea in yourape-config.yaml.
Seeape-config.yaml.exampleQuick UsageInstalling this plugin adds support for the Linea ecosystem:apeconsole--networklinea:goerli
apeconsole--networklinea:mainnetDevelopmentThis project is in development and should be considered a beta.
Things might not be in their final state and breaking changes may occur.
Comments, questions, criticisms and pull requests are welcomed.Work in progress[ ] Publish the repo on ApeWorX github[ ] Publish the package on pypiviaapeNote: will not work (check TODO section)You can install this plugin usingape:apepluginsinstalllineaor via config file:# ape-config.yamlplugins:-name:lineaviapipNote: will not work (check TODO section)You can install the latest release viapip:pipinstallape-linea
Package: ape-llamanodes
Quick StartUse theLlamaNodesprovider plugin to interact with blockchains via APIs.
This plugin supports the following ecosystems:Ethereum (mainnet and goerli)Base (currently in alpha testing)PolygonBNB Smart ChainArbitrumOptimismDependenciespython3version 3.8 up to 3.11.InstallationviapipYou can install the latest release viapip:pipinstallape-llamanodesviasetuptoolsYou can clone the repository and usesetuptoolsfor the most up-to-date version:gitclonehttps://github.com/ApeWorX/ape-llamanodes.gitcdape-llamanodes
python3setup.pyinstallQuick UsageFirst, make sure you have one of the following environment variables set (it doesn't matter which one):WEB3_LLAMANODES_API_KEYWEB3_LLAMANODES_PROJECT_IDWEB3_LLAMARPC_API_KEYWEB3_LLAMARPC_PROJECT_IDEither in your current terminal session or in your root RC file (e.g..bashrc), add the following:exportWEB3_LLAMANODES_API_KEY=MY_API_TOKENThe provider will work without the environment variables, but it uses the free tier which has stricter limits.To use the LlamaNodes provider plugin in most commands, set it via the--networkoption:apeconsole--networkethereum:mainnet:llamanodesTo connect to LlamaNodes from a Python script, use thenetworkstop-level manager:fromapeimportnetworkswithnetworks.parse_network_choice("ethereum:mainnet:llamanodes")asprovider:...
Package: apeman-model-client
This library enables you to report the status of tasks in your model at runtimepublish:python-mbuild
twineupload--repository-urlhttps://test.pypi.org/legacy/dist/*install:pip install apeman-model-client==0.1.8How to useexportapeman_meta_server_addr='localhost:9090'fromapeman.model.openapiimportapeman_open_api_clientfromapeman.model.openapi.model_instance_task_statusimportTaskStatusfromapeman.model.openapi.model_instance_task_launch_typeimportTaskLaunchTypefromapeman.model.openapi.model_instance_task_typeimportTaskTypeendpoint=apeman_open_api_client.get_endpoint(model_instance_id='')# cancel taskapeman_open_api_client.cancel_task(task_id='',force_delete=True,token='')# report statusresponse=apeman_open_api_client.report_and_get_status(task_id='',status=TaskStatus.RUNNING,progress=0.1,message='Task is running',token='')ifresponse.status==TaskStatus.CANCELED:raiseException('Task has been cancelled.')# add instance taskapeman_open_api_client.add_model_instance_task(model_instance_id='',tenant_id='',task_token='',task_parameters='',job_context='',start_time=1,end_time=2,launch_type=TaskLaunchType.TASK_ADHOC,task_type=TaskType.TASK_TRAIN)# get instance tasktask=apeman_open_api_client.get_instance_task(model_instance_task_id='test',token='token')print(task.taskProgress)print(task.taskMessage)print(task.taskStatus)# add instance taskapeman_open_api_client.add_model_instance_task(model_instance_id='',tenant_id='',task_token='',task_parameters='',job_context='',start_time=1,end_time=2,launch_type=TaskLaunchType.TASK_ADHOC,task_type=TaskType.TASK_TRAIN)task_id_list=['1','2','3']task_list_response=apeman_open_api_client.batch_get_model_instance_task(task_id_list=task_id_list)print(task_list_response.model_instance_task_list)
Package: ape-notebook
Ape NotebookInstantiate a Jupyter Notebook with Ape!Dependenciespython3version 3.8 up to 3.11.InstallationviapipYou can install the latest release viapip:pipinstallape-notebookviasetuptoolsYou can clone the repository and usesetuptoolsfor the most up-to-date version:gitclonehttps://github.com/ApeWorX/ape-notebook.gitcdape-notebook
python3setup.pyinstallQuick UsageRuns a notebook server:apenotebooknotebook >=7has an outstanding issue at launch that can beresolvedby running in your environmentjupyterlabbuildDevelopmentThis project is in development and should be considered a beta.
Things might not be in their final state and breaking changes may occur.
Comments, questions, criticisms and pull requests are welcomed.LicenseThis project is licensed under theApache 2.0.
Package: ape-openzeppelin
Quick StartEasily use OpenZeppelin dependencies in your Ape projects.Dependenciespython3version 3.8 up to 3.11.InstallationviapipYou can install the latest release viapip:pipinstallape-openzeppelinviasetuptoolsYou can clone the repository and usesetuptoolsfor the most up-to-date version:gitclonehttps://github.com/antaozoey/ape-openzeppelin.gitcdape-openzeppelin
python3setup.pyinstallQuick UsageEasily use OpenZeppelin in your Ape project by including a dependency like this:dependencies:-openzeppelin:4.6.0You can also change the name of the dependency if needbe.
You would need to do this if using multiple versions in the same project:dependencies:-openzeppelin:3.6.0name:openzeppelin_360-openzeppelin:4.6.0name:openzeppelin_460DevelopmentThis project is in development and should be considered a beta.
Things might not be in their final state and breaking changes may occur.
Comments, questions, criticisms and pull requests are welcomed.
Package: ape-optimism
Quick StartEcosystem Plugin for Optimism support in Ape.Dependenciespython3version 3.8 up to 3.11.InstallationviaapeYou can install this plugin usingape:apepluginsinstalloptimismor via config file:# ape-config.yamlplugins:-name:optimismviapipYou can install the latest release viapip:pipinstallape-optimismviasetuptoolsYou can clone the repository and usesetuptoolsfor the most up-to-date version:gitclonehttps://github.com/ApeWorX/ape-optimism.gitcdape-optimism
python3setup.pyinstallQuick UsageInstalling this plugin adds support for the Optimism ecosystem:apeconsole--networkoptimism:goerliDevelopmentComments, questions, criticisms and pull requests are welcomed.
Package: ape-pie
1Ape-pie clientMonkey see, monkey GET.Ape-pie is a small API client abstraction layer on top ofrequests.Contents1Ape-pie client2Features3Installation and usage2FeaturesNo leaky abstraction - use the familiarrequestsPython interfaces.Modular configuration adapters for your project’s domain(s).Highly customizable for your needs.3Installation and usageQuickstart and API reference documentation are hosted onReadTheDocs.
Package: ape-pokt
Ape Pokt PluginPokt Provider plugin for Ethereum-based networks.Dependenciespython3version 3.7 or greater, python3-devInstallationviapipYou can install the latest release viapip:pipinstallape-poktviasetuptoolsYou can clone the repository and usesetuptoolsfor the most up-to-date version:gitclonehttps://github.com/ApeWorX/ape-pokt.gitcdape-pokt
python3setup.pyinstallQuick UsageFirst, make sure you have one of the following environment variables set (it doesn't matter which one):WEB3_POKT_PROJECT_IDWEB3_POKT_API_KEYEither in your current terminal session or in your root RC file (e.g..bashrc), add the following:export WEB3_POKT_PROJECT_ID=MY_API_TOKENTo use the Pokt provider plugin in most commands, set it via the--networkoption:ape console --network ethereum:goerli:poktDevelopmentThis project is in development and should be considered a beta.
Things might not be in their final state and breaking changes may occur.
Comments, questions, criticisms and pull requests are welcomed.LicenseThis project is licensed under theApache 2.0.
Package: ape-polygon
Quick StartEcosystem Plugin for Polygon support in Ape.Dependenciespython3version 3.8 up to 3.11.InstallationviaapeYou can install this plugin usingape:apepluginsinstallpolygonor via config file:# ape-config.yamlplugins:-name:polygonviapipYou can install the latest release viapip:pipinstallape-polygonviasetuptoolsYou can clone the repository and usesetuptoolsfor the most up-to-date version:gitclonehttps://github.com/ApeWorX/ape-polygon.gitcdape-polygon
python3setup.pyinstallQuick UsageInstalling this plugin adds support for the Polygon ecosystem:apeconsole--networkpolygon:mainnetDevelopmentComments, questions, criticisms and pull requests are welcomed.
Package: ape-polygon-zkevm
Quick StartEcosystem Plugin for Polygon ZkEVM support in Ape.Dependenciespython3version 3.8 up to 3.11.InstallationviapipYou can install the latest release viapip:pipinstallape-polygon-zkevmviasetuptoolsYou can clone the repository and usesetuptoolsfor the most up-to-date version:gitclonehttps://github.com/ApeWorX/ape-polygon-zkevm.gitcdape-polygon-zkevm
python3setup.pyinstallQuick UsageInstalling this plugin adds support for the Polygon ZkEVM ecosystem:ape console --network polygon-zkevm:goerliDevelopmentThis project is in development and should be considered a beta.
Things might not be in their final state and breaking changes may occur.
Comments, questions, criticisms and pull requests are welcomed.
Package: aperc-osemosys
aperc-osemosysThe APERC Toolkit for Energy Analysis and Modeling.Dependenciesaperc-osemosysrequires a number of dependencies. To install, copy and paste the following in your command line:conda create --prefix ./env python=3.7 pandas numpy xlrd glpkContributingTo contribute directly to the code development, you first need to install the package indevelop mode:git clone http://github.com/OSeMOSYS/aperc-osemosys
cd aperc-osemosys
git checkout <branch you wish to use>
python setup.py developNoteThis project makes use of the OSeMOSYS model, which can be obtainedhere.This project has been set up using PyScaffold 3.2.3. For details and usage
information on PyScaffold seehttps://pyscaffold.org/.
Package: ape-risk
Quick StartTools for analyzing risk in DeFi.Dependenciespython3version 3.8 or greater, python3-devInstallationviapipYou can install the latest release viapip:pipinstallape-riskviasetuptoolsYou can clone the repository and usesetuptoolsfor the most up-to-date version:gitclonehttps://github.com/ApeWorX/ape-risk.gitcdape-risk
python3setup.pyinstallQuick UsageProvideshypothesisstrategies to use in fuzz tests.e.g. Mock prices generated byGeometric Brownian motion:importnumpyasnpfromape_riskimportstrategies@given(strategies.gbms(initial_value=1.0,num_points=100000,params=[0,0.005]))deftest_gbms_param_fuzz(p):# strat gives a numpy.ndarray of simulated prices for each hypothesis runassertp.shape==(100000,1)assertisinstance(p,np.ndarray)C=np.asarray([[1,0.5,0.8],[0.5,1,0.4],[0.8,0.4,1]])scale=np.linalg.cholesky(C).tolist()@given(strategies.multi_gbms(initial_values=[1.0,0.9,0.8],num_points=100000,num_rvs=3,params=[0,0.005],scale=scale,shift=[0,0,0]))deftest_multi_gbms_param_fuzz(p):# strat gives a numpy.ndarray of multiple simulated prices for each hypothesis runassertp.shape==(100000,1,3)assertisinstance(p,np.ndarray)DevelopmentThis project is in development and should be considered an alpha.
Things might not be in their final state and breaking changes may occur.
Comments, questions, criticisms and pull requests are welcomed.
Package: apertium
Apertium + PythonIntroductionThe codebase is in development for the GSoC '19 project calledApertium API in PythonThe Apertium core modules are written in C++.This project makes the Apertium modules available in Python, which because of its simplicity is more appealing to users.About the Exisiting Code BaseThe existing codebase hasSubprocessandSWIGwrapper implementations of the higher level functions of Apertium and CG modules.InstallationInstallation on Debian/Ubuntu and Windows is natively supported:pip install apertiumFor developers,pipenvcan be used to install the development dependencies and enter a shell with them:pip install pipenv
pipenv install --dev
pipenv shellApertium packages can be installed from Python interpreter as well.Installapertium-all-devby callingapertium.installer.install_apertium()Install language packages withapertium.installer.install_module(language_name). For exampleapertium-engcan be installed by executingapertium.installer.install_module('eng')UsageFor multiple invocationsMethod 1is more performant, as the dictionary needs to be loaded only once.AnalysisPerforming Morphological AnalysisMethod 1: Create anAnalyzerobject and call itsanalyzemethod.In[1]:importapertiumIn[2]:a=apertium.Analyzer('en')In[3]:a.analyze('cats')Out[3]:[cats/cat<n><pl>,./.<sent>]Method 2: Callinganalyze()directly.In[1]:importapertiumIn[2]:apertium.analyze('en','cats')Out[2]:cats/cat<n><pl>GenerationPerforming Morphological GenerationMethod 1:  Create aGeneratorobject and call itsgeneratemethod.In[1]:importapertiumIn[2]:g=apertium.Generator('en')In[3]:g.generate('^cat<n><pl>$')Out[3]:'cats'Method 2: Callinggenerate()directly.In[1]:importapertiumIn[2]:apertium.generate('en','^cat<n><pl>$')Out[2]:'cats'TaggerMethod 1:  Create aTaggerobject and call itstagmethod.In[1]:importapertiumIn[2]:tagger=apertium.Tagger('eng')In[3]:tagger.tag('cats')Out[3]:[cats/cat<n><pl>]Method 2: Callingtag()directly.In[1]:importapertiumIn[2]:apertium.tag('en','cats')Out[2]:[cats/cat<n><pl>]TranslationMethod 1:  Create aTranslatorobject and call itstranslatemethod.In[1]:importapertiumIn[2]:t=apertium.Translator('eng','spa')In[3]:t.translate('cats')Out[3]:'Gatos'Method 2: Callingtranslate()directly.In[1]:importapertiumIn[2]:apertium.translate('en','spa','cats')Out[2]:'Gatos'Installing more modes from other language dataOne can also install modes by providing the path to thelang-data:In[1]:importapertiumIn[2]:apertium.append_pair_path('..')
Package: apertium2ud
apertium2udObtaining the mapping between the two tagsets based
on theinformation from Apertium Wiki.Loosely based onthis code,
hence the GPLv3 license.To install, runpython-mpipinstallapertium2udThe latest uploaded version is 0.0.4.NB! The latest version from PyPI (yes, you can install the tool via pip) is equipped with theapertium-kir.udxfile rules.To build the machine-readable mapping, runpythonapertium_wiki_parser.pyApertium to Universal tags>>> from apertium2ud.convert import a2ud
>>> tags = ["n", "pl", "acc"]
>>> a2ud(tags)
(['NOUN'], ['Number=Plur', 'Case=Acc'])
>>> tags_sophisticated = ["v", "tv", "ger", "nom", "cop", "aor", "p3", "pl"]
>>> a2ud(tags_sophisticated)
(['VERB', 'AUX'], ['Subcat=Tran', 'VerbForm=Vnoun', 'Case=Nom', 'Tense=Past', 'Person=3', 'Number=Plur'])Universal tags to ApertiumSo far the conversion is far from perfectКыз NOUN {'Number[psor]=Sing', 'Number=Sing', 'Case=Nom', 'Person[psor]=3', 'Person=3'} ->
<px3sg><n><subj?nom?><sg><p3><px3sp> 

досуна NOUN {'Number[psor]=Sing', 'Number=Sing', 'Person[psor]=3', 'Case=Dat', 'Person=3'} ->
<px3sg><n><sg><dat><p3><px3sp> 

кат NOUN {'Case=Nom', 'Person=3', 'Number=Sing'} ->
<n><subj?nom?><sg><p3> 

жазган VERB {'Aspect=Perf', 'Polarity=Pos', 'Number=Sing', 'Tense=Past', 'Person=3', 'Evident=Fh'} ->
<past3p><vblex?v?vbmod?><sg><aff><aor?past?pret?><perf><p3> 

. PUNCT set() ->
<sent?apos?percent?clb?punct?>TODOShould sectionschunksandXML tagsbe added?No.Tests: Apertium -> UD -> Apertium, UD -> Apertium -> UD (sometimes losses are inevitable)Add the possibility to add the rules based on a.udxfile, which usually describes custom tagsHow to citeGreatly appreciated, if you use this work.@misc{apertium2ud2023alekseev,
  title     = {{alexeyev/apertium2ud: mapping tagsets}},
  year      = {2023},
  url       = {https://github.com/alexeyev/apertium2ud}
}
Package: apertium-lint
apertium-lintlinter for Apertium source filesThis package provides the command-line toolapertium-lintwhich statically analyzes Apertium source files for potential issues.The linter can be run on a single file, giving output like$ apertium-lint modes.xml
modes.xml
Error (install-deps) on line 8: Debug modes using files in .deps/ should not be installed.
Error (install-deps) on line 25: Debug modes using files in .deps/ should not be installed.
Error (install-deps) on line 91: Debug modes using files in .deps/ should not be installed.
Errors: 3 Warnings: 0 Suggestions: 0 Nitpicks: 0or it can be run without arguments, which will apply it to the entire current directory$ apertium-lint
./modes.xml
Error (install-deps) on line 8: Debug modes using files in .deps/ should not be installed.
Error (install-deps) on line 25: Debug modes using files in .deps/ should not be installed.
Error (install-deps) on line 91: Debug modes using files in .deps/ should not be installed.
./paper/paper.tex
Warning (unnorm) on line 113: Line contains non-normalized characters.
Errors: 3 Warnings: 1 Suggestions: 0 Nitpicks: 0With option-s, statistics about the files will also be gathered.$ apertium-lint -s apertium-kir.kir.twol
apertium-kir.kir.twol
Input alphabet symbols:	169
Output alphabet symbols:	139
Rules:	61
Sets:	35
Alphabet symbol pairs:	169
Errors: 0 Warnings: 0 Suggestions: 0 Nitpicks: 0
Package: apertools
Apertools: tools for InSAR (Interferometric Synthetic Aperture Radar)Other helping tools:sentineleoffor downloading Sentinel 1 EOF precise orbit files.Setup and installationpipinstallapertoolssario.pyInput/Output functions for SAR data.
Contains methods to load Sentinel, UAVSAR and DEM filesMain function:importapertools.sariomy_slc=apertools.sario.load('/file/path/radar.slc')geocoded_slc=apertools.sario.load('/file/path/myslc.geo')my_int=apertools.sario.load('/file/path/interferogram.int')unwrapped_int=apertools.sario.load('/file/path/igram.unw')my_dem=apertools.sario.load('/file/path/elevation.dem')my_hgt=apertools.sario.load('/file/path/N20W100.hgt')latlon.pyContains LatlonImage class, which loads metadata about an image and acts as a smart numpy array.
Includes functionality for slicing/selecting pixels by latitude/longitude, among other things.Also contains helper functions for maniuplating lat/lon data.plotting.pyUseful plotting functions, including center-shifted colormap (to make 0 values a neutral color), and 3D stack viewing functionlos.pyLine of sight utilitiesgps.pySeveral functions for using GPS data in conjunction with InSAR stacksparsers.pyClasses to deal with extracting relevant data from SAR filenames.
Example:fromapertools.parsersimportSentinelparser=Sentinel('S1A_IW_SLC__1SDV_20180408T043025_20180408T043053_021371_024C9B_1B70.zip')parser.start_timedatetime.datetime(2018,4,8,4,30,25)parser.mission'S1A'parser.polarization'DV'parser.full_parse('S1A','IW','SLC','_','1','S','DV','20180408T043025','20180408T043053','021371','024C9B','1B70')parser.field_meanings('Mission','Beam','Product type','Resolution class','Product level','Product class','Polarization','Start datetime','Stop datetime','Orbit number','data-take identified','product unique id')UAVSAR parser also exists.log.pyModule to make logging pretty with times and module names.If you alsopip install colorlog, it will become colored (didn't require this in case people like non-color logs.)fromapertools.logimportget_loglogger=get_log()logger.info("Better than printing")[05/29 16:28:19] [INFO log.py] Better than printing
Package: aperture-cli
Copyright (c) 2018 Alex Robbins, Darrien Kennedy, James SalvatorePermission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in allcopies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, 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 THESOFTWARE.Description: # Aperture#### An image formatting and compression tool.### Environment SetupWe'll be using `pipenv` to manage our virtual environment, and dev dependencies for the project.1. Install pipenv: `pip install pipenv`.2. `cd` into `aperture` and initialize the virtual environment: `pipenv install`.3. Enable the virtual environment: `pipenv shell`.4. You're good to go! Refer to the `pipenv` docs for installing dependencies and much more: https://docs.pipenv.org/### Building aperture locally1. Install aperture as a python library and a source distribution in your virtual environment: `make install`.2. Remove left over build artifacts: `make clean`.### TODO:1. Register aperture to the PyPi index (aperture already taken, so `aperturepy` will probably suffice).2. Define a styling format for yapf that we all agree on.3. Define a documentation format that we all agree on (this is a good place to start: https://google.github.io/styleguide/pyguide.html).4. Figure out how to properly use docopt.5. Once we're past the goals for Week 2 (basic CLI functionality), we need to move the code for the CLI to a separate repository, where this `aperture` repo will only contain the stand-alone python library.Platform: UNKNOWN
Package: aperturecore
Here at the Aperture Science Laboratory, Weare working on a public build for makingyour own cores!Filetype refrence:
CTV: Core Text Viewer (plaintext)
CTP: Core Text Player (variables, GEN)
CSP: Core Sound Player (uses CTP variables)note: this is not official, this was made by
a very small, and dumb neko that likes
to do stuff in the worst way possible.
But this should work!
Package: aperturedb
ApertureDB Client Python ModuleThis is the python sdk for building applications withApertureDB.This comprises of utilities to get Data in and out of ApertureDB in an optimal manner.
A quickgetting started guideis useful to start building with this sdk.
For more concrete examples, please refer to:Simple examples and conceptsAdvanced usage examplesInstalling in a custom virtual enviroment.pipinstallaperturedb[complete]or an installation with only the core part of the SDKpipinstallaperturedbA completereferenceof this SDK is available on the officalApertureDB DocumentationDvelopment setup.The recommended way is to clone this repo, and do an editable install as follows:gitclonehttps://github.com/aperture-data/aperturedb-python.gitcdaperturedb-python
pipinstall-e.[dev]Running tests.The tests are inside the test dir.All the tests can be run with:bashrun_test.shRunning specefic tests can be accomplished by invoking it with pytest as follows:cdtest&&dockercomposeup-d&&PROJECT=aperturedataKAGGLE_username=ciKAGGLE_key=dummycoveragerun-mpython-mpytesttest_Session.py-v--log-cli-level=DEBUGReporting bugs.Any error in the functionality / documentation / tests maybe reported by creating agithub issue.Development guidelines.For inclusion of any features, a PR may be created with a patch,
and a brief description of the problem and the fix.
The CI enforces a coding style guideline with autopep8 and
a script to detect trailing white spaces.In case a PR encounters failures, the log would describe the location of
the offending line with a description of the problem.