Saravanan666/pypi-org huggingface dataset:
Package: python-optix
Python-OptiXPython wrapper for the OptiX 7 raytracing engine.Python-OptiX wraps the original OptiX C-like API using Cython while aiming to provide a more
pythonic, object-oriented interface using theCuPypackage.Supported PlatformsOnly Linux is officially supported at the moment. Experimental windows support is available.OptiX VersionsPython-OptiX always supports the most recent version of the OptiX SDK.
The current version therefore supports OptiX 7.6.0InstallationDependenciesInstall a recent version of theCUDA Toolkitand theOptiX 7.6.0 SDKMake sure the CUDA header files are installed as well.Note, that for some variants of the CUDA Toolkit,
like the one installed by thecondapackage manager, these are not installed by default.conda-environments require the additionalcudatoolkit-devpackage.Environmentpython-optixrequires both the OptiX as well as the CUDA include path during setup as well as runtime
to compile the CUDA kernels. Therefore, it is necessary to either add both locations to the systemPATHor set theCUDA_PATHandOPTIX_PATHvariables to the respective locations.The setup additionally has the option to embed the OptiX header files into thepython-optixinstallation.
If the variableOPTIX_EMBED_HEADERSis set to1, the setup will copy the headers from the
OptiX SDK directory into the generated wheel.If this option was chosen during setup, setting theOPTIX_PATHis no longer required as the
embedded headers will be utilized then.Using pipexport OPTIX_PATH=/path/to/optix
export CUDA_PATH=/path/to/cuda_toolkit
export OPTIX_EMBED_HEADERS=1 # embed the optix headers into the package
python -m pip install python-optixFrom sourcegit clone https://github.com/mortacious/python-optix.git
cd python-optix
export OPTIX_PATH=/path/to/optix
export CUDA_PATH=/path/to/cuda_toolkit
export OPTIX_EMBED_HEADERS=1 # embed the optix headers into the package
python -m pip install [-e] .
Package: python-orange-sms
PYTHON ORANGE SMS GATE WAYOrange provides API to send SMS to some countries around the world, but using the API may take you a few hours.If you are a python developer, don't waste your time. Just use our package and save your time for other meaningful things.INSTALLpipinstallpython-orange-smsGET CREDENTIALSGo tohttps://developer.orange.com/and login or create a new accountGo tomy appsSelect your app or create a newappGet yourClient IDGet yourAuthorization headerGet yourApp NameUSAGEfrompython_orange_smsimportutilsSENDER_NAME='Name of your app'# Name of your app in dev consoleAUTH_TOKEN='Authorization header'# Authorization header from dev consolemessage="The sms message you want to send to the recipient"# Your messagerecipient_phone_number='243xxxxxxxxx'# a Receiver phone numberdev_phone_number='243xxxxxxxxx'# Sender (your phone number)#recipient_phone_number and dev_phone_number are international phone numbers without + or leading zeros:  format regex('^[1-9][\d]{10,14}$')sms=utils.SMS(AUTH_TOKEN=AUTH_TOKEN,)res=sms.send_sms(message=message,dev_phone_number=dev_phone_number,recipient_phone_number=recipient_phone_number)print(res)ifres.status_code==201:print('EVERYTHING RIGHT : ',res.text)# SMS sentelse:print('SAME THING WRONG : ',res.text)# OOPS
Package: python-orb-slam3
python-orb-slam3A Python wrapper for theORB-SLAM3feature extraction algorithm.InstallationFrom PyPINoteThis package's pre-built binaries are only available for AMD64 architectures.pipinstallpython-orb-slam3From sourceThere are a few steps to follow to install this package from the source code, please refer to the CI configuration fileherefor more details.Usageimportcv2frommatplotlibimportpyplotaspltfrompython_orb_slam3importORBExtractorsource=cv2.imread("path/to/image.jpg")target=cv2.imread("path/to/image.jpg")orb_extractor=ORBExtractor()# Extract features from source imagesource_keypoints,source_descriptors=orb_extractor.detectAndCompute(source)target_keypoints,target_descriptors=orb_extractor.detectAndCompute(target)# Match featuresbf=cv2.BFMatcher(cv2.NORM_HAMMING,crossCheck=True)matches=bf.match(source_descriptors,target_descriptors)# Draw matchessource_image=cv2.drawKeypoints(source,source_keypoints,None)target_image=cv2.drawKeypoints(target,target_keypoints,None)matches_image=cv2.drawMatches(source_image,source_keypoints,target_image,target_keypoints,matches,None)# Show matchesplt.imshow(matches_image)plt.show()LicenseThis repository is licensed under theGPLv3license.A Python wrapper for the ORB-SLAM3 feature extraction algorithm.
Copyright (C) 2022  Johnny Hsieh

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, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.
Package: python-ordered-uuid
python-ordered-uuidOverrides Python’s UUID class to implement “Ordered UUID”.For more info about “Ordered UUID” see:https://www.percona.com/blog/2014/12/19/store-uuid-optimized-way/Supports both Python 2 & 3.Usagefrom ordered_uuid import OrderedUUID

hex_string = 'cdef89ab012345670123456789abcdef'
OrderedUUID(hex_string)

some_bytes = b'\xcd\xef\x89\xab\x01\x23\x45\x67\x01\x23\x45\x67\x89\xab\xcd\xef'
OrderedUUID(bytes=some_bytes)

fields = (0x12345678, 0x1234, 0x5678, 0x12, 0x34, 0x567812345678)
OrderedUUID(fields=fields)Installationpip install python-ordered-uuid
Package: python-osc
Open Sound Control server and client implementations inpure python.Current statusThis library was developed following theOpenSoundControl Specification 1.0and is currently in a stable state.FeaturesUDP blocking/threading/forking/asyncio server implementationsUDP clientint, int64, float, string, double, MIDI, timestamps, blob, nil OSC argumentssimple OSC address<->callback matching systemextensive unit test coveragebasic client and server examplesDocumentationAvailable athttps://python-osc.readthedocs.io/.Installationpython-osc is a pure python library that has no external dependencies,
to install it just use pip (prefered):$pipinstallpython-oscExamplesSimple client"""Small example OSC client

This program sends 10 random values between 0.0 and 1.0 to the /filter address,
waiting for 1 seconds between each value.
"""importargparseimportrandomimporttimefrompythonoscimportudp_clientif__name__=="__main__":parser=argparse.ArgumentParser()parser.add_argument("--ip",default="127.0.0.1",help="The ip of the OSC server")parser.add_argument("--port",type=int,default=5005,help="The port the OSC server is listening on")args=parser.parse_args()client=udp_client.SimpleUDPClient(args.ip,args.port)forxinrange(10):client.send_message("/filter",random.random())time.sleep(1)Simple server"""Small example OSC server

This program listens to several addresses, and prints some information about
received packets.
"""importargparseimportmathfrompythonosc.dispatcherimportDispatcherfrompythonoscimportosc_serverdefprint_volume_handler(unused_addr,args,volume):print("[{0}] ~{1}".format(args[0],volume))defprint_compute_handler(unused_addr,args,volume):try:print("[{0}] ~{1}".format(args[0],args[1](volume)))exceptValueError:passif__name__=="__main__":parser=argparse.ArgumentParser()parser.add_argument("--ip",default="127.0.0.1",help="The ip to listen on")parser.add_argument("--port",type=int,default=5005,help="The port to listen on")args=parser.parse_args()dispatcher=Dispatcher()dispatcher.map("/filter",print)dispatcher.map("/volume",print_volume_handler,"Volume")dispatcher.map("/logvolume",print_compute_handler,"Log volume",math.log)server=osc_server.ThreadingOSCUDPServer((args.ip,args.port),dispatcher)print("Serving on{}".format(server.server_address))server.serve_forever()Building bundlesfrompythonoscimportosc_bundle_builderfrompythonoscimportosc_message_builderbundle=osc_bundle_builder.OscBundleBuilder(osc_bundle_builder.IMMEDIATELY)msg=osc_message_builder.OscMessageBuilder(address="/SYNC")msg.add_arg(4.0)# Add 4 messages in the bundle, each with more arguments.bundle.add_content(msg.build())msg.add_arg(2)bundle.add_content(msg.build())msg.add_arg("value")bundle.add_content(msg.build())msg.add_arg(b"\x01\x02\x03")bundle.add_content(msg.build())sub_bundle=bundle.build()# Now add the same bundle inside itself.bundle.add_content(sub_bundle)# The bundle has 5 elements in total now.bundle=bundle.build()# You can now send it via a client as described in other examples.License?Unlicensed, do what you want with it. (http://unlicense.org)
Package: python_osinfo
Small python module to retrieve OS information in a unified wayInformation retrievedSystem type: Windows, GNU/Linux, etc.OS name: Debian, Windows, Ubuntu, etc.OS version: XP, 2003 Server, 11.04, etc.OS architecture: 32 or 64 bitTested OSesArchLinuxCentOS 5, 6, 7Debian 7, 8Fedora 20openSUSE 13.1RedHat Enterprise Linux 5, 6, 7SuSE Linux Enterprise Server 11 SP1/SP3Ubuntu (and Ubuntu Server) 12-15Windows XPWindows 7Windows 2003 ServerWindows 2008 ServerMac OS X 10.9 (Mavericks)
Package: python-osrsapi
OSRS API WrapperAllows simple access to Oldschool Runescape's API. Currently supports the only two APIs OSRS has. (Hiscores and GE)Installpip install python-osrsapiDev Installmake devHiscores>>>fromosrs_api.constimportAccountType>>>fromosrs_apiimportHiscores>>>zezima=Hiscores('zezima')>>>zezima.skills{'attack':Skill(name=attack,rank=614026,level=76,xp=1343681),'defence':...}>>>zezima.skills['attack'].level76>>>zezima.skills['attack'].xp_tnl()131900>>>zezima.max_skill().name'firemaking'>>>defmaxed_skills(hiscore,skill):...returnhiscore.skills[skill].level==99>>>zezima.filter(maxed_skills){'firemaking':Skill(name=firemaking,rank=108780,level=99,xp=13034646)}>>>lynx=Hiscores('Lynx Titan')>>>mammal=Hiscores('mr mammal')>>>lynx>mammalTrue>>>iron_mammal=Hiscores('iron mammal',AccountType.IRONMAN)>>>iron_mammal.rank1052Grand Exchange>>>fromosrs_apiimportGrandExchange>>>fromosrs_apiimportItem>>>whip_id=Item.get_ids('abyssal whip')>>>whip_id4151>>>whip=GrandExchange.item(whip_id)>>>whip.description'A weapon from the abyss.'>>>whip.price(),whip.is_mem(1648785,True)>>>thirty_days=whip.price_info.trend_30>>>thirty_days.trend,thirty_days.change('negative',-18.0)>>>dagger_ids=Item.get_ids('rune dag')# If you enter a partial name, you will get a list of all possible matches.>>>dagger_ids[5696,5678,1229,1213]# Names>>>[Item.id_to_name(id)foridindagger_ids]['Rune dagger(p++)','Rune dagger(p+)','Rune dagger(p)','Rune dagger']>>>GrandExchange.item(dagger_ids[0]).description'The blade is covered with a nasty poison.'
Package: python-ote
python-oteElectricity prices scraper for OTE (ote-cr.cz)Installpip install python-oteIn order to parse numbers corrently (Czech notation - e.g. 1,000,000) this
package needs thecs_CZ.UTF-8system locale. If the OS doesn't have it by default
the following commands can be used generate it:echo "cs_CZ.UTF-8 UTF-8" >> /etc/locale.gen
locale-genUsagefrom ote import Ote
from dateutil import parser

# Create client
ote = Ote()UsegetDayMarketPrices(date_from, date_to)method to get electricity prices
for the given time range. It accepts adate_fromand optionally adate_to,
both of which have to be adatetime.dateobject. Ifdate_tois not specified the method returns data to today.Examples:# Get water consumption data from the specified date to now.
date_from = parser.parse('2020-08-01').date()
deferred_data = ote.getDayMarketPrices(date_from);

# Get water consumption data for a date interval
date_from = parser.parse('2020-08-01').date()
date_to = parser.parse('2020-08-11').date()
deferred_data = ote.getDayMarketPrices(date_from, date_to);

# Get water consumption data for a specific date (just 1 day)
date = parser.parse('2020-08-01').date()
deferred_data = ote.getDayMarketPrices(date, date);You may callgetDayMarketPricesmultiple times with different parameters. It
returns atwisted.internet.defer.Deferredobject that can be used to retrieve the price data in the future using a
callback you need to provide.def process_prices(prices)
  print(prices)

deferred_data.addCallback(process_prices)If you have multipleDeferreds from multiple calls togetDayMarketPricesyou can useOte.join()to get aDeferredthat will be resolved after all
crawlers are finished.The last callback should stop the reactor so it's shut down cleanly. Reactor
should be stopped after all crawlers are done so thejoin()method comes in
handy. Note that the reactor cannot be restarted so make sure this is the last
thing you do:from twisted.internet import reactor

d = ote.join()
d.addBoth(lambda _: reactor.stop())The last thing you need to do is run the reactor. The script will block until
the crawling is finished and all configured callbacks executed.reactor.run(installSignalHandlers=False)This might look a bit daunting so please seetest.pyfor a complete example.Keep in mind the library is usingScrapyinternally which
means it is scraping the OTE website. If OTE comes to think you are abusing the
website they may block your IP address.LicenseSeeLICENSE.
Package: python-otopi-mdp
python-otopi-mdpotopi Machine Dialog Parser for pythonThis module allows you automate installation process based onotopiinstallator.Requirementssix
otopiWARNING: The otopi package is not hosted on PyPi site, so it couldn’t
be included as dependency of this package. It is maintaned by oVirt community,
they ship this module for several package managements.UsageSet otopi environment to enable machine dialectDIALOG/dialect=str:machineSpawn desired installer and pass stdin and stdout to parserProcess all otopi events in the loopExample for oVirt Hosted Engineimportsubprocessimportotopimdpasmdp# 1. Set machine dialog optionwithopen("/etc/ovirt-hosted-engine-setup.env.d/mycustom.env")asfd:fd.write('export environment="${environment}DIALOG/dialect=str:machine"\n')# 2. Spawn installerinstaller=subprocess.Popen(["hosted-engine","--deploy"])parser=mdp.MachineDialogParser(input_=installer.stdout,output=installer.stdin)# 3. Process eventswhileTrue:event=parser.next_event()ifeventisNone:continueevent_type=event[mdp.TYPE_KEY]ifevent_type==mdp.TERMINATE_EVENT:breakevent_name=event[mdp.ATTRIBUTES_KEY]['name']ifevent_name=="OVEHOSTED_HOST_ID":event[mdp.REPLY_KEY]="1"....parser.send_response(event)Run teststoxNOTE:For testing purposes, the otopi package is being run from sources.
Package: python-otr
This package implements the Off-The-Record Messaging protocol in pure python.Off-The-Record Messaging (OTR) is a cryptographic protocol that provides
encryption for instant messaging conversations. OTR uses a combination of
AES symmetric-key algorithm with 128 bits key length, the Diffie–Hellman
key exchange with 1536 bits group size, and the SHA-1/SHA-256 hash functions.Features of the OTR protocol:End-to-end encryption: No one else can read your messages.Authentication: The correspondent’s identity can be verified.Deniability: The messages you send do not have digital signatures that can
be checked by a third party. Anyone can forge messages after a conversation
to make them look like they came from you, however during the conversation
your correspondent is assured that the messages he sees coming from you are
authentic and unmodified.Perfect forward secrecy: If you lose control of your private keys, you are
assured that no previous conversation is compromised.This package implements the version 2 and 3 of the OTR protocol.
For more details seehttps://otr.cypherpunks.ca/
Package: python-ottawa-transit
python-ottawa-transitPython interface to theOC TranspoAPI and utilities for working with the returned data.InstallationThe package is available onPyPipipinstallpython-ottawa-transitAlternativly it can be installed from source usingPoetrygitclonehttps://github.com/buckley-w-david/python-ottawa-transit.gitcdpython-ottawa-transit
poetryinstallUsage>>>frompython_ottawa_transitimportOCTransportApi>>>api=OCTransportApi(app_id='APPLICATION_ID',app_key='APPLICATION_KEY')>>>api.get_route_summary_for_stop(stop_no=8435){"GetRouteSummaryForStopResult":{"StopNo":"8435","StopDescription":"BANK\\/ COLLINS","Error":"","Routes":{"Route":{"RouteNo":6,"DirectionID":1,"Direction":"Northbound","RouteHeading":"Rockcliffe"}}}}
Package: python-outbreak-info
python-outbreak-infoWelcome to the python package foroutbreak.info!Outbreak.infois a platform from theHughes,Su,Wu, andAndersenlabs at Scripps Research for the unification and exploration of SARS-CoV-2 genomic and epidemiology data. It's powered by data provided byGISAID.Complete documentation for use, including installation, can be foundhere.
Package: python-outline
python-outlineis a best python wrapper forOutline API.It is a simple and easy to use wrapper for the Outline API.How to usefromoutline.clientimportOutlineClientclient=OutlineClient(base_url="https://localhost:777/secretpath")new_key=client.new()new_key.rename("This is a new name")# set a data limit of 1GBnew_key.change_data_limit(1000000000)new_key.url("my key with 1GB limit")# ss://example@example.com/?outline=1#my key with 1GB limit
Package: python-outreach
Python-OutreachPython wrapper functions for Outreach APIs, tested with Python 3.8 - 3.9.This python client wrapper helps connects outreach API by authentication flow, any request use two distinct
sets of credentials. The API key and secret identify the requester.Quick StartInstallationDependent libraries The following dependent libraries were installed.pip install singer-python
pip install requestsInstall from pypi using pippip install python-outreachClone this repository, and then install using setup.py. Recommend using a virtualenv:>virtualenv-ppython3venv
>sourcevenv/bin/activate
>pythonsetup.pyinstall
OR
>cd.../python-outreach
>pipinstall.Set the environment variables,refresh_token,redirect_uri,client_id, andclient_secretare the credentials need to set for outreach client. More details for Authentication ishereexport client_id=<Application_Identifier>
export client_secret=<Application_Secret>
export redirect_uri=<Application_Redirect_URI>
export refresh_token=<Refresh_Token>To work with the API client, we start with theOutreachClientclass:connect_config={'user_agent':'','client_id':environ['OUTREACH_CLIENT_ID'],'client_secret':environ['OUTREACH_CLIENT_SECRET'],'redirect_uri':environ['OUTREACH_REDIRECT_URI'],'refresh_token':environ['OUTREACH_REFRESH_TOKEN'],'quota_limit':9999}or_client=OutreachClient(connect_config)To Fetch prospects by email address or prospect id useor_client.get(path=f'prospects?filter[emails]={:email}')# oror_client.get(path=f'prospects/{:id}')To Create new prospects or update existing# To Create Newor_client.post(path=f'prospects',json={"data":{"type":"prospect","attributes":{:Prospect_rec_attributeskey:value}}})# For updateor_client.update(path=f'prospects/{prospect_id}',json={"data":{"type":"prospect","id":int(prospect_id),"attributes":prospect_rec}})Feature requestsTo request a new feature in this package, please open a new issue on the Github repo. To report problems, please open a new issue on the Github repo.ContributionPull requests are welcomed! All pull requests must have the following:OK global score from pylint using PEP8 standardsThis one is a bit loose for now given that the old code is still a mess; once the renovation is complete, we will implement a minimum passing pylint scorePassing unit tests (nosetests) that cover the included use cases and pass the current tox config
Package: python-overwatch
An Overwatch stat scraper designed for ease of use.
Plug in a battletag, select the desired hero and filter, and call the function.
The data will be returned as a list, ready to manipulate and use as you wish.Installationpip install python-overwatchRequirementsPython 3.6UsageModes:qpcpFilters:combat,assists,best,average,deaths,matchawardsgame,miscellaneous,herospecific# Default filter: 'best'# Default mode: 'qp'ExamplesFind play time for all heroesfromoverwatchimportOverwatchoverwatch=Overwatch(battletag="Okush#11324")print(overwatch.playtime)['Pharah','40 hours','Roadhog','32 hours','Mei','29 hours','McCree','20 hours','Soldier: 76','17 hours','Mercy','13 hours',]Find hero specific statsfromoverwatchimportOverwatchoverwatch=Overwatch(battletag="Okush#11324")print(overwatch(hero="mei",filter="hero specific))['Enemies Frozen','1,885','Enemies Frozen - Most in Game','30','Blizzard Kills - Most in Game','13','Blizzard Kills','587','Damage Blocked - Most in Game','12,569','Damage Blocked','442,710','Melee Final Blows - Most in Game','4','Enemies Frozen - Average','10.73','Damage Blocked - Average','2,521','Blizzard Kills - Average','3.34']Find overall best statsfromoverwatchimportOverwatchoverwatch=Overwatch(battletag="Okush#11324")print(overwatch())['Eliminations - Most in Game','48','Final Blows - Most in Game','31','Damage Done - Most in Game','23,924','Healing Done - Most in Game','14,379','Defensive Assists - Most in Game','26','Offensive Assists - Most in Game','8','Objective Kills - Most in Game','32','Objective Time - Most in Game','04:22','Multikill - Best','5','Solo Kills - Most in Game','31','Time Spent on Fire - Most in Game','13:29']Find combat stats for any herofromoverwatchimportOverwatchoverwatch=Overwatch(battletag="Okush#11324")print(overwatch(hero="dva",filter="combat"))['Eliminations','541','Deaths','149','Final Blows','264','Solo Kills','89','All Damage Done','220,531','Objective Kills','172','Objective Time','30:47','Multikills','9','Environmental Kills','2','Melee Final Blows','5','Time Spent on Fire','36:05','Critical Hits','4,436','Hero Damage Done','3,111','Barrier Damage Done','3,827','Critical Hit Accuracy','8%','Weapon Accuracy','31%']]Specify you want competitive mode statsfromoverwatchimportOverwatchoverwatch=Overwatch(battletag="Okush#11324")print(overwatch(mode="cp",hero="pharah",filter="best"))['Eliminations - Most In Life, '12','All Damage Done - Most In Game','6,943','Weapon Accuracy - Best In Game','65%','Kill Streak - Best','12','All Damage Done - Most In Game','37,699','Eliminations - Most In Game','61','Final Blows - Most In Game','45','Objective Kills - Most In Game','33','Objective Time - Most In Game','01:27','Solo Kills - Most In Game','7']
Package: python-ovrsdk
Cross-platform wrapper for the Oculus VR SDK C APIWorks on Linux and Windows. Precompiled Oculus VR SDK shared library included, so just install it and go.Installationpip install python-ovrsdkUseimporttimefromovrsdkimport*ovr_Initialize()hmd=ovrHmd_Create(0)hmdDesc=ovrHmdDesc()ovrHmd_GetDesc(hmd,byref(hmdDesc))printhmdDesc.ProductNameovrHmd_StartSensor(\hmd,ovrSensorCap_Orientation|ovrSensorCap_YawCorrection,0)whileTrue:ss=ovrHmd_GetSensorState(hmd,ovr_GetTimeInSeconds())pose=ss.Predicted.Poseprint"%10f%10f%10f%10f"%(\pose.Orientation.w,pose.Orientation.x,pose.Orientation.y,pose.Orientation.z)time.sleep(0.016)Output:Oculus Rift DK1
  1.000000     0.000000     0.000000     0.000000
  0.992197     0.124599    -0.000122     0.004537
  0.992192     0.124621     0.000212     0.004909
  0.992168     0.124852     0.000430     0.003814
  0.992249     0.124183    -0.000085     0.004583
  0.992164     0.124768     0.000595     0.006597
  0.992263     0.124067    -0.000134     0.004630
  0.992276     0.123989     0.000412     0.003885
  0.992275     0.123943     0.000745     0.005242
  0.992168     0.124891     0.001882     0.001237
  0.992377     0.123240    -0.000291     0.000687
  0.992316     0.123698    -0.000632     0.002837
  0.991962     0.126352     0.000245     0.006768
...CreditsOculus VR, for being awesome and making a C API for their SDK.The authors of ctypesgen (https://code.google.com/p/ctypesgen/) for
their outstanding ctypes wrapper generator.