Saravanan666/pypi-org huggingface dataset:
Package: openapy
Openapysimplifies continuous development withOpenAPI generator.
What this tool does is reading python source files and copying functions into individual files.
This will prevent the openapi generator from overwriting the code you have written.Documentation:https://openapy.readthedocs.ioDockerhub:https://hub.docker.com/r/edgem/openapySource Code:https://github.com/edge-minato/openapyQuick startdockerrun--rm-v"$PWD:/src"edgem/openapy\openapygenerate--src/src/openapi-server/apispipinstallopenapy
openapygenerate--src./openapi-server/apisWhat openapy doesOpenapyjust splits each of the functions into a single file underprocessordirectory.# processor directory and the files will be generated.├──api│└──source.py#└── processor#    ├── __init__.py#    ├── function_a.py#    └── function_b.py# api/source.pydeffunction_a(name:str,age:int)->None:...deffunction_b(height:int,weight:int)->int:...This command generates following filesopenapygenerate--src./api# processor/__init__.pyfrom.function_aimportfunction_a# noqa: F401from.function_bimportfunction_b# noqa: F401# processor/function_a.pydeffunction_a(name:str,age:int)->None:...# processor/function_b.pydeffunction_b(height:int,weight:int)->int:...Working withOpenAPI generatorThe expected usage is using the file generated withOpenAPI Generatoras interfaces, and using the file generated withOpenapyas the implementation.# apis/pet_api.pyimport.processorfromfastapiimportAPIRouterrouter=APIRouter()@router.get("/pet/{petId}")asyncdefget_pet_by_id(petId:int=Path(None,description="ID of pet to return"))->Pet:returnprocessor.get_pet_by_id(petId)# processor/get_pet_by_id.pydefget_pet_by_id(petId:int)->Pet:"""Returns a single pet"""# implement me...In this use case,api.mustachefile should be customized. It is possible to generate an example of mustache file with following command.openapyexamplemustache>./mustache/api.mustacheNOTE: Without this structure, which means writing the implementation of apis on the files generated byOpenAPI generator, a regeneration ofOpenAPI generatorwill overwrite any existing code you have written, even if only one api has been updated. This is because theOpenAPI generatoraggregates apis into a file with atag.FeaturesCustom TemplateIt is possible to define the format of generated code withOpenapyjust like the mustache forOpenAPI generator. For more details, see thedocumentation.Difference DetectionTBDMove to docsFollowing variables with{}brackets are available.IMPORTS: All of imports of the source file likeimport X,from X import YASSIGNS: All assigns of the source file likevar = "string"DEF:async defordefof the functionNAME: The function nameARGS: Arguments of the function with type annotationsRETURN_TYPE: A type annotation for the return of the functionCOMMENT: A comment inside of the functionBODY: A body of the function, like assign statementRETURN: A return statement of the function
Package: openaq
openaq-pythonThe official Python wrapper for the OpenAQ API.:warning: OpenAQ python is still under active development and may be unstable until a v1.0.0 releaseOpenAQ Python is a low-level API wrapper for the OpenAQ Version 3 API.Table of ContentsInstallationDocumentationLicenseInstallationOpenAQ python is availble on pip.pip install openaqDocumentationDocumentation available atpython.openaq.orgLicenseopenaqis distributed under the terms of theMITlicense.DevelopmentCode is styled according toblack, imports are sorted usingisortand code is linted usingruff.Codebase can be automatcally formatted and linted by running:hatch run style:fmtstyle can be checked with:hatch run style:checkTesting usespytest.hatch run test:testCode coverage can be viewed with:hatch run test:covAcknowledgementsFor many yearspy-openaqby David Hagan filled the gap for a Python API wrapper for the OpenAQ API. Thank you to David for many years of maintaining py-openaq and for taking the original step to develop a wrapper for OpenAQ.
Package: openassetio
In modern creative pipelines, data is often managed by an authoritative system (Asset Management System, Digital Asset Manager, MAM, et. al).It is common for media creation tools to reference this managed data by its present location in a file system.OpenAssetIO enables tools to reference managed data by identity (using an "Entity Reference") instead of a file system path.This is achieved through the definition of a common set of interactions between a host of the API (eg: a Digital Content Creation tool or pipeline script) and an Asset Management System.This common API surface area removes the need for common pipeline business logic to be re-implemented against the native API of each tool, and allows the tools themselves to design new workflows that streamline the creation of complex assets.
Package: openassetio-manager-bal
The Basic Asset Library (BAL) example managerThe BasicAssetLibrary provides a basic "librarian" asset management
system.It serves to provide a minimum level of functionality to allow simple,
repeatable demonstrations and end-to-end tests to be realized with as
little supporting infrastructure as possible.It is not intended to be any kind of comprehensive example of the
breadth of functionality exposed though the OpenAssetIO API.
See the SampleAssetManager for a more concrete example of canonical
manager behavior.Note: This code is a sketch to facilitate testing and sample
workflows. It should never be considered in any way a "good example
of how to write an asset management system". Consequently, it omits
a plethora of "good engineering practice".FeaturesResolves references with thebal:///prefix to data from a
pre-configured library of assets stored in a.jsonfile.Environment variables are expanded in string-type trait property
values (using the$varor${var}syntax, escape$using$$). A
library can also define arbitrary variables of its own under the
top-levelvariableskey. In addition, BAL provides the built-in$bal_library_pathand$bal_library_dirvariables, which can be
used to anchor to the current library location.The library file to be used is controlled by thelibrary_pathsetting, and this should point to a library file with valid content.If nolibrary_pathhas been specified, theBAL_LIBRARY_PATHenv
var will be checked to see if it points to a valid library file.Persists newly registered data in-memory (the original library JSON is
not updated).Simulate network delay with thesimulated_query_latency_mssetting.NotePythonstime.sleepis the mechanism by which the delay is triggered.
Simulated query latency defaults to 10ms.The entity reference URL scheme consumed by BAL can be adjusted from the
default ofbalusing theentity_reference_url_schemesetting.
This must be set to a simple alphanumeric string.Specific versions of BAL entities are accessed using thev=Xquery
parameter, whereXis an integer version number starting at1or
the stringlatest. BAL also supports OpenAssetIO-MediaCreation*EntityVersionsRelationshiprelationshipqueries, including filtering bystableTag.InstallationTo use the plugin in an OpenAssetIO host, install viapip, or set (or append) theOPENASSETIO_PLUGIN_PATHenv var to include theplugindirectory in
a checkout of thesource repository.The plugin provides a manager with the identifierorg.openassetio.examples.manager.bal.python-mpipinstallopenassetio-manager-balLibrary file formatAJSON Schemais providedherethat validates a BAL library file.TestingThe test fixtures take care of providing a suitable host environment and
configuring the OpenAssetIO plugin search paths for you. Assuming your
working directory is set to a checkout of thesource repository:python-mvenv.venv
..venv/bin/activate
python-mpipinstall-rtests/requirements.txt
python-mpipinstall.
python-mpytest./tests
Package: openassetio-traitgen
OpenAssetIO Code Generation ToolTheopenassetio-traitgentool can be used to generate Trait and
Specification classes from a simple YAML description. This avoids
the laborious and error-prone task of creating these by hand.This package is entirely self-contained and can be used without anOpenAssetIOinstallation. It provides code generation CLI, along with a
corresponding python package that can be used for custom generation.Supported languagesPython 3.7+InstallationThe package is available on PyPI, so to get the latest stable releasepython-mpipinstallopenassetio-traitgenUsageopenassetio-traitgen-h
Package: openassist
OpenAssistOpenAssist is a module for Python that allows you to create an AI assistant using openai with ease.InstallationpipinstallopenassistRoles.txt Format Example:# This is the format for the text contents of the file used picked openassist.Roles is instantiated - It defaults to roles.txt"""dog:You are a dog, talk like one to anything the user says nextcat:You are a cat talk like one to anything the user says nextpirate:You are a pirate talk like one to anything the user says next"""Usage# ROLES :                  'system' = System Guide, 'assistant' = Ai Assistant, 'user' = User# DEFAULT GPT DICT :       {'role': 'system', 'content': 'You are a friendly assistant.'}# DEFAULT ROLES FILE :     'roles.txt'# COMING SOON :            Parameters to be added to chat_completion() and completion() functions (temperature, top_p, max_tokens, stop) etc,.."""Example Of Importing -import openassist as OpenAssist - Import the module as OpenAssistorfrom openassist import OpenAIResponse, Roles, Memory - Import the classes individually (note case sensitivity)Example Of Initializing Classes -Memory1 = OpenAssist.Memory() - Initialize the memory listRoles = OpenAssist.Roles("roles.txt") - Initialize the roles list with the specified file/pathExample Of OpenAI Completions -OpenAIRes = OpenAssist.OpenAIResponse(api_key, model_id="gpt-4") - Initialize the OpenAIResponse class (model_id is optional but defaults to gpt-4)OpenAIRes.chat_completion(Memory1.return_list()) - Run the OpenAI Chat Completion functionOpenAIRes.completion(prompt, max_tokens=100) - Run the OpenAI Completion functionOpenAIResponse -chat_completion(memory_list) - Run the OpenAI Chat Completion functioncompletion(prompt, max_tokens=100) - Run the OpenAI Completion function (max_tokens is optional but defaults to 100)Roles -[Roles.] - Instance Nameadd(role_name, role_content, as_role) - Add a role to the roles listremove(role_name) - Remove a role from the roles listview() - View the roles listselect(role_name) - Get a selected role from the roles listrandom() - Get a random role from the roles listformat(role, content) - Format content into a role dictionary (role can be 'system', 'assistant', or 'user')Memory -[Memory1.] - Instance Nameadd(dictionary) - Add a dictionary to the memory listremove(dictionary) - Remove a dictionary from the memory listremove_index(index) - Remove a dictionary from the memory list in the specified indexinsert(index, dictionary) - Insert a dictionary into the memory list at the specified indexclear() - Clear the memory listview_list() - View the memory listreturn_list() - Return the memory listedit(dictionary, index) - Edit a dictionary in the memory list at the specified indexget_index(dictionary) - Get the index of a dictionary in the memory list"""Dev Log:# 2.2.6 - Initial Release# 2.2.7 - Added max_tokens parameter to chat_completion() and completion() functions
Package: open-atmos-jupyter-utils
utilsUtility routines used in Jupyter notebooks inPySDM-examples,PyMPDATA-examplesandPyPartMC-examplesprojects:show_plot()- a drop-in replacement for matplotlib's show() displaying the figure using vector graphics (svg) by default and offering a download-as-pdf widget just below (on Colab the widget triggers Google Drive download)TemporaryFile- a class equipped withmake_link_widget()method returning a click-to-download Colab-compatible widget to be display()-ed in a Jupyter notebookpip_install_on_colab('package_a', 'package_b', ...)- a function handling execution ofpip(andldconfig) on Colabpublic API docs are maintained at:https://open-atmos.github.io/jupyter-utils/
Package: openaustralia
This is a python wrapper for theOpenAustralia API.NOTE: This isn’t officially affiliated with theOpenAustraliaproject.
It’s just something I’m playing around with. Suggestions / contributions towards making this more useful are welcome.DocumentationYou can find the package documentationhere.InstallationFrom sourcepython setup.py installpippip install openaustraliaUsagefromopenaustraliaimportOpenAustraliaoa=OpenAustralia("YOUR KEY")search=oa.get_hansard("barnacles")search['rows'].pop(0)Source codeYou can get the code here:https://bitbucket.org/otherchirps/openaustralia-api-pyTestingtoxis being used to run the tests across
python 2.7 & 3.x.To bootstrap your test environment, the easiest way is you
use thepiprequirements file:pip install -r requirements.txtThen you can simply run:tox
Package: open-autonomy
Open Autonomy FrameworkOpen Autonomyis a framework for the creation ofagent services: off-chain
autonomous services which run as a multi-agent-system (MAS) and offer enhanced functionalities
on-chain. Agent services expand the range of operations that traditional
smart contracts provide, making it possible to executearbitrarily complex operations(such as machine-learning algorithms). Most importantly, agent services aredecentralized,trust-minimized,transparent, androbust.Get started developing agent servicesRead theOpen Autonomy documentationto learn more about agent services. Follow theset upandquick startguides to start building your own services.For developers contributing to the framework: install from sourceEnsure your machine satisfies the following requirements:Python>= 3.8Tendermint==0.34.19IPFS node==v0.6.0PipPipenv>=2021.x.xxGo==1.17.7KubectlDocker EngineDocker ComposeSkaffold>= 1.39.1GitleaksClone the repository:git clone git@github.com:valory-xyz/open-autonomy.gitPull pre-built images:docker pull valory/autonolas-registries:latest
docker pull valory/acn-node:latest
docker pull valory/contracts-amm:latest
docker pull valory/safe-contract-net:latest
docker pull valory/slow-tendermint-server:0.1.0Create and launch a virtual environment. Also, run this during development,
every time you need to re-create and launch the virtual environment and update
the dependencies:make new_env && pipenv shell:information_source: Note: we are usingatherisin order to perform fuzzy testing.
The dependency is not listed in thePipfilebecause it is not supported on Windows.
If you need to run or implement a fuzzy test, please manually install the dependency.
If you are developing on Mac, please follow the extra steps describedhere.Fetch packages:autonomy packages sync --update-packagesCiteIf you are using our software in a publication, please
consider to cite it with the following BibTex entry:@misc{open-autonomy,
  Author = {David Minarsch and Marco Favorito and Viraj Patel and Adamantios Zaras and David Vilela Freire and Michiel Karrenbelt and 8baller and Ardian Abazi and Yuri Turchenkov and José Moreira Sánchez},
  Title = {Open Autonomy Framework},
  Year = {2021},
}
Package: open-autonomy-compose
Open Autonomy ComposeA framework for working with FSM based ABCI applicationsInstallpip3installopen-autonomy-composeGenerate FSM SpecificationIf you have an ABCI app composition and you want to generate a specification for the same runcomposefsmfrom-appPATH_TO_ABCI_APPPerform consistency checksTo peform consistency check on an ABCI app runcomposecheckPATH_TO_ABCI_APPSupported consistency checksSyncDBPre/Post Conditions for round transitionsStatic analyser for checking if the required updates are being performed or notInspect the ABCI AppTo inspect the ABCI app runcomposeinspectPATH_TO_ABCI_APPRunning this will start an http server, open the URL for HTTP server and you can inspect the ABCI app in the browserDevelopmentEnsure your machine satisfies the following requirements:Python>= 3.8PipPoetryClone the repository:gitclonegit@github.com:valory-xyz/open-autonomy.gitCreate a development environmentpoetryinstallLaunch poetry shell in start developingpoetryshellCiteIf you are using our software in a publication, please consider to cite it with the following BibTex entry:@misc{open-autonomy-compose,
  Author = {Viraj Patel},
  Title = {Open Autonomy Compose},
  Year = {2023},
}
Package: openbabel
This is a Python interface to the Open Babel chemistry library. For the
main Open Babel project, seehttp://openbabel.org.Open Babel is a chemical toolbox designed to speak the many languages
of chemical data. It’s an open, collaborative project allowing anyone
to search, convert, analyze, or store data from molecular modeling,
chemistry, solid-state materials, biochemistry, or related areas. For
installation instructions, tutorials and examples, please visit theOpen Babel website.This package provides two Python modules that can be used to access the
functionality of the Open Babel toolkit:Theopenbabelmodule: A wrapper that is automatically generated using
the SWIG package and provides access to almost all of the Open Babel
interfaces via Python, including the base classes OBMol, OBAtom, OBBond,
and OBResidue, as well as the conversion framework OBConversion.Thepybelmodule: A lightweight wrapper around the classes and methods
in the openbabel module. Pybel provides more convenient and Pythonic ways
to access the Open Babel toolkit.For detailed installation instructions, API documentation and further information
on the Python bindings, see thePython pages on the Open Babel website.DependenciesPython 2.4 or a more recent version.Open Babel 3 or a more recent version.InstallationOption 1: Usepip.pip install openbabelOption 2: Download the latest release and install yourself.tar -xzvf openbabel-3-1-0.tar.gz
cd openbabel-openbabel-3-1-0
python setup.py installOption 3: While building Open Babel itself.cd openbabel
mkdir ob-build
cd ob-build
cmake -DRUN_SWIG=ON -DPYTHON_BINDINGS=ON ..
make installCopyright and LicenceCopyright (C) 2005-2007 Geoffrey R. Hutchisonbabel@geoffhutchison.netSome portions Copyright (C) 2006-2010 Noel O’BoyleThis Python module is part of theOpen Babel project.Open Babel is distributed under the GNU General Public License (GPL).
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation version 2 of the License. Full details
can be found in the file “COPYING” which should be included in your
distribution.
Package: openbabel-wheel
openbabel-wheelopenbabel-wheelis an unofficial repository to distribute OpenBabel prebuilt wheels through Pypi usingpipinstallopenbabel-wheelThe package requires Python 3.7 and above.The project is inspired byrdkit-pypiand powered byscikit-build-coreandcibuildwheel.Available BuildsOSArchBitConditionsPythonLinuxx86_6464glibc >= 2.173.7-3.12macOSx86_6464>= macOS-10.93.7-3.12macOSarm6464>= macOS-113.8-3.12Windowsamd64643.8-3.12UsagePythonfromopenbabelimportopenbabelCommand lineobabel-hLicenseopenbabel-wheeldistributed under the samelicenseas OpenBabel.
For original OpenBabel repository, referopenbabel/openbabel.
Package: openbadges-bakery
This package contains the utilities needed to “bake” Open Badges metadata into
PNG or SVG image files or extract (‘unbake’) metada from such images.This Open Badges Bakery is produced by Concentric Sky.https://concentricsky.comInstallationpip:pipinstallopenbadges_bakeryCommand Line InterfaceThere is a command line interface for baking and unbaking assertion data.To bake a badge, identify the existing BadgeClass image with the input_filename
and desired baked Assertion image filename to be created as well as the data to
be baked into the image.bakerybake[input_filename][output_filename]--data='{"data": "data"}'To extract Open Badges data from an image, use theunbakecommand.bakeryunbake[input_filename]Output_filename is optional if you want the baked data to be written to a file.bakeryunbake[input_filename][output_filename]Python InterfaceThe bake and unbake functions are available when installed as a python moduleTo bake a badge, pass in an open file asinput_fileand the string of the
badge data you wish to bake into the image. Result is an open TemporaryFile
that contains the data.fromopenbadges_bakeryimportbakeoutput_file=bake(input_file,assertion_json_string)To unbake a badge, pass in an open file asinput_file:fromopenbadges_bakeryimportunbakeoutput_file=unbake(input_file)
Package: openbakery
OpenBakery, a font quality assurance tool for everyoneDocumentation:https://miguelsousa.github.io/openbakerySource Code:https://github.com/miguelsousa/openbakeryContributing Guide:https://github.com/miguelsousa/openbakery/blob/main/CONTRIBUTING.mdOpenBakeryis a command-line tool for validating font binaries and, optionally, their source files and metadata.RequirementsPythonversion 3.8 (or greater)To determine if your system has Python installed and which version, run this command:python --versionPlease refer to the instructions provided atpython.orgfor downloading and installing Python on your platform.pipversion 22.0 (or greater)To determine if your Python environment haspipinstalled and which version, run this command:python -m pip --versionPlease refer to the instructions provided atpip.pypa.iofor downloading and installingpipon your Python environment.⚠️IMPORTANT: If you have Python 2.x installed in your system, you may have to usepython3(instead ofpython) in the commands below.InstallationCommand to install astable versionof OpenBakery:python -m pip install --upgrade openbakeryCommand to install abeta versionof OpenBakery:python -m pip install --upgrade --pre openbakeryOpenBakery's functionality is organized into profiles. Each profile invokes specific font checks. To get a list of all the profiles run this command:openbakery --list-subcommandscheck-adobefonts
check-fontbureau
check-fontval
check-fontwerk
check-googlefonts
check-iso15008
check-notofonts
check-opentype
check-profile
check-proposals
check-ufo-sources
check-universalThe installation commands above enable you to run theuniversaland theopentypeprofiles on a font, like so:openbakery check-opentype MyFont-Regular.ttfTo test your fonts with other profiles, you need to installopenbakerywith a corresponding extra. The command below installsopenbakerywith all the necessary dependencies for running the checks in thegooglefontsprofile:python -m pip install --upgrade 'openbakery[googlefonts]'UsageIf you made it this far, congratulation! You should now be ready to "bake" your fonts. 😀 🥯🍞🥖🥨🥐🫓🧁Thedocumentationcontains many examples of how to runopenbakerywith its various options.LicenseThis project is licensed under the terms of the Apache 2.0 license.All comments on issues, pull requests, and discussions will be treated as also licensed under this license such that they can be incorporated into the project's codebase.Fork acknowledgmentThis project is a fork ofFont Bakery.
Package: openbalkans
Open Balkans Python ImplementationA python implementation of OpenBalkansFree software: MIT licenseDocumentation:https://openbalkans.readthedocs.io.FeaturesTODOWrite a function that generates and saves the key to fileWrite a method that creates configuration file and allows different formatsFormat should be loaded from yaml or jsonPlansconsider using config file - will create and use onethink of key designation schemeuser should be able to choose between WarpWallet and keyfilesimple api (object.create_post(payload)) should be available and support listsonly ECDSA should be supported with this implementationKey wrapper object and post interface should be extensible to allow different encryption typesCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2019-06-28)First release on PyPI.