Saravanan666/pypi-org huggingface dataset:
Package: oautom
OAutomoautomiseducationalworkflow engine implementation able to
run step by step treatment using directed acyclic graph (dag).It's not designed to use in production environment :this workflow engine is not safe because all the state are storedin-memorythis workflow engine does not supportFlowexecution concurrencythis workflow engine does not support to give parameter to an executionthis workflow engine does not implement variable forwarding between execution stepthis workflow engine does not implement dag integrity checkingif you are looking for a mature workflow engine, you should take a look toairflowfrom
which oautom reuse the declarative API.Getting startedoautom=OAutom(mode=OAutomMode.background)flow=Flow('flow 1',app=oautom)step1=BashExecution('execution 1',flow=flow,command='touch /tmp/file1')step2=BashExecution('sleep',flow=flow,command='sleep 60')step3=BashExecution('execution 2',flow=flow,command='touch /tmp/file2')step2.depends(step1)step3.depends(step2)more examples inoautom/examplesConceptsExecutionshould run async command inrunand check completion throughcheckBashExecutionallows to run shell commandaFlowis a directed acyclic graph of stepsaVectis a running instance of aFlowonly one instance of eachFlowmay run in same timeSystem requirementsThe following requirements has to be setup on your host before running the command
from this repository.python 3.6at leastpipenvInstall the python dependenciesmakeinstall_requirements_dev
makestartThe latest versionYou can find the latest version to ...gitclonehttps://github.com/FabienArcellier/oautom.gitmore information on how to use oautom inoautom/examplesUsagepipinstallhttps://github.com/FabienArcellier/oautom.gitContributingInstall development environmentUse make to instanciate a python virtual environment in ./venv3 and install the
python dependencies.makeinstall_requirements_devFreeze the library requirementsIf you want to freeze all the packages, use
this proceduremakefreeze_requirementsActivate the python environmentWhen you setup the requirements, avenv3directory on python 3 is created.
To activate the venv, you have to execute /makeactivateRun the linter and the unit testsBefore commit or send a pull request, you have to execute pylint to check the syntax
of your code and run the unit tests to validate the behavior.makelint
maketestsContributorsFabien ArcellierLicenseA short snippet describing the license (MIT, Apache, etc.)
Package: oba
ObaUsageConvert iterative object to attribute-accessible objectInstallpip install obaDescriptionfromobaimportObjo=Obj(dict(a=[1,2,3],b=[4,dict(x=1)],c=dict(l='hello')))print(o.a[2])# => 3print(o.c.l)# => helloo.b[1].x=4print(Obj.raw(o.b[1]))# => {'x': 4}print(bool(o.xxx))# => False, accessible as NoneObj()
Package: obal
obal - packaging wrapper using Ansibleobalis an Ansible wrapper with a set of Ansible playbooks to ease maintanance of packaging repositories likeforeman-packagingandpulp-packaging.Allobalactions should also work with plain Ansible when called likeansible-playbook <action_playbook>.yml -l <package>instead ofobal <action> <package>.necessary toolspython(2 or 3)ansibleUsing Obal via ContainerObal and all it's required packages are available in a container that can be used locally or in build environments. The users Koji credentials and configuration must be mounted into the container alongside of mounting the packaging project into/opt/packagingto work. Note the examples below assume SELinux is disabled.To run (or subdockerforpodman):podman run -v `pwd`:/opt/packaging -v ~/.koji:/root/.koji obal:latest scratch katello
Package: obasparql
OBA Sparql Query ManagerOBA Sparql Query Manager is a Python Module to translate CRUD requests to SPARQL queries. This module is used by
OBA project to generate a REST API from OWL ontologies.OBA sparql use JSON-LD contexts to translate RDF triples to JSON, and vice versa.Quick StartGenerate the context filesSimply speaking, a context is used to map terms to IRIs. Terms are case sensitive and most valid strings
that are not reserved JSON-LD keywords can be used as a term.To generate the context files, we recommend to use:OBAowl2jsonldTODO: Insert a good example.fromobasparqlimportQueryManagerfromtest.settingsimportdbpedia_queries,dbpedia_context,dbpedia_endpoint,dbpedia_prefixfromobasparql.staticimport*queries="queries/"contexts="contexts/"dbpedia_endpoint="https://dbpedia.org/sparql"dbpedia_prefix="http://dbpedia.org/resource"graph=Nonequery_manager=QueryManager(queries_dir=queries,context_dir=contexts,endpoint=dbpedia_endpoint,named_graph_base=graph,uri_prefix=dbpedia_prefix)query_manager.get_one_resource()query_manager.get_all_resource()Supported featuresOBA sparql supports two types of queries:Default queries: queries related to the CRUD requests.Get a resource and get all the resource by type.Custom queries: In some cases, users need to implement custom queries that are not the default instances
of a class of the ontology (e.g., get all instances of a class that comply with certain conditions)Default queriesGET all: Obtain all the resources with a rdf:type. Needs:Resource Type IRI. (For example:http://dbpedia.org/ontology/Artist)GET one: Obtain the details about a resource with the id. Needs:Resource IRI: (For example:http://dbpedia.org/ontology/Pink_Floyd)Resource Type IRI: (For example:http://dbpedia.org/ontology/Artist)POST: Insert a new resource:The JSON requestPUT: Update a existing resourceResource IRI: (For example:http://dbpedia.org/ontology/Pink_Floyd)DELETE: Delete a existing resourceResource IRI: (For example:http://dbpedia.org/ontology/Pink_Floyd)Custom queriesGet all instances of a class that comply with certain conditionsResource Type IRI: (For example:http://dbpedia.org/ontology/Artist)Get one instance of a class that comply with the conditionsResource IRI: (For example:http://dbpedia.org/ontology/Pink_Floyd)Resource Type IRI: (For example:http://dbpedia.org/ontology/Artist)TestingThis repository is usingpytestfor the testing$pipinstall-rtest-requirements.txt
$pytestFor more information. You can inspect the file.travis.yaml
Package: obc
OBC, the Open Badges Clientobcis a python library that provides a standard API to interact with Open
Badge platforms.Quick start guideInstall OBCobcis distributed as a python package. It can be installed usingpip(or
any other package manager) from PyPI:$ pip install obcUse providers in your applicationLet say you want to issue an existing Open Badge Factory badge for a list of
recipients, an example implementation would look like:fromobc.providers.obfimportBadgeIssue,BadgeQuery,OBF# Configure Open Badge Factory provider using your client identifier and secret# keyobf=OBF(client_id="my_obf_client_id",client_secret="super_secret")# Get the badge with the "badge_id" identifierbadge=awaitanext(obf.badges.read(query=BadgeQuery(id="badge_id")))# We want to issue a badge for the following recipientsissue=BadgeIssue(recipient=["jane@example.org","tarzan@example.org"])issue=awaitobf.badges.issue(badge,issue)More details will follow in the upcoming documentation.Hack on the projectIf you want to start contributing on the project, use thebootstrapMakefile
target to build the Docker development image:$ make bootstrapTo run tests, type:$ make testAnd to lint sources, there is also a command for that:$ make lintIf you had new dependencies to the project, you will have to rebuild the Docker
image (and the development environment):$ make build && make devYou can explore all other target using:$ make helpContributingThis project is intended to be community-driven, so please, do not hesitate to
get in touch if you have any question related to our implementation or design
decisions.We try to raise our code quality standards and expect contributors to follow
the recommandations from ourhandbook.LicenseThis work is released under the MIT License (seeLICENSE).
Package: obd
python-OBDA python module for handling realtime sensor data from OBD-II vehicle
ports. Works with ELM327 OBD-II adapters, and is fit for the Raspberry
Pi.Installation$pipinstallobdBasic Usageimportobdconnection=obd.OBD()# auto-connects to USB or RF portcmd=obd.commands.SPEED# select an OBD command (sensor)response=connection.query(cmd)# send the command, and parse the responseprint(response.value)# returns unit-bearing values thanks to Pintprint(response.value.to("mph"))# user-friendly unit conversionsDocumentationAvailable atpython-obd.readthedocs.orgCommandsHere are a handful of the supported commands (sensors). For a full list, seethe docsnote: support for these commands will vary from car to carCalculated Engine LoadEngine Coolant TemperatureFuel PressureIntake Manifold PressureEngine RPMVehicle SpeedTiming AdvanceIntake Air TempAir Flow Rate (MAF)Throttle PositionEngine Run TimeFuel Level InputNumber of warm-ups since codes clearedBarometric PressureAmbient air temperatureCommanded throttle actuatorTime run with MIL onTime since trouble codes clearedHybrid battery pack remaining lifeEngine fuel rateVehicle Identification Number (VIN)Common IssuesBluetooth OBD-II AdaptersThere are sometimes connection issues when using a Bluetooth OBD-II adapter with some devices (the Raspberry Pi is a common problem). This can be fixed by setting the following arguments when setting up the connection:fast=False,timeout=30LicenseGNU GPL v2This library is forked from:https://github.com/peterh/pyobdhttps://github.com/Pbartek/pyobd-piEnjoy and drive safe!
Package: ob-dj-hubspot
OBytes Django HubSpot AppHubSpot Django Application is designed to integrate with HubSpot to sync contacts, companies and deals from and to HubSpot.Quick startInstallob_dj_hubspotlatest versionpip install ob_dj_hubspotAdd "ob_dj_hubspot" to yourINSTALLED_APPSsetting like this:# settings.pyINSTALLED_APPS=[..."ob_dj_hubspot.core.hubspot",]# TODO: ADD Other settingsInclude the  URLs in your project urls.py like this::path("hubspot/",include("ob_dj_hubspot.apis.hubspot.urls")),Runpython manage.py migrateto create the hubspot models.Developer GuideClone github repogit clone [url]pipenv install --devpre-commit installRun unit testspytest
Package: ob-dj-otp
OBytes Django OTP AppOTP is a Django app to conduct Web-based one true pairing, for authentication, registration and changing phone number.Quick startInstallob_dj_otplatest versionpip install ob_dj_otpAdd "ob_dj_otp" to yourINSTALLED_APPSsetting like this:# settings.pyINSTALLED_APPS=[..."ob_dj_otp.core.otp",]Include the OTP URLs in your project urls.py like this::# urls.pypath("otp/",include("ob_dj_otp.apis.otp.urls")),Runpython manage.py migrateto create the otp models.ConfigurationOTP_FORCE_CODEForce using this code instead of generating random one, by default it's not settedOTP_RETURN_USAGEBoolean that determine whether you want to usage in the response, by default is FalseOTP_TIMEOUTNumber of seconds for the code expirations, by default it's 3 minutsOTP_USER_SERIALIZERFor the registration purpuse, you need to specify th path to you user serializer so you can create the user with full dataOTP_AUTH_USAGE_ONLYBoolean that deactivate the registrationOTP_EMAIL_AS_PRIMARY_FIELDBoolean to make email requiredOTP_PHONE_NUMBER_AS_PRIMARY_FIELDBoolean to make phone number requiredSERIALIZERS_MIXINDict contain mixins paths to customize serializers behavior ( seetestsfor better overview)NotificationsSince each project need it custom provider, the notification part should be sone on the project level not the package level, and it can be done easely butpost_saveonOneTruePairingmodel.Developer GuideClone github repogit clone [url]pipenv install --devpre-commit installRun unit testspytest
Package: ob-dj-payment-tap
OBytes Django Payment Tap AppPayment TAP is a Django app for managing payment transactions with TAP. The project consist of wrapper and models to
track transactions, settlement and configuration of tap accounts.Quick startInstallob_dj_payment_taplatest versionpip install ob_dj_payment_tapAdd "ob_dj_payment_tap" to yourINSTALLED_APPSsetting like this:# settings.pyINSTALLED_APPS=[..."ob_dj_payment_tap",]Runpython manage.py migrateto create the TAP models.Developer GuideClone github repogit clone [url]pipenv install --devpre-commit installRun unit testspytestHintYou can install the changes directly in your env usingpip install .; this should allow you topipenv shellto any env and navigate to the source code and install the packagepip install .
Package: ob-dj-store
OBytes Django Store AppOB-DJ-STORE is a Django application for managing ecommerce stores.Quick startThis package requires running the PostGis GeoSpatial database for your Django project, checkGeoDjangofor references.Installob_dj_storelatest versionpip install ob-dj-storeAdd "ob_dj_store" to yourINSTALLED_APPSsetting like this:# settings.pyINSTALLED_APPS=[..."ob_dj_store.core.stores","ob_dj_store.core.stores.gateway.tap",]Include "ob_dj_store" URLs to your project'surls.pyfile like the following:# urls.pyurlpatterns=[...path('ob-dj-store/',include('ob_dj_store.apis.stores.urls')),]ConfigurationNo additional configuration is required (yet).Developer GuideClone github repogit clone [url]pipenv install --devpre-commit installRun unit testspytest
Package: ob-dj-survey
OBytes Django Survey AppSurvey Django Application is designed to be a simple and easy to use survey application for Django, which can be used to collect data from users.Quick startInstallob-dj-surveylatest versionpip install ob-dj-surveyAdd "ob_dj_survey" to yourINSTALLED_APPSsetting like this:# settings.pyINSTALLED_APPS=[..."ob_dj_survey.core.survey",]Include the  URLs in your project urls.py like this:# urls.pypath("survey/",include("ob_dj_survey.apis.survey.urls")),Runpython manage.py migrateto create the survey models.Developer GuideClone github repogit clone [url]pipenv install --devpre-commit installRun unit testsmake test
Package: obdtracker
GPS OBD2 trackerThis project is for Chinese GPS tracker for cars.Which GPS ODB2 trackers are supported?This is good question and very hard to find proper answer. It was developed and tested on devices bought on
AliExpress which looks like this one:After reading attached instruction - I have found error - they say to connect to 3.tkstargps.net side but app is AIKA. What I found - that device is connecting (after sending SMS to it) to XX.aika168.com - and communication between mobile app and server is open (no ssl). This was an invitation to create this library. Other GPS OBD2 Trackers that work with AIKA mobile app should work with this library too. How to check that? Look at pictures of
mobile app that usuary is shown on pages where somebody is selling device. If you see something like:Map with blue top bar with reload button on right and back arrow on left. This is AIKA app. And here is a link to Google app store:AIKA app.How to use this code?It's a library. To integrate with your code you have to write something like this:from obdtracker import api, device_status, obd, location
import logging

def main():
    la = api.API("http://www.aika168.com/")
    la.registerUpdater(location.Location(la))
    la.registerUpdater(device_status.DeviceStatus(la))

    loop = asyncio.get_event_loop()

    loop.run_until_complete(la.doLogin('<Your device id>', '<Your server password>') )
    loop.run_until_complete(la.doUpdate())

    attrs = vars(la)
    print(', '.join("%s: %s" % item for item in attrs.items()))

if __name__ == "__main__":
    main()NEW: list of UNSUPPORTED mobile applicationsIf you are going to buy GPS OBD2 Tracker checkout this list to see which mobile apps are unsupported. Acually it means that those mobile apps use cloud service that is not supported with this tool:
(Unsupported cloud / OBD2 GPS Trackers)[/doc/unsupported.md]Supported apps / cloud services:aika168.com /www.aika168.com- developed using this cloud service - worksgpscj.net / gps18.com - not sure - possibly it is workingWhat is next step?Right now I'm working on:Home Assistant device trackerApp for getting information about protocol between device and gateway at XX.aika168.com
Package: obeliks
Obeliks - sentence splitting & tokenizationInstalationInstall from PyPI:pipinstallobeliksUsageCommand line:obeliks-hCommand line parameters:-if <name*> read input from one or more files
-sif        read input from list of files, specified via stdin
-o <name>   write output to file <name>
-tei        produce XML-TEI output
-c		    produce CoNLL-U output
-d		    pass "newdoc id" to output (implies -c)Usage examples:obeliks"To je stavek.""Tudi to je stavek."echo-e"To je stavek.\nTudi to je stavek."|obeliksobeliks"To je stavek.""Tudi to je stavek."-ooutput.txtecho-e"To je stavek.\nTudi to je stavek."|obeliks>output.txtobeliks-iftext*.txtcattext*.txt|obeliksAs a Python module:importobelikstext='Pozdravljen, svet!'# Store results to stringoutput=obeliks.run(text,conllu=True)# Write result to fileobeliks.run(text,out_file='tei.txt',tei=True)# Write to stdoutobeliks.run(text,to_stdout=True,conllu=True)# Return objectobject=obeliks.run(text,object_output=True)# Read input from file(s)output=obeliks.run(in_file='in.txt',conllu=True)output=obeliks.run(in_files=['in1.txt','in2.txt'],tei=True)
Package: obelist
ObelistA CLI tool for generating standard annotations for linting tools, tests, and so on (including support for GitHub Actions)Table of contents:InstallationUsageAppendixEtymologyInstallationTheobelistpackage is published toPyPI.Because Obelist is primarily designed to be used as a CLI tool, we recommend that you install the package in an isolated virtual environment usingpipx, like so:$pipxinstallobelistHowever, if you want to install Obelist as a library, you can also install the package usingpip:$pipinstallobelistUsageFor basic usage information, run:$obelistFor more detailed help, run:$obelist--helpAppendixEtymologyTheobelusis a typographical mark used to "indicate erroneous or dubious content." TheOxford English Dictionary(OED) definesobelismas the "action or practice of marking something as spurious."Obelist, then, serves as both a verbal noun and a play on words: the program's output is, essentially,a list of obeluses.
Package: obelixtools
obelixtoolsInstall it withpip install obelixtoolsAPIThis is a small wrapper I wrote around the requests library. It has some extra features like a speedtest and connectivity check.Basic usefrom obelixtools import API
endpoint = API(url, 'json')
endpoint.query()
print(endpoint.content)Speedtest and connectivity check% python -m obelixtools
06-Oct-19 11:28:44 - obelixtools - INFO: Performing selftest with https://1.1.1.1
06-Oct-19 11:28:44 - obelixtools - INFO: Connected to the internet.
06-Oct-19 11:28:44 - obelixtools - INFO: Performing speedtest with http://speedtest.belwue.net/100M
06-Oct-19 11:29:11 - obelixtools - INFO: Connection speed is 3MB/sµVariables.url : strThe URL of the API..format : strDefine a certain data format for the data return by the API. This can by eitherjson,xmlor raw. Any other value will sit it to raw..contentThe content of the API response after postprocessing. Postprocessing happens by setting.formatMethods.query(url : str, optional) -> boolFetched the data from the API if the age of the existing data in .content is older than.last_update. This timeout is ignored ifurlis set (useful for speedtests)..check_connection(url='https://1.1.1.1', timeout=5) -> boolFetches the given url and and returns True if the servers returns a status code 200 and False otherwise. Comprehensive log messages are passed to the loggin module..speedtest(url='http://speedtest.belwue.net/100M') -> boolDownloads the file provided at the given url and returns the speed in bytes per second. The logging module received a log message with humand readable speed (e.g. kB/s, MB/s...)
Package: obelus
Obelus is a MIT-licensed Python library providing support for communication
with theAsterisktelephony server.  It
supports theAsterisk Manager Interface (AMI)and theAsterisk Gateway Interface (AGI).Quick linksProject page:https://pypi.python.org/pypi/obelus/Source code, issue tracker:https://bitbucket.org/optiflowsrd/obelusDocumentation (incomplete):https://obelus.readthedocs.orgFeaturesPython 2 and Python 3 support.AMI, FastAGI and Async AGI support.Event-driven API friendly towards non-blocking (“async”) network
programming styles.PEP 3156-style protocol implementations.Framework-agnostic.Adapters for theTornado,Twisted,Tulipnetwork programming
frameworks.Unit-tested.LimitationsThe API is currently low-level: it abstracts away protocol syntax and
communication sequences, but doesn’t try to expose Asterisk concepts
in a particular way.RequirementsPython 2.7, 3.2 or later.Optional requirementsTornado,TwistedorTulip, if you want to use one of the
corresponding adapters.ExamplesAMI clientSeveral example AMI clients are available for different frameworks:$ python -m obelus.ami.tornadoadapter -h
$ python -m obelus.ami.tulipadapter -h
$ python -m obelus.ami.twistedadapter -hFastAGI serverSeveral example FastAGI servers are available for different frameworks:$ python -m obelus.agi.tornadofastagi -h
$ python -m obelus.agi.tulipfastagi -hStudy the source codes for these modules for more information about
how to re-use the Obelus protocol classes in your own application.DevelopmentRunning the test suiteTo run the test suite with a single Python version, run:$ pythonX.Y -m obelus.testOn Python versions before 3.3, you will need to install themocklibrary.To run the test suite on all supported interpreters, installtoxand run:$ toxFAQWhy “Obelus”?Anobelusis a typographical
character, a bit like an asterisk.