Saravanan666/pypi-org huggingface dataset:
Package: open-api-schemas-to-markdown
OpenAPI Components Schemas to MarkdownThe goal of this package is to generateGithub Flavored Markdowndocumentation of Components Schemas from theOpenAPI 3 specification.Say you've got a YAML file:openapi: "3.0.0"
info:
  version: "0"
  title: Demo
paths:
  /demo:
    get:
      summary: Demo
      responses:
        '200':
          description: OK
components:
  schemas:
    ResultatHumain:
      properties:
        operation_id:
          type: integer
          format: int64
          description: Le numéro unique de l'opération
          example: 1119920371
        categorie_personne:
          type: string
          description: Indique la catégorie de personne impliquée dans le bilan humain
          example: Pêcheur français
        resultat_humain:
          type: string
          description: Description du bilan humain
          example: Personne secourue
        nombre:
          type: number
          format: int32
          minimum: 0
          description: Nombre de personnes impliquées dans ce bilan
          example: 3
        dont_nombre_blesse:
          type: number
          format: int32
          minimum: 0
          description: Indique le nombre de personnes blessées dans le bilan
          example: 1The package will produce a Markdown file from the YAML specification file with the following content:## ResultatHumain|Field|Type|Description|Example|Properties|
|---|---|---|---|---|
|operation_id|integer($int64)|Le numéro unique de l'opération|1119920371||
|categorie_personne|string|Indique la catégorie de personne impliquée dans le bilan humain|Pêcheur français||
|resultat_humain|string|Description du bilan humain|Personne secourue||
|nombre|number($int32)|Nombre de personnes impliquées dans ce bilan|3|minimum: 0|
|dont_nombre_blesse|number($int32)|Indique le nombre de personnes blessées dans le bilan|1|minimum: 0|And if you render it:ResultatHumainFieldTypeDescriptionExamplePropertiesoperation_idinteger($int64)Le numéro unique de l'opération1119920371categorie_personnestringIndique la catégorie de personne impliquée dans le bilan humainPêcheur françaisresultat_humainstringDescription du bilan humainPersonne secouruenombrenumber($int32)Nombre de personnes impliquées dans ce bilan3minimum: 0dont_nombre_blessenumber($int32)Indique le nombre de personnes blessées dans le bilan1minimum: 0Installationpip install open-api-schemas-to-markdownUsageThe package provides a command line tool.$ oa-to-md -h
usage: oa-to-md [-h] input_filepath output_filepath [locale]

positional arguments:
  input_filepath   The OpenAPI 3 YAML filepath
  output_filepath  The desired output filepath of the Markdown file
  locale           Locale to use when generating the Markdown file. Available:
                   en, fr

optional arguments:
  -h, --help       show this help message and exitExample:oa-to-md open_api.yml documentation.mdNoticeThis software is available under the MIT license and was developed as part of theEntrepreneur d'Intérêt Général programby the French government.Projet développé dans le cadre du programme «Entrepreneur d’intérêt général».
