Saravanan666/pypi-org huggingface dataset:
Package: pyptv3
pyptv3 - Access the Public Transport Victoria API with Python 3pyptv3 is a Python library that provides a light wrapper around version 3 of the Public Transport Victoria (PTV) API.The PTV Timetable API provides direct access to Public Transport Victoria’s public transport timetable data.The API returns scheduled timetable, route and stop data for all metropolitan and regional train, tram and bus services in Victoria, including Night Network(Night Train and Night Tram data are included in metropolitan train and tram services data, respectively, whereas Night Bus is a separate route type).The API also returns real-time data for metropolitan train, tram and bus services (where this data is made available to PTV), as well as disruption information, stop facility information, and access to myki ticket outlet data.Getting StartedYou will need a developer key from PTV. The instructions (in RTF format) arehere, though if you can't be bothered downloading that, the TL;DR is to send an email toAPIKeyRequest@ptv.vic.gov.auwith the following information in the subject line of the email.Installationpipinstallpyptv3ExampleAll API endpoints require a client object to be setup first. The client object takes your developer id and api key as arguments.frompyptv3importClientclient=Client("your developer id","your api key")As a general rule, required path parameters are passed as positional arguments, and optionals are passed as lists. See theswagger documentationfor more information.frompyptv3importClient,Departuresclient=Client("your developer id","your api key")departures=Departures(client,0,1341).by_route(4122,platform_numbers=[0,1],direction_id=1,look_backwards=False,gtfs=123,date_utc="2018-06-28T07:00:00Z",max_results=10,include_cancelled=True,expand=["stop","route"])print(departures)AsyncIO ExampleThere is a Async IO client if you want non-blocking behaviourimportasynciofrompyptv3importAsyncClient,Departuresloop=asyncio.get_event_loop()client=AsyncClient(loop,"your developer id","your api key")defmain():departures=awaitDepartures(client,0,1341).by_route(4122,platform_numbers=[0,1],direction_id=1,look_backwards=False,gtfs=123,date_utc="2018-06-28T07:00:00Z",max_results=10,include_cancelled=True,expand=["stop","route"])print(departures)loop.run_until_complete(main())loop.close()TODOpydocMap the parsed JSON object to Python objects.
Package: pyptz
PTZ Camera Control using PythonThis library is designed to control PTZ cameras using the ONVIF, VAPIX and SUNAPI.ONVIF (Open Network Video Interface Forum)is a global and open industry forum with the goal of facilitating the
development and use of a global open standard for the interface of physical IP-based security products.
ONVIF creates a standard for how IP products within video surveillance and other physical security areas can communicate
with each other.
ONVIF is an organization started in 2008 by Axis Communications, Bosch Security Systems and Sony.VAPIX®is Axis Camera API.SUNAPI®is Hanwha Camera API.Installationpip install pyptzONVIFfrompyptz.onvif_controlimportONVIFCameraonvif_camera=ONVIFCamera('192.168.1.100','88','admin','password')pan,tilt,zoom=onvif_camera.get_ptz_status()print(pan,tilt,zoom)VAPIXfrompyptz.vapix_controlimportVAPIXCameravapix_camera=VAPIXCamera('192.168.1.100','admin','password')pan,tilt,zoom=vapix_camera.get_ptz_status()print(pan,tilt,zoom)SUNAPIfrompyptz.sunapi_controlimportSUNAPICamerasunapi_camera=SUNAPICamera('192.168.1.100','admin','password')pan,tilt,zoom=sunapi_camera.get_ptz_status()[:3]print(pan,tilt,zoom)
Package: pypub3
pypubCreate epub's using Python.
Pypub is a Python library to create epub files quickly,
without having to worry about the intricacies of the epub specification.This package was originally forked and re-written based on WCember's Python 2
version, but due to a lack of response has been re-released as a new package
to support Python 3.The codebase has since gone through a few substantial rewrites and operates
as its own library moving forward.Installationpip install pypub3Quickstartimportpypubmy_first_epub=pypub.Epub('My First Epub')my_first_chapter=pypub.create_chapter_from_url('https://en.wikipedia.org/wiki/EPUB')my_first_epub.add_chapter(my_first_chapter)my_first_epub.create('./my-first-epub.epub')FeaturesPypub iseasy to installand has minimal dependencies.Pypubabstracts the epub specification.
Create epubs without worrying about what an NCX is.Pypub cancreate epubs from websites, html files, strings,
or a combination of all three.Pypub canclean up poorly formatted and complicated html,
so it will show cleanly as a chapter in your book.Pypubcreates epubs specifically so they can be converted into
Amazon Kindle mobi or azw3 files. Don't know which tags Amazon
supports? Don't worry about it because pypub does.Pypub iscustomizable. Don't like the way pypub sanitizes html
files for you ebook? Pypub can be configured with your own sanitation
function.Pypub islicensed under the MIT license. Do what you want with it.
Package: pypublibike
⚡️🚲 pypublibike - A python wrapper round the PubliBike APIpypublibike makes it easy to access the PubliBike API in your own Python projects.Quick Start$ pip install pypublibikeExamplesGetting a list of all PubliBike stationsfrompypublibikeimportpublibike,stationpb=publibike.PubliBike()forstationinpb.getStations():station.refresh()# refresh load data of stationebike=station.ebikes[0]# access the bikes/ebikes of the stationebike.batteryLevel# access information about a bikeFinding the nearest PubliBike stationfrompypublibikeimportpublibike,locationpb=publibike.PubliBike()ourLocation=location.Location(latitude=46.950043,longitude=7.443169)nearestStation=pb.findNearestStationTo(ourLocation)nearestStation.refresh()print(nearestStation.name)Getting HelpOpen a issue on GitHub if you run into any problemsContact me onTwitterTodoAPI documentationError handling
Package: pyPublicDecompWT
pyPublicDecompWTThis package provides python bindings for some ofEUMETSAT’s PublicDecompWTtools.WithpyPublicDecompWTcompressed xRIT (HRIT/LRIT) files can now be decompressed in-memory, directly with python!
Currently, only bindings for the toolxRITDecompressare available.
If you need other classes or functionalities, please open apull-request!This repository contains / mirrors the source code for the completePublicDecompWTtool, as well.
Additionally, we provide CMake build files.InstallationInstall pyxRITDecompress via pip:pipinstallpyPublicDecompWTThe following command will verify if the installation succeeded:python-c"import pyPublicDecompWT"RequirementsBuilding from sources requires C/C++, including compiler and standard library support.C/C++ Compiler, e.g. GNU-GCCCMakepybind11UsagefrompyPublicDecompWTimportxRITDecompress# the file to decompresscompressed_file_path="test-data/compressed_ref/H-000-MSG4__-MSG4________-HRV______-000012___-202105260000-C_"# Legacy decompression on disk of given file path,#  this will write the decompressed file to the current working directoryxRITDecompress(compressed_file_path)# In-memory decompression of given bufferwithopen(compressed_file_path,mode="rb")asfh:xRIT=xRITDecompress()xRIT.decompress(fh.read())uncompressed=xRIT.data()xRITDecompressTo comply with the original PublicDecompWT project, the pyPublicDecompWT package provides axRITDecompressexecutableas well.
OurxRITDecompressscript is a near drop-in replacement for the original.There are two changes:We are not writingDecompressed file ...tostdoutAs per UNIX convention, the short option-sis separated by a space, not by a colon.The former can be enabled by passing-vtoxRITDecompress, however, the latter can't be emulated.
Thus, the command line call has to be changed.In addition to the-soption we added a positional argumentfilesto enable batch processing of (multiple) files in a single call.$ xRITDecompress --help
usage: xRITDecompress [-h] [--version] [-v] [-s FILE] [files ...]

Command line tool for manual decompression of HRIT/LRIT files.

positional arguments:
  files          Name of compressed HRIT/LRIT file(s)

options:
  -h, --help     show this help message and exit
  --version      show program`s version number and exit
  -v, --verbose  Verbose mode
  -s FILE        Name of compressed HRIT/LRIT fileVersioning SchemeThe versioning scheme of the python bindings is the PublicDecompWT version with the additional version of the python bindings.Example: Version 1 of the python bindings for PublicDecompWT version 2.8.1 is 2.8.1.1
Package: pypublicwww
PUBLICWWW Python LibraryThis is a simple package to searchhttps://publicwww.com, you need a valid key to search in publicwwwInstallationpip3installpypublicwwwUsage as commandpublicwww[-h][-apikeyAPIKEY][-queryQUERY][-snippets][-output[OUTPUT]]action
positionalarguments:
actionSetaction:init,info,searchSEARCH EXAMPLESQuery for all Wordpress in domains .ar getting snippetspublicwwwsearch-query'site:ar "Wordpress"'-snippetsQuery for all Wordpress in domains .ar getting urlpublicwwwsearch-query'site:ar "Wordpress"'If you add -ouput you will get the results in result.csv or -output /tmp/whatever.csv to get the result in /tmp/whatever.csvUsage as libraryPrint account informationimportpypublicwwwapi=PyPublicWWW(apikey)print(api.info())Search for query and getting an export, you can add or not snippetsimportpypublicwwwpublicwww.=PyPublicWWW(apikey)publicwww._search_websites('site:ar "Wordpress"',csv=True,snippets=True)
Package: pypubmed
NCBI Pubmed ToolkitsRequirementsPython3.6+Installationpython3-mpipinstall-UpypubmedUsagesearchsearch Pubmed with termpypubmedsearch--help# do not translatepypubmedsearch-l5ngs# translate with a local proxiespypubmed-phttp://127.0.0.1:1081searchngs-l5advance-searchadvance search builderpypubmedadvance-search--helpcitationsgenerate citations for given PMIDpypubmedcitations--helpTodosHTML outputPDF downloaderGUI applicationLocal paper managerDocumentshttps://pypubmed.readthedocs.io/en/latest/
Package: pypubtrack
A python client for the pubtrack REST apiFree software: MIT licenseDocumentation:https://pypubtrack.readthedocs.io.Table of ContentsTable of ContentsTable of ContentsOverviewObtaining an API TokenFirst StepsInstallationBasic UsageBasic CLI UsageCreditsOverviewpypubtrackis a python client interface for thePubTrackweb applications. PubTrack is a web application, which can
be installed on a web server and which provides a web UI for tracking the scientific publications of a workgroup or
a whole institute by defining a list of observed authors. All publications published by any one of these observed
authors will be imported into the PubTrack database and a Status will be assigned based on the attributes of this
publication and a set of rules of how these attributes aresupposed tolook like.The PubTrack web app is implemented as a REST API for the backend and a VueJS single page application as the frontend.
As it exposes a REST API, there are vast options for this client interface to interact with the application…Obtaining an API TokenVisit the admin backend of the pubtrack site you are attempting to connect with. Navigate to the section “Tokens”
and create a new one. Use this token in your code to generate properly authenticated requests.First StepsInstallationpypubtrackis a pure python library and can be simply installed using pip:$pip3install--userpypubtrackTo use the CLI commands properly it is recommended to add the folder of local binary executables to the
system PATH:$echo'export PATH=~/.local/bin/:$PATH'>>~/.bashrc$source~/.bashrcAlternatively it can also be installed by cloning this repository from github and executing the setup manually:$gitclonehttps://github.com/the16thpythonist/pypubtrack.git$cdpypubtrack$python3setup.pyinstallBasic UsagefrompypubtrackimportPubtrackfrompypubtrack.configimportConfig# Getting a new instance of the config singletonconfig=Config().load_dict({'basic':{'url':'https://pubtrack.com/api/v1'},'auth':{'token':'MY SUPER SECRET TOKEN'}})# Creating the main access objectpubtrack=Pubtrack(config)try:publications=pubtrack.publication.get()['results']forpublicationinpublications:print(publication)exceptConnectionError:print('Something went wrong!')Basic CLI UsageIf the package was properly installed, thepypubtrackcommand should be available from the terminal. For further
information use ‘–help’ option.$pypubtrack--helpTo create an installation folder and a local configuration file use theinitcommand. The config file can be edited
with theconfigcommand. It will open in your favorite editor.$pypubtrackinit$pypubtrackconfigTo import scopus publications to your pubtrack app, use theimport-scopuscommand. To update existing publication
records on pubtrack with kitopen information, use theupdate-kitopencommand.$pypubtrackimport-scopus--verbose--start=2018$pypubtrackupdate-kitopen--verbose--start=2018(!) NOTETo use the pypubtrack application, the config file needs to be initialized and needs to contain valid information
about the pubtrack URL, authentication token, scopus api key etc…CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.
Package: pypuck
pypuckA program use for compile python package to portable executable (for windows only currently)Just like cxfreeze, pyinstaller or py2exe.This program have much different from those packager applications above. We package the python application with the full functional python environment without analyse your python application dependences, so you have to ensure your application’s dependences insetup.py.Certainly, we have our rules, only those python application that wrote  in standard python package layout will be packaged successed.If a python application could be installed by standard command:python setup.py installand theentry_pointshas been correct defined insetup.py, this python application could be packaged.License: Apache-2.0Documentation:https://pypuck.readthedocs.io.FeaturesPackage with winpython core, a full python environmentAlways use latest stable pythonNo special codes needs to changed just like you works with other packager applications (just like the__main__problems that works with cxfreeze)Preparation7-zip must be installed and the executable path must be placed into PATH environment variableUsageLook into the ‘helloworld’ example underexamplesdirectory which demonstrated how to structure your application.Then go to your project root, enter the command to build your first application:pypuck buildAfter successed, the application will be packaged under./distdirectory.Known IssuesOnly works under windows systemCreditsThis package was created withCookiecutterand thePyPackageTemplateproject template.History0.0.1 (2019-07-23)First release on PyPI.
Package: py-Puii
py-Puii LibraryInstallationpip3install-Upy-PuiiUsageCreate folders namedplugins,addons,assistantandresources.Add your plugins in thepluginsfolder and others accordingly.Create a.envfile with following mandatory Environment VariablesAPI_ID
API_HASH
SESSION
REDIS_URI
REDIS_PASSWORDCheck.env.samplefor more details.Runpython3 -m pyPuiito start the bot.Creating pluginsTo work everywhere@puii_cmd(pattern="start")asyncdef_(e):awaite.eor("Puii Started!")To work only in groups@puii_cmd(pattern="start",groups_only=True,)asyncdef_(e):awaiteor(e,"Puii Started.")Assistant Plugins 👇@asst_cmd("start")asyncdef_(e):awaite.reply("Puii Started.")
Package: pypulchra
Python bindings for the pulchra CA -> full bb trace library
README
======DescriptionModified PULCHRA 3.07 release for c++ / python library. Turn CA pdbs
into full-atom pdbsInstallationRequirementsA working c++ compiler (gcc/clang)pip install pypulchraUsageCommandlinepypulchra --input-pdb my.pdb --output-pdb out.pdbApiseepypulchra/__init__.pyNotes/TODOsBindings initially generated withhttps://github.com/RosettaCommons/binder[ ] add cif supportPULCHRA User’s ManualPowerfUL CHain Restoration Algorithm Version 3.07Copyright (c) 2000-2009 Piotr RotkiewiczPermission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
“Software”), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Package: pypulsepal
PyPulsePalPython API for the PulsePal open-source pulse train generatorThis package provides an API to thePulsePalhardware.
This API is a re-implementation of the originalPulsePal Python 3 APIthat draws from thepybpod-apicommunication protoool.Example usagescript/functionfrompypulsepalimportPulsePalserial_port="/dev/ttyACM0"# for unix or "COM"-style port names for Windows# Create PulsePal objectpp=PulsePal(serial_port=serial_port)# Set parameters## Manuallypp.program_one_param(channel=2,param_name="phase1Duration",param_value=.002)## Via convencience functionspp.set_resting_voltage(channel=2,voltage=4.2)# Upload parameterspp.upload_all()# Trigger channelspp.trigger_selected_channels(channel_2=True,channel_4=True)pp.trigger_all_channels()# Stop outputspp.stop_all_outputs()# Save settings (also done automatically on disconnect)pp.save_settings()as context managerimporttimefrompypulsepalimportPulsePalwithPulsePal(serial_port="/dev/ttyACM0")aspp:# set paramspp.upload_all()# do somethingtime.sleep(2)Writedefaultparams to all channelsfrompypulsepal.write_testsimportwrite_default_settingswrite_default_settings(serial_port="/dev/ttyACM0")Write (funky)testparams to all channelsfrompypulsepal.write_testsimportwrite_test_settings_for_manual_checkwrite_test_settings_for_manual_check(serial_port="/dev/ttyACM0")Installationpippipinstallpypulsepalgitgitclonehttps://github.com/larsrollik/pypulsepal.gitcdpypulsepal/
pipinstall-e.pip + gitpipinstallgit+https://github.com/larsrollik/pypulsepal.gitProblems & issuesPlease openissuesorpull-requestsin this repository.CitationPlease cite the originalPulsePalandPyBpodcode and publications that this package is based on.To citePyPulsePalwith a reference to the current version (as publicly documented on Zenodo), please use:Rollik, Lars B. (2021). PyPulsePal: Python API for the PulsePal open-source pulse train generator. doi:--doi--.BibTeX@misc{rollik2022pypulsepal,author={Lars B. Rollik},title={{PyPulsePal: Python API for the PulsePal open-source pulse train generator}},year={2022},month=mar,publisher={Zenodo},url={https://doi.org/--doi--},doi={--doi--},}License & sourcesThis software is released under theGNU GPL v3.0.This work is derived from theSanworks PulsePal Python API(commit: 5bb189f).The architecture of the API is imported and inspired by thepybpodapi.com.arcommodule from thepybpod-api.For changes from the original implementation, see the git history sincecommit 972bc1e.Useful code referencesPyBpod com ArCOMPyBpod com protocolPyBpod message headersPulsePal Python 3 APIPulsePal .ino filePulsePal param definitionsTODOSimplify parameter dicts indefinitions: into nested dict with first level for name, then standard sub-dict (default value, dtype, dtype legacy(model 1), scaling, )Complete API functions with all PulsePal opcodes, e.g. for Arduino logic levels (seePulsePal USB v2 opcode list)Move PulsePal hardware settings to init and remove defaults for easier upgrade in futureAPI function to accept list of dicts (from json settings file)to make overwrites on channels to get from value-based logic to channel parameter setsadd write function to save all settings to json for documentation
Package: pypums
pypumsDownload Public Use Micro Sample (PUMS) data files from the US Census Bureau's FTP server.UsageTo use PyPUMS in a project:or as a CLIInstallationInstall this library usingpip:pip install pypumsUsageUsage instructions go here.DevelopmentTo contribute to this library, first checkout the code. Then create a new virtual environment:cd pypums
python -m venv venv
source venv/bin/activateOr if you are usingpipenv:pipenv shellNow install the dependencies and test dependencies:pip install -e '.[test]'To run the tests:pytest📃 Citation@misc{pypums,
  author = {chekos},
  title = {Download Public Use Micro Sample (PUMS) data files from the US Census Bureau's FTP server.},
  year = {2020},
  publisher = {GitHub},
  journal = {GitHub repository},
  howpublished = {\url{https://github.com/chekos/pypums}}
}
Package: pypuns
PyPunsPuns for everyone to laugh at.About|Installation|Usage|Contributing|Contributors|Contacts|What's new?AboutPyPuns is a library that make you able to get random puns divided in various categories and languages.This library was made to fill the gaps left byPyJokesfor non-programming puns.I also took inspiration from their work for this repository.InstallationpipinstallpypunsYou can use pip to install this package.UsageImport thepypunsmodule and use theget_punfunction to get a random pun.importpypunspun=pypuns.get_pun()For further informations about theget_punfunction take a look at thewiki.ContributingYou can contribute to this project by adding new puns or by improving existing ones for the existing languages, or adding puns for a new language. Take a look atCONTRIBUTING.mdfor more information.ContributorsBunzContactsGmail:66bunz@gmail.comProtonmail:bunzen@protonmail.comDeviantArt: bunz66Github: 66BunzBuyMeACoffee: 66bunzSayThanks: 66BunzTwitter: 66BunzFacebook: Bunz66What's NewFirst Commit
Package: pypupil
pypupil (beta)Eye tracker (Pupil-labs) helper in Python3Calibration without World CameraRecord Pupil data and conversion to .mat fileSynchronization of both eye tracking dataAPI docsPypupil docsGetting StartedYou should read the official docs from Pupil-labs: how to setup pupil-labs eye trackerPupil labs docuentationPrerequisitesscipy, sklearn, numpy, zmq, msgpack, matlab, matplotlib
You can install all of those libraries via pipsuch aspip install scipyHow to useYou can use Command Line Interfacepython pypupil_main.pyor use the module with givenAPIBuilt WithSciPy- Python-based ecosystem of open-source software for mathematics, science, and engineeringscikit-learn- Simple and efficient tools for data mining and data analysisnumpy- NumPy is the fundamental package for scientific computing with PythonZeroMQ- A high-performance asynchronous messaging libraryMessagePack- MessagePack is an efficient binary serialization formatpython3-tk- TBUmatplotlib- TBUMATLAB- TBUAuthorsSuyeon Choi-OEQELAB, SNU-choisuyeonContact :0310csy@hanmail.net*ReferencesPupil-labs docsPupil-labs docs synchronizationAffine Transformer By Jarno Elonen