Saravanan666/pypi-org huggingface dataset:
Package: python-okx
OverviewThis is an unofficial Python wrapper for theOKX exchange v5 APIIf you came here looking to purchase cryptocurrencies from the OKX exchange, please gohere.Source codehttps://github.com/okxapi/python-okxOKX API Telegramhttps://t.me/OKXAPIAPI trading tutorialsSpot trading:https://www.okx.com/help/how-can-i-do-spot-trading-with-the-jupyter-notebookDerivative trading:https://www.okx.com/help/how-can-i-do-derivatives-trading-with-the-jupyter-notebookMake sure you update often and check theChangelogfor new features and bug fixes.FeaturesImplementation of all Rest API endpoints.Private and Public Websocket implementationTestnet supportWebsocket handling with reconnection and multiplexed connectionsQuick startPrerequisitespython version：>=3.9WebSocketAPI： websockets package advise version 6.0Step 1: register an account on OKX and apply for an API keyRegister for an account:https://www.okx.com/account/registerApply for an API key:https://www.okx.com/account/users/myApiStep 2: install python-okxpipinstallpython-okxStep 3: Run examplesFill in API credentials in the corresponding examplesapi_key=""secret_key=""passphrase=""RestAPIFor spot trading: run example/get_started_en.ipynbFor derivative trading: run example/trade_derivatives_en.ipynbTweak the value of the parameterflag(live trading: 0, demo trading: 1
) to switch between live and demo trading environmentWebSocketAPIRun test/WsPrivateTest.py for private websocket channelsRun test/WsPublicTest.py for public websocket channelsUse different URLs for different environmentLive trading URLs:https://www.okx.com/docs-v5/en/#overview-production-trading-servicesDemo trading URLs:https://www.okx.com/docs-v5/en/#overview-demo-trading-servicesNoteTo learn more about OKX API, visit officialOKX API documentationIf you face any questions when usingWebSocketAPI,you can consult the following linksasyncio、websocketsdocument/github：https://docs.python.org/3/library/asyncio-dev.htmlhttps://websockets.readthedocs.io/en/stable/intro.htmlhttps://github.com/aaugustin/websocketsAboutcode=1006：https://github.com/Rapptz/discord.py/issues/1996https://github.com/aaugustin/websockets/issues/587
Package: python-okx-async
Aboutpython-okx-asyncis an unofficial Python wrapper for theOKX exchange v5 APIthat comes with async support.
The wrapper is an extension of thepython-okxpackage, which supports synchronous REST requests and websocket streams.InstallationTo install the package, runpip install python-okx-asyncQuick startCreate an OKX accountIf you don't already have an OKX account, register for one onhttps://www.okx.com/account/registerCreate API credentialsLog into your OK account and selectAPI keysin the user menuClick the+ Create V5 API keybuttonFollow the instructions to create API credentials (key, passhprase, secret)Save API credentialsIf there isn't a.envfile in your home directory, create one and make sure it can only be read and written to by you.touch ~/.env
chmod 600 ~/.envAdd the following lines to the.envfile, replacing the text to the right of the equal signs with the credentials created above. Note that the credentials should NOT be enclosed in quotation marks.OKX_API_KEY=<key>
OKX_API_PASSPHRASE=<passphrase>
OKX_API_SECRET=<secret>API credentials are stored in a.envfile for security reasons. It is not advisable to include API credentials directly in source code or to supply them as command line arguments.Run examplesImport and instantiate the API wrapper classAsyncTradeAPI, which is used for order placement, as shown below. You may first need to runpip install python-dotenvto install thedotenvpackage on your system.import os
from dotenv import load_dotenv
from okx_async.AsyncTrade import AsyncTradeAPI

load_dotenv()

tradeAPI = AsyncTradeAPI(os.getenv("OKX_API_KEY"), os.getenv("OKX_API_SECRET"), os.getenv("OKX_API_PASSPHRASE"))The other REST API classes can be instantiated similarly. Note that async classes are initialized with default argumentsflag='1'anddebug=True, i.e. async classes are by default in the OKX production environment and not in debug mode.For a complete example see theexample_order_book.pyfile included in the Github repository. The script prints the order book for the XCH-USDT spot market to a depth of 20 levels.Also make sure to check out the documentation ofpython-okx, and the additionalexamplesincluded in that repository.
Package: python-omega
Author:Timothy Allen <screwtape@froup.com>Website:https://gitlab.com/Screwtapello/python-omegaMailing-list:<python.omega@librelist.com>Licence:The Omega package and all associated documentation and example
code are placed under the GNU GPLv3. See the included fileLICENCEfor
details.IntroductionOmega is a framework designed to help you build parsers for text and binary
data. It creates a recursive-descent/Parsing-Expression-Grammar parser given
a description of the file-format in the concise Omega language, but if your
file-format can’t be described in pure Omega, it’s easy to extend with Python.For example, here’s a very simple parser for arithmetic expressions:>>> import omega
>>> class ArithmeticParser(omega.BaseParser):
...     __grammar = """
...             digit = '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7'
...                     | '8' | '9' ;
...             term = digit+:ds -> (int("".join(ds)))
...                     | '(' sum:s ')' -> (s)
...                     ;
...             product = term:a '*' product:b -> (a * b)
...                     | term:a '/' product:b -> (a / b)
...                     | term
...                     ;
...             sum = product:a '+' sum:b -> (a + b)
...                     | product:a '-' sum:b -> (a - b)
...                     | product
...                     ;
...         """And here it is in action:>>> ArithmeticParser.match("1")
1
>>> ArithmeticParser.match("1+1")
2
>>> ArithmeticParser.match("6*9")
54
>>> ArithmeticParser.match("2+3*4")
14
>>> ArithmeticParser.match("(2+3)*4")
20Omega is heavily based on ideas from Alessandro Warth’s [OMeta package][1] for
Smalltalk and JavaScript, but translated to fit as naturally as possible into
Python.[1]:http://tinlizzie.org/~awarth/ometa/RequirementsOmega is a pure-Python package, and requires only Python 3.4 or higher to be
installed.What’s In The BoxREADME.mdis this file.TODO.mdis a list of possible future additions to the package.LICENCEis the full text of the licence this software is released under,
the GPLv3.setup.pyis the standard Python packaging script.docsis a subdirectory containing all the documentation for Omega,
including language and library references, a Python API reference, and
a tutorial.examplesis a subdirectory containing various self-contained example
parsers written in Omega.omegais the Python package itself.InstallationOmega uses the standarddistutilspackaging system for Python, so if you have
a source tarball, you should be able to install it with:python setup.py install…and of course all the other standarddistutilscommands are available.DocumentationThe complete documentation is packaged with Omega source releases, and is also
available online athttps://gitlab.com/Screwtapello/python-omega/wikis/home
Package: python-omegle
Python-Omegle is an unofficial Python API for the Omegle text chat service.Features include:A high level, object-oriented API;An interface to three different types of chats;Support for over 90 languages;Simple library design with great extensibility.Python-Omegle was originally written in Python 3.6, and is confirmed to
work on Python 3.6, but likely works on all Python 3 releases.Getting StartedRequirementsPython-Omegle relies onthe Requests libraryto function properly.
If you don’t have Requests installed yet,pipwill install it
automatically. Alternatively, you caninstall it yourself.InstallingInstalling Python-Omegle is very easy! Simply run:pipinstallpython-omegle… or for apip3install:pip3installpython-omegleRunning the testsSome basic tests can be found in the ‘tests’ directory. Each chat type has its
own class and therefore its own testing file. Let’s test one of the classes:cdtests/python3random_chat_test.pyIf you wish to test all classes at once, simply run the following:python3all_tests.pyDocumentationOnce you’ve installed Python-Omegle, it’s time to take a look atthe documentation, where you will find a step by step tutorial,
some example programs and a complete API reference.LicensePython-Omegle is licensed under the MIT license. The full license
text can be foundhere.DisclaimerI can in no way be held responsible for your actions with regards to Python-Omegle.
Python-Omegle exists for educational purposes only. Use this tool responsibly.
Do not use it to engage in illegal activities, and do not use it to spam the Omegle
website. Also take a look at theOmegle terms of service, at the bottom of the page.
Package: python-omgeo
OMGeo - Python Editionpython-omgeois a geocoding abstraction layer written in python.  Currently
supported geocoders:US Census GeocoderBing Maps REST Locations APIESRI World Geocoding ServiceMapQuest Licensed Data APIMapQuest-hosted Nominatim Open Data APIPelias geocoder. Defaults to usegeocode.earthGoogle geocoderNoteCheck outthis project’s page on GitHub.Installation:sudo pip install python-omgeoDocumentationDocs are available inHTMLorPDFformat.Usage ExampleMake a new geocoder and geocode and address:>>> from omgeo import Geocoder
>>> g = Geocoder()
>>> result = g.geocode('340 12th St, Philadelphia PA')Take a look at the result:>>> result
{'candidates': [
  <340 S 12th St, Philadelphia, PA, 19107 (-75.161461, 39.94532) EsriWGS>,
  <340 N 12th St, Philadelphia, PA, 19107 (-75.158434, 39.958728) EsriWGS>
 ],
 'upstream_response_info': [<EsriWGS 1054ms>]}Take a closer look at the information in our address Candidate objects:>>> [c.__dict__ for c in result["candidates"]]
    [{'geoservice': 'EsriWGS',
      'locator': u'USA.AddressPoint',
      'locator_type': u'PointAddress',
      'match_addr': u'340 S 12th St, Philadelphia, PA, 19107',
      'score': 90.87,
      'wkid': 4326,
      'x': -75.161461,
      'y': 39.94532},
     {'geoservice': 'EsriWGS',
      'locator': 'interpolation',
      'locator_type': u'StreetAddress',
      'match_addr': u'340 N 12th St, Philadelphia, PA, 19107',
      'score': 90.87,
      'wkid': 4326,
      'x': -75.158434,
      'y': 39.958728}]Some geocoders (EsriWGS and US Census) can return address components in addition to the
full address:>>> [{'geoservice': 'EsriWGS',
    'locator': 'interpolation',
    'locator_type': u'StreetAddress',
    'match_addr': u'340 N 12th St, Phila, Pennsylvania, 19107',
    'match_city': u'Phila',
    'match_country': u'USA',
    'match_postal': u'19107',
    'match_region': u'Pennsylvania',
    'match_streetaddr': u'340 N 12th St',
    'match_subregion': u'',
    'score': 90.1,
    'wkid': 4326,
    'x': -75.158384,
    'y': 39.958774}]These are optional; their existence may change depending on the response from the geocoder.TestingThere is a shell script in the root of the repository calledtest.dummy.sh.
Copy it usingcp test.dummy.sh test.sh. Edittest.shto include the
API keys that you obtained from the given geocoding service providers. Then, run
the tests using./test.sh.
Package: python-omnilogic-local
Pyomnilogic LocalA library implementing the UDP XML Local Control api for Hayward OmniLogic and OmniHub pool controllersInstallationThis package is published to pypi athttps://pypi.org/project/python-omnilogic-local/:pip install python-omnilogic-localFunctionalityThis library is still under development and is not yet able to control every function of a Hayward pool controller.  The implemented functionality is:Pulling the MSP ConfigPolling telemetryPolling a list of active alarmsPolling filter/pump diagnostic informationPolling the logging configurationSetting pool heater temperatureTurning pool heaters on/offTurning other pool equipment on/off, including countdown timersSetting filter/pump speedControlling ColorLogic lights including brightness, speed, and selected shows, with support for countdown timersIf your controller has functionality outside of this list, please do not hesitate toOpen an IssueCreditsThe work on this library would not have been possible without the efforts ofdjtimcaandJohn Sutherland
Package: python-oneviewclient
Library to use HPE OneView to provide nodes for IronicThis library adds a communication layer between Ironic and OneView and
abstracts the version of OneView in place.Free software: Apache licenseDocumentation:http://docs.openstack.org/developer/python-oneviewclientSource:http://git.openstack.org/cgit/openstack/python-oneviewclientBugs:http://bugs.launchpad.net/python-oneviewclientFeaturesAudit loggingpython-oneviewclientis capable of logging method calls to OneView for
auditing. Currently, data about request timing and method names, parameters and
return values, can be recorded to be used in the auditing process to discover
and better understand hotspots, bottlenecks and to measure how the user code
and OneView integration performs.Enabling audit loggingTo enable audit logging, the user code has to set three parameters in the
constructor of the client object. namely:audit_enabled,audit_map_fileandaudit_output_file.audit_map_fileandaudit_output_filemust be
filled with the absolute path to the audit map file and the audit output file.The audit map fileThe audit map file is composed of two sections,auditandcases. In theauditsection there should be acaseoption where one, and just one, of
the audit loggingcasesneeds to be specified. Thecasessection needs
to be filled with a name for a case followed by the methods that the user wants
to audit logging. The methods that are allowed for the audit logging are those
decorated by@auditing.auditinpython-oneviewclient.See an example of an audit map file:[audit]

# Case to be audit logged from those declared in cases section.

case = case_number_one

[cases]

# Possible auditable case name followed by the audit loggable
# methods' names.

case_number_one = first_method,second_method,third_method
case_number_two = first_method,third_method,fifth_methodThe audit output fileThe result of the audit logging process is a JSON formatted file that can be
used by auditors, operators and engineers to obtain valuable information about
performance impacts of usingpython-oneviewclientto access OneView,
and better understand possible hotspots and bottlenecks in the integration of
the user code and OneView.See an example of an audit output file:{
    "method": "get_node_power_state",
    "client_instance_id": 140396067361488,
    "initial_time": "2016-08-29T17:32:01.403420",
    "end_time": "2016-08-29T17:32:01.439126",
    "is_ironic_request": true,
    "is_oneview_request": false,
    "ret": "Off"
}
Package: python-onix
python-onixA very simple module to provide dataclasses for EDItEUR's ONIX standards. Mostly generated usingxsdata.This module isn't even in the Alpha stage yet, and there may be breaking changes.Currently, only ONIX for Books is covered; but I may add ONIX for Subscription Products in the near future.InstallationInstall using pip:pipinstallpython-onixGetting StartedParse an ONIX filefromonix.book.v3_0.short.strictimportOnixmessagefromxsdata.formats.dataclass.parsersimportXmlParserparser=XmlParser()message=parser.parse("/some/path/file.onx",Onixmessage)
Package: python-opc
VERSION: 0.0.1d (first development release)STATUS (as of July 4 2013)First development release. Under active development.VisionA robust, general-purpose library for manipulating Open Packaging Convention
(OPC) packages, suitable as a foundation for a family of Open XML document
libraries. Also to be suitable for general purpose manipulation of OPC
packages, for example to access the XML and binary contents for indexing
purposes and perhaps for manipulating package parts, for example to remove
slide notes pages or to assemble presentations from individual slides in a
library.DocumentationDocumentation is hosted on Read The Docs (readthedocs.org) athttps://python-opc.readthedocs.org/en/latest/.Reaching outWe’d love to hear from you if you likepython-opc, want a new feature, find a bug,
need help using it, or just have a word of encouragement.Themailing listforpython-opcispython-opc@googlegroups.comTheissue trackeris on github atpython-openxml/python-opc.Feature requests are best broached initially on the mailing list, they can be
added to the issue tracker once we’ve clarified the best approach,
particularly the appropriate API signature.Installationpython-opcmay be installed withpipif you have it available:pip install python-opcIt can also be installed usingeasy_install:easy_install python-opcIf neitherpipnoreasy_installis available, it can be installed
manually by downloading the distribution from PyPI, unpacking the tarball,
and runningsetup.py:tar xvzf python-opc-0.0.1d1.tar.gz
cd python-opc-0.0.1d1
python setup.py installpython-opcdepends on thelxmlpackage. Bothpipandeasy_installwill
take care of satisfying that dependency for you, but if you use this last
method you will need to installlxmlyourself.Release HistoryJuly 4, 2013 - v0.0.1d1Establish initial enviornment and development branchesLicenseLicensed under theMIT license. Short version: this code is copyrighted by
me (Steve Canny), I give you permission to do what you want with it except
remove my name from the credits. See the LICENSE file for specific terms.
Package: python-opc-lite
python-opc-litepython-opc-lite is a light weight python library for Open Package Convention used for Open Office XML packagesOverviewThis library is used to deal with open office xml packages that follow Open Package Convention.It is used not only to read and write the packages but also to navigate through the parts of the package by relationshipsMore informationDocumentationQuickstartContributeIssuesPull requests
Package: python-openal
About PyALPyAL is a wrapper around the OpenAL library and as such similar to the
discontinued PyOpenAL project. In contrast to PyOpenAL, it has no
licensing restrictions, nor does it rely on C code, but uses ctypes
instead.Installationpip install python-openalor from source
* git clonehttps://github.com/JessicaTegner/PyAL.git* cd PyAl
* python setup.py installDocumentationIf you just started with OpenAL and PyAL, it is strongly recommended
that you read through theadvanced sound supportsection of the documentation
to understand, how OpenAL works in general. In any case, you can find the
documentation atdoc/htmlor online athttps://pyopenal.readthedocs.io/en/latest/LicenseThis library is given to the public domain. There are no licensing
restrictions. Please seedoc/copying.rstfor further details, if you need it.
Package: python-openapi-generator-cli-jar
OpenApi Generator PIP Package GeneratorOpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and
configuration automatically given an OpenAPI Spec (both 2.0 and 3.0 are supported). Please seeOpenAPITools/openapi-generatorThis project checks themaven repositoryonce a day for a new version and will publish this new version automatically as a python package.InstallationYou can install the package either in a virtual environment or globally.# install the latest version of "openapigenerator"pipinstallopenapigenerator# install a specific version of "openapigenerator"pipinstallopenapigenerator==4.2.0After installationopenapi-generatorcommand will be available in your virtual environment or globally
depending on your installationTo check the version, for example. Type the following command# this will print the correct version numberopenapi-generatorversionFurther DocumentationPlease refer to theofficial openapi-generator docsfor
more information about the possible arguments and a detailed usage manual of the command line interface.Like the package?Please leave a star.Have suggestions or feedback?Please raise an issue, happy to hear from you :)
Package: python-openctm
Python-OpenCTMPython Interface for the Open-CTM File FormatPython-OpenCTM is a Python interface for theOpenCTMfile format. A format that allows a geometry to be compressed to a fraction of comparable file formats (3DS, STL, COLLADA...).Pre-built python (3.5-3.10) wheels available forLinux,MacOSandWindowsInstallationpipinstallpython-openctmUsageimportopenctm# readmesh=openctm.import_mesh('foo.ctm')print(mesh.vertices.shape)# (124, 3)# writeopenctm.export_mesh(mesh,'bar.ctm')
Package: python-openctm-nightly
Python-OpenCTM (nightly)Native Python Reader/Writer for the Open-CTM File FormatPython-OpenCTM is a native Python reader/writer for theOpenCTMfile format. A format that allows a geometry to be compressed to a fraction of comparable file formats (3DS, STL, COLLADA...).Installationpipinstallpython-openctm-nightlyUsageimportopenctm# readmesh=openctm.load('box.ctm')print(mesh.vertices.shape)# (12, 3)# writemesh.export('box.ctm')
Package: python-opencv-utils
Python OpenCV UtilitiesPython OpenCV Utilities is a module that provides useful extensions.It contains useful and convenient features.DependenciesPython OpenCV Utilities requires:opencv-pythonpillowurllib3scikit-learninstallTo use the Python OpenCV Utilities algorithm, proceed as follows:pip install python-opencv-utilsYou userotateExfunction as follows:importcv2uascv2src=cv2.imread("image.jpg")dst=cv2.rotateEx(src,45)cv2.imshow("src",src)cv2.imshow("dst",dst)cv2.waitKey()srcdstYou useDBSCANfunction as follows:importcv2uascv2src=cv2.imread("image.jpg")maps,labels=cv2.DBSCAN(src,1.7,2)dst=cv2.drawDBSCAN(src,maps,labels)cv2.imshow("src",src)cv2.imshow("dst",dst)cv2.waitKey()srcdstYou useextensionsflag as follows:importcv2uascv2src=cv2.imread("image.jpg")dst=cv2.flip(src,cv2.FLIP_MODE_X)cv2.imshow("src",src)cv2.imshow("dst",dst)cv2.waitKey()featurescoreDBSCANdrawDBSCANgammaCorrectioncenterPointcartesianToPolarpolarToCartesianisInsideDHEdgerotateEximgcodecsurlreadmakeGradientimcolorimcolor_likeimgprocputTextExflagFLIP_MODE_XFLIP_MODE_YFLIP_MODE_XYAuthorsDaehee Yun(s076923@gmail.com)LicenseApache License 2.0
Package: python-opendata-transport
A Python client for interacting withtransport.opendata.ch.This module is the base for the integration intoHome Assistantand is simply retrieving the details about a given connection between two stations.This module is not official, developed, supported or endorsed by opendata.ch.InstallationThe module is available from thePython Package Index.$pip3installpython_opendata_transportOn a Fedora-based system or on a CentOS/RHEL 8 machine with has EPEL enabled.$sudodnf-yinstallpython3-opendata-transportFor Nix or NixOS users is a package available. Keep in mind that the lastest releases might only
be present in theunstablechannel.$nix-env-iAnixos.python3Packages.python-opendata-transportUsageThe fileexample.pycontains an example about how to use this module.Licensepython-opendata-transportis licensed under MIT, for more details check LICENSE.
Package: python-openevse-http
python-openevse-httpPython Library for OpenEVSE HTTP APIA python library for communicating with the ESP8266- and ESP32-based wifi module from OpenEVSE. This library uses the HTTP API commands to query the OpenEVSE charger.TODO:Finish testsFinish HTTP API functionsSetup webosocket listener for value updatesConvert to aiohttp from requestsExpose values as properties
Package: python-openexchangerates
The Open Exchange Rates API provides hourly-updated exchange (forex) rates, relative to US Dollars
(USD) in JSON format.It’s free for personal/small-scale use, and extremely cheap for apps, businesses and commercial projects.
You can sign up for anApp ID here.Sing up free.FeaturesWith a free account from openexchangerates.org you can:List available currencies (viewhttps://openexchangerates.org/api/currencies.json)Get hourly-updated exchange rates based in USD.Get historical exchange rates (since 1999) based in USD.Convert between available currencies.Convert between available currencies with historical exchange rates.Read the docs