Package: openapi-schema-validator
AboutOpenapi-schema-validator is a Python library that validates schema against:OpenAPI Schema Specification v3.0which is an extended subset of theJSON Schema Specification Wright Draft 00.OpenAPI Schema Specification v3.1which is an extended superset of theJSON Schema Specification Draft 2020-12.DocumentationCheck documentation to see more details about the features. All documentation is in the “docs” directory and online atopenapi-schema-validator.readthedocs.ioInstallationRecommended way (via pip):pip install openapi-schema-validatorAlternatively you can download the code and install from the repository:pip install -e git+https://github.com/python-openapi/openapi-schema-validator.git#egg=openapi_schema_validatorUsageTo validate an OpenAPI v3.1 schema:fromopenapi_schema_validatorimportvalidate# A sample schemaschema={"type":"object","required":["name"],"properties":{"name":{"type":"string"},"age":{"type":["integer","null"],"format":"int32","minimum":0,},"birth-date":{"type":"string","format":"date",},"address":{"type":'array',"prefixItems":[{"type":"number"},{"type":"string"},{"enum":["Street","Avenue","Boulevard"]},{"enum":["NW","NE","SW","SE"]}],"items":False,}},"additionalProperties":False,}# If no exception is raised by validate(), the instance is valid.validate({"name":"John","age":23,"address":[1600,"Pennsylvania","Avenue"]},schema)validate({"name":"John","city":"London"},schema)Traceback(mostrecentcalllast):...ValidationError:Additionalpropertiesarenotallowed('city'wasunexpected)By default, the latest OpenAPI schema syntax is expected.For more details read aboutValidation.Related projectsopenapi-corePython library that adds client-side and server-side support for the OpenAPI.openapi-spec-validatorPython library that validates OpenAPI Specs against the OpenAPI 2.0 (aka Swagger) and OpenAPI 3.0 specification
Package: openapispecdiff
OpenAPISpecDiffOpenAPISpecDiff is a Python library for comparing two OpenAPI specs and identifying the difference between them.Visithttps://www.cloudvector.com/api-shark-free-observability-security-monitoring-tool/#apisharkInstallationUse the package managerpipto install foobar.pipinstallopenapispecdiffUsage****************************************************************************************************CloudVectorAPIShark-OpenAPIspecdiffcheckerplugin****************************************************************************************************EnterabsolutepathtoOldAPISPEC:../input.jsonEnterabsolutepathtonewAPISPEC:../input1.jsonLicenseMIT
Package: openapi-specgen
openapi-specgenOpenapi-Specgen helps you generateOpenApi specificationfrom your python code.Includes support for automatically generating OpenApi schemas for Dataclasses and Marshamllow Schemas.InstallationInstall using pippip install openapi-specgenQuick StartDefine your objects using dataclasses or marshmallow schemas.
Import the required OpenApi classes and define your Api with it`s paths, params and responses.fromtypingimportListfromdataclassesimportdataclass@dataclassclassDataclassObject():str_field:strint_field:intfloat_field:floatboolean_field:boollist_field:List[str]fromopenapi_specgenimportOpenApi,OpenApiParam,OpenApiPath,OpenApiResponsesample_response=OpenApiResponse('Response description',data_type=DataclassObject)sample_param=OpenApiParam('param_name','query',data_type=str)sample_path=OpenApiPath('/api_path','get',[sample_response],[sample_param])sample_api=OpenApi('Sample Api',[sample_path,marshmallow_path])sample_api.as_dict()Adding custom type resolversThe following code snippet expands on the quick start example to show you how to add custom resolvers for any other types.# Create a func with the following signature:defcustom_resolver(openapi_schema_resolver,data_type):# Resolver must return None if it cannot resolve the data_typeifdata_typeisnotCustomType:return# For simple types the schema can be returned now, e.g# return {"type": "string", "format": "byte"}# Optionally for objects we can use a reference using the following syntax# Register the actual componentcomponent_name="CustomType"openapi_schema_resolver.add_component(component_name,{"title":component_name,"type":"object","required":["foo"],"properties":{# use openapi_schema_resolver.get_schema# to recursively resolve other schemas"foo":openapi_schema_resolver.get_schema(int)}})# Return the referencereturn{'$ref':openapi_schema_resolver.get_component_ref(component_name)}# Register your func on your OpenApi instancetest_api.add_resolver(custom_resolver)LicenseThis project is licensed under the MIT License - see theLICENSEfile for details
Package: openapi-spec-validator
AboutOpenAPI Spec Validator is a CLI, pre-commit hook and python package that validates OpenAPI Specs
against theOpenAPI 2.0 (aka Swagger),OpenAPI 3.0andOpenAPI 3.1specification. The validator aims to check for full compliance with the Specification.DocumentationCheck documentation to see more details about the features. All documentation is in the “docs” directory and online atopenapi-spec-validator.readthedocs.ioInstallationpip install openapi-spec-validatorAlternatively you can download the code and install from the repository:pipinstall-egit+https://github.com/python-openapi/openapi-spec-validator.git#egg=openapi_spec_validatorUsageCLI (Command Line Interface)Straight forward way:openapi-spec-validatoropenapi.yamlpipes way:catopenapi.yaml|openapi-spec-validator-docker way:dockerrun-vpath/to/openapi.yaml:/openapi.yaml--rmpythonopenapi/openapi-spec-validator/openapi.yamlor more pythonic way:python-mopenapi_spec_validatoropenapi.yamlFor more details, read aboutCLI (Command Line Interface).pre-commit hookrepos:-repo:https://github.com/python-openapi/openapi-spec-validatorrev:0.5.5# The version to use or 'master' for latesthooks:-id:openapi-spec-validatorFor more details, read aboutpre-commit hook.Python packagefromopenapi_spec_validatorimportvalidatefromopenapi_spec_validator.readersimportread_from_filenamespec_dict,base_uri=read_from_filename('openapi.yaml')# If no exception is raised by validate(), the spec is valid.validate(spec_dict)validate({'openapi':'3.1.0'})Traceback(mostrecentcalllast):...OpenAPIValidationError:'info'isarequiredpropertyFor more details, read aboutPython package.Related projectsopenapi-corePython library that adds client-side and server-side support for the OpenAPI v3.0 and OpenAPI v3.1 specification.openapi-schema-validatorPython library that validates schema against the OpenAPI Schema Specification v3.0 and OpenAPI Schema Specification v3.1.LicenseCopyright (c) 2017-2023, Artur Maciag, All rights reserved. Apache v2
Package: openapi-suhas-test
openapiSDK InstallationpipinstallopenapiSDK Example Usageimportsdkfromsdk.modelsimportoperations,shareds=sdk.SDK()req=operations.OTPRequestRequest(otp_request=shared.OTPRequest(action=shared.OTPRequestAction.RESEND_OTP,otp='provident',),payment_id='distinctio',x_api_version='quibusdam',)res=s.authentication.otp_request(req)ifres.otp_response_entityisnotNone:# handle responseAvailable Resources and Operationsauthenticationotp_request- Submit or Resend OTPeligibility_ap_iseligibility_cardless_emi- Get eligible Cardless EMIeligibility_offer- Get eligible Offerseligibility_paylater- Get eligible Paylaterofferscreate_offer- Create Offerget_offer- Get Offer by IDorderscreate_order- Create Orderget_order- Get Orderorder_pay- Order Paypreauthorization- Preauthorizationpg_reconciliationpg_reconciliation- PG Reconciliationpayment_linkscancel_payment_link- Cancel Payment Linkcreate_payment_link- Create Payment Linkget_payment_link_details- Fetch Payment Link Detailsget_payment_link_orders- Get Orders for a Payment Linkpaymentsget_paymentby_id- Get Payment by IDget_paymentsfororder- Get Payments for an Orderrefundscreaterefund- Create Refundget_refund- Get Refundgetallrefundsfororder- Get All Refunds for an Ordersettlement_reconciliationsettlement_reconciliation- Settlement Reconciliationsettlementsgetsettlements- Get Settlements by Order IDsettlements- Get All Settlementstoken_vaultdelete_specific_saved_instrument- Delete Saved Instrumentfetch_all_saved_instruments- Fetch All Saved Instrumentsfetch_cryptogram- Fetch cryptogram for saved instrumentfetch_specific_saved_instrument- Fetch Single Saved Instrumentsoft_poscreate_terminals- Create Terminalget_terminal_by_mobile_number- Get terminal status using phone numberMaturityThis SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning usage
to a specific package version. This way, you can install the same version each time without breaking changes unless you are intentionally
looking for the latest version.ContributionsWhile we value open-source contributions to this SDK, this library is generated programmatically.
Feel free to open a PR or a Github issue as a proof of concept and we'll do our best to include it in a future release!SDK Created bySpeakeasy
Package: openapi-toolkit
OpenAPI Toolkit is currently an experimental project to streamline handling
and workarounds related to using OpenAPI in your applications.While this project is an a experimental state, it is subject to contract
breakage.Commandline Usageopenapi-toolkitresolve--helpusage:openapi-toolkitresolve[-h][--preprocessor{mako}][--save-pathSAVE_PATH]filenameResolveOpenAPISpecpositionalarguments:filenamePathofspectoresolve.optionalarguments:-h,--helpshowthishelpmessageandexit--preprocessor{mako}Enableapreprocessortouseonthespecification.--save-pathSAVE_PATHPathtosaveresolvedcontent.
Package: openapitools
OpenAPI v3 ToolsOpenAPI v3 object model and helpers.InstallationpipinstallopenapitoolsUsagefromopenapitoolsimportSpecificationBuilder,ComponentsBuilder,OperationBuilder,SchemaclassTodo:id:inttext:strdone:Falsecomponents=ComponentsBuilder()components.scheme(Todo.__name__,Schema.make(Todo))builder=SpecificationBuilder(components)builder.describe('TODO REST API','1.0')builder.license('MIT')builder.contact('John Doe','https://example.com','john-doe@example.com')get_todo=OperationBuilder()get_todo.parameter('id',int,'path')get_todo.describe('Get todo by ID')get_todo.tag('todo')get_todo.response(200,Todo)builder.operation('/todo/{id}','GET',get_todo)print(builder.build())
Package: openapi-to-sdk
Vector API to SDK.Python SDK for API automation.
Currently supports FastAPI implementation.It is used as below:from automation_tool.sdk_automation import PythonSDKBuilder
sdk = PythonSDKBuilder(
    url="https://api.vctr.ai",
    inherited_properties=['username', 'api_key'],
    decorators=['retry()'],
)
sdk.to_python_file(import_strings=['from vectorai.api.utils import retry'])Sample Output:# This python file is auto-generated. Please do not edit.
from vectorai.api.utils import retry


class ViAPIClient:
	def __init__(self, username, api_key, ):
		self.username = username		
		self.api_key = api_key		

	@retry()
	def request_api_key(self,email, description, referral_code, ):
		"""Request an api key
Make sure to save the api key somewhere safe. If you have a valid referral code, you can recieve the api key more quickly.

Args
========
username: Username you'd like to create, lowercase only
email: Email you are using to sign up
description: Description of your intended use case
referral_code: The referral code you've been given to allow you to register for an api key before others

"""
		return requests.post(
			url='https://api.vctr.ai//project/request_api_key',
			json=dict(
				username=self.username,
				email=email, 
				description=description, 
				**kwargs)).json()ImprovementsAdd more documentation.
Package: openapi-type
OpenAPI TypeOpenAPI specification represented as a Python type. Use it to parse specifications written in JSON and YAML formats.pipinstallopenapi-typefromopenapi_typeimportOpenAPI,parse_spec,serialize_specspec:OpenAPI=parse_spec({"your OpenAPI Spec as Python dictionary":"will be parsed into a proper Python type"})assertparse_spec(serialize_spec(spec))==spec$curl-shttps://petstore3.swagger.io/api/v3/openapi.json|openapi-typecheckSuccessfullyparsed.CodegenIf you are looking for a complete client code generator, consideropenapi-client-generatorthat uses this library under the hood.Cloning this repoThe proper way to clone this repo is:gitclone--recurse-submodules<repo-url><local-project-root>cd<local-project-root># for showing submodule status with `git status`gitconfigstatus.submodulesummary1# for logging submodule diff with `git diff`gitconfigdiff.submodulelogDocumentationDocumentation is hosted on ReadTheDocs:https://openapi-type.readthedocs.io/en/develop/Test frameworkThe project usesNixfor bootstrapping its dev environment.You can run existing test suite withnix-shell--run"make test"ChangelogSeeCHANGELOG.
Package: openapi-typed
OpenAPI typedPython typings forOpenAPIusingTypedDict.InstallationInstall package fromPyPI.pipinstallopenapi-typedUsagefromopenapi_typedimportOpenAPIObject,Info# Valid OpenAPIObjectopenapi_valid=OpenAPIObject(openapi="3.0.0",info=Info(title="My API",version="0.0.0"))# Invalid OpenAPIObjectopenapi_invalid=OpenAPIObject(openap="3.0.0",# Type-check error, unknown attributeinfo=Info(title="My API"# Type-check error, missing attribute `version`))DevelopmentInstall development dependencies:pipinstall-e.[dev]Run tests:pytest# ORpythonsetup.pytestRun type-checks withmypy:mypyopenapi_typedBuild package:pythonsetup.pydistContributingThanks for wanting to contribute! We will soon have a contributing page
detaling how to contribute. Meanwhile, feel free to star this repository, open issues and ask for more features and support.Please note that this project is governed by theMeeshkan Community Code of Conduct. By participating in this project, you agree to abide by its terms.
Package: openapi-typed-2
OpenAPI typedPython typings forOpenAPIusingdataclass.InstallationInstall package fromPyPI.pipinstallopenapi-typed-2Usagefromopenapi_typed_2importOpenAPIObject,Info# Valid OpenAPIObjectopenapi_valid=OpenAPIObject(openapi="3.0.0",info=Info(title="My API",version="0.0.0"))# Invalid OpenAPIObjectopenapi_invalid=OpenAPIObject(openap="3.0.0",# Type-check error, unknown attributeinfo=Info(title="My API"# Type-check error, missing attribute `version`))DevelopmentInstall development dependencies:pipinstall-e'.[dev]'Do codegen (necessary for type checking and tests):pythonsetup.pygenRun tests:pytest# ORpythonsetup.pytestRun type-checks withmypy:mypyopenapi_typedBuild package:pythonsetup.pydistContributingThanks for wanting to contribute! We will soon have a contributing page
detaling how to contribute. Meanwhile, feel free to star this repository, open issues and ask for more features and support.Please note that this project is governed by theMeeshkan Community Code of Conduct. By participating in this project, you agree to abide by its terms.
Package: openapi-ui-bundles
This package provides the static files forOpenAPIUI tools as a python package.
The following UI tools are included:Swagger UI.RapiDoc.ReDoc.Flask usage example:importflaskimportopenapi_ui_bundlesapp=flask.Flask(__name__,static_folder=openapi_ui_bundles.swagger_ui.static_path,static_url_path='/')if__name__=="__main__":app.run()Swagger UIRapiDocReDoc
Package: openapp_indivo_demographics
Demographics============This is a Django App which provides a screen to view and editthe Demographics record.It is an example / proof of concept application.There is a dependency on the django-form-admin package. This packageis used to provide a simple forms layer. This package requires thedjango.contrib.admin package to be configured.Installation------------Make sure you are in the correct virtualenv environment::. python/bin/activate  (or similar)Configure pre-requisites::pip install django-form-adminInstall the package::pip install openapp_indivo_demographicsRegister the packages.Place these lines at the end of the settings.py file in the indivo_ui_server folder::import os.pathimport django.contribADMIN_ROOT_DIR = os.path.dirname(django.contrib.__file__) + "/admin"TEMPLATE_DIRS += ADMIN_ROOT_DIR + '/templates/',INSTALLED_APPS += 'django.contrib.admin',STATICFILES_DIRS += ADMIN_ROOT_DIR + '/static/',import formadminFORMADMIN_ROOT_DIR = os.path.dirname(formadmin.__file__)TEMPLATE_DIRS += FORMADMIN_ROOT_DIR + '/templates/',INSTALLED_APPS += 'formadmin',import openapp_indivo.demographicsDEMOGRAPHICS_ROOT_DIR = os.path.dirname(openapp_indivo.demographics.__file__)TEMPLATE_DIRS += DEMOGRAPHICS_ROOT_DIR + '/templates/',STATICFILES_DIRS +=  DEMOGRAPHICS_ROOT_DIR + '/static/',INSTALLED_APPS += 'openapp_indivo.demographics',MIDDLEWARE_CLASSES += 'openapp_indivo.demographics.middleware.GlobalRequestMiddleware',Restart the server to make sure the configuration is correct.You have to manually set up the application in the indivo_serverenvironment. It cannot detect it from the settings file.Add these two files to the indivo_server environment.indivo_server/registered_apps/user/openapp_indivo.demographics/credentials.json::{"consumer_key": "demographics@apps.openapp.ie","consumer_secret": "demographics"}indivo_server/registered_apps/user/openapp_indivo.demographics/manifest.json::{"name" : "Demographics","description" : "View and Edit the Demographics record.","author" : "Kevin Gill, OpenApp","id" : "demographics@apps.openapp.ie","version" : "0.1.0","smart_version": "0.0","mode" : "ui","scope": "record","has_ui": true,"frameable": true,"icon" :  "/static/openapp_indivo/demographics/images/demographics.png","index": "/openapp_indivo/demographics/start_auth?record_id={record_id}&amp;carenet_id={carenet_id}","oauth_callback_url": "/openapp_indivo/demographics/after_auth"}You have to notify indivo that there is a change to the apps configuration.Run this command against the indivo_server manage.py::python manage.py sync_appsAfter this you should be able to add the application to a record.Outstanding Issues------------------Where a record has no Demographics document, an error is produced. I don't knowwhether records with Demographics documents are expected or the demo data isincomplete.Changelog=========1.0 - 22 Nov 2012-----------------* Initial release1.0.1 - 22 Nov 2012-----------------* Fix problems with installing from pypi.* Fix order of fields in the PUT document.
Package: openap-polymer
Super fastPolynomialModel for FlightEmissionResearchThis is the simplest aircraft emission model that gives you fuel and co2 estimations based on the aircraft type, distance, and takeoff mass.This reduced-order aircraft emission model is based onOpenAP.Quick examplefromopenapimportpolymerflight=polymer.Flight("A320")flight.fuel(distance=2000,mass=65000)# in km and kgflight.co2(distance=2000,mass=65000)# or even simplerflight.fuel(distance=2000)flight.co2(distance=2000)Visualize the actual modelfromopenapimportpolymerflight=polymer.Flight("A320")flight.plot()Installopenap.polymerusesopenap.topfor generating flights with varying flight distances to construct a simplified fuel and emission calculation model.Create a new conda environment (openap-env), which avoids messing up the base conda environment:condacreate-nopenap-envpython=3.10-cconda-forgeUse theopenap-envenvironmentcondaactivateopenap-envInstall dependent libraries:The most recent version ofopenapandopenap-top:pipinstall--upgradegit+https://github.com/junzis/openap
pipinstall--upgradegit+https://github.com/junzis/openap-topInstallopenap.polymerpipinstall--upgradegit+https://github.com/junzis/openap-polymer
Package: openap-top
OpenAP Trajectory OptimizerThis repository contains the flight trajectory optimizer module ofOpenAPInstallInstall the development branch from GitHub:pipinstall--upgradegit+https://github.com/junzis/openap-otopInstall the latest stable release from pypi:pipinstall--upgradeopenap-topQuick startExamples:importopenap.topasotopoptimizer=otop.CompleteFlight("A320","EHAM","LGAV",m0=0.85)fgrib="era5_2021-05-01_0800.grib"windfield=top.wind.read_grib(fgrib)op.enable_wind(windfield)flight=optimizer.trajectory(objective="fuel")flight=optimizer.trajectory(objective="ci:30")flight=optimizer.trajectory(objective="gwp100")flight=optimizer.trajectory(objective="gtp100")An optimal flight example: