Saravanan666/pypi-org huggingface dataset:
Package: python-chess-toc
python-chess-tocCreate a graphical table of contents for chess games with engine analysisThechesstocpackage takes a PGN file and generates an HTML file with a graphical table of contents for the PGN
file. Each table entry is a board with the final position for a game,
superimposed with the plot of the engine evaluation function.For example,python3 -m chesstoc --time 1.0 --html candidates.html candidates.pgn --col 2analyzes the games from candidates.pgn, spending one second per move, and produces an HTML file with a two-column table that looks like this:Installationpip install python-chess-tocDependenciespython 3python-chessjinja2matplotlibsvgutilsa UCI chess engine (only tested with Stockfish)AcknowledgementsMany thanks to the authors of all the packages above. The present package is merely a thin layer of glue that getspython-chessto do the parsing, talking to the engine, and board rendering, and then feeds the numbers intomatplotlibandsvgutilsto produce the figures, and finally usesjinja2to generate the HTML. Also, I borrowed the opening database fromhttps://github.com/niklasf/ecoand borrowed some ideas fromhttps://github.com/rpdelaney/python-chess-annotator.Licensepython-chess-toc is licensed under the GPL 3 (or any later version at your option). Check out LICENSE.txt for the full text.
Package: python-chianode
AboutPython-chianode is a Python wrapper forChia blockchainfull node APIs.The package supports theofficial RPC APIfor Chia nodes running on localhost, as well as theMojonode API. Calls are made asynchronously, and it is possible to receive streaming responses.Mojonode provides advanced REST calls not available via the official RPC interface, blockchain data via SQL query, and an event stream for blockchain and mempool events. Note that Mojonode does not implement all official RPCs. Theget_routesendpoint returns a list of available endpoints.InstallationTo install python-chianode, runpip install python-chianodeQuick startImport and instantiate the Chia node client in your Python file as followsfrom chianode.mojoclient import MojoClient

node = MojoClient()By default, both MojoClient and RpcClient connect to Mojonode. To connect to a local node only, dofrom chianode.rpcclient import RpcClient
from chianode.constants import LOCALHOST

node = RpcClient(base_url=LOCALHOST)To use Mojonode in conjunction with a local node, dofrom chianode.mojoclient import MojoClient
from chianode.constants import LOCALHOST

node = MojoClient(base_url=LOCALHOST)More detailed examples on how to use the wrapper can be found inexample_rpc.pyandexample_events.pyfiles.
Package: python-chips
👾 ChipsHandsome testing tool. It inserts "chips" to your code, detecting unused fragments. Then shows unused functions in a pretty table.Visitchips gitto see the insightsInstallationUse the package managerpipto install Chipspipinstallpython-chipsSetup ChipsBy default chips setups everything for you, after-scommand. If you are running into problems, use args below.-v --venv <on/off>Defaults toon. Determine whether you are using virtualenv or not. If set toonChips will search for a virtualenv on a root path.Note:if--venv off, you should run commands below withpython -m chipsinstead of$chips-p --path <YOUR_VIRTUALENV_PATH>Specify virtualenv path if venv not foundpython-mchips-sOpen a new tab in terminal or runsource <YOUR_VIRTUALENV_PATH>/bin/activateUsageBEFORE YOU START:If you want to fully "chip" a big project (not a single app directory), it's highly recommended
to use--auto offwith-acommand, for improving project performance. Learn more about--autooption below.Add chips to your project (-a --add)$chips-aUse your code (trigger functions in a way: make api requests, click website, etc..)Generate results file with$chips -rs(only if--auto offon-a). See the generated results at .chipping_results/results.py in a pretty tableRemove chips (-r --remove)$chips-rIgnore particular dirs and filesTo exclude particular dirs and files from chipping (f.e. tests and manage.py in Django)
Chips generates a .chipsignore file, based on your .gitignore. Syntax is the same.There's a basic excludes list in .chipsignore. You can modify it any time you want.Full ignores listhereChipping pathBasically Chips are performing on a root path of your project. You can specify a folder or filelocal path, where you want Chips to perform (add or remove). Use -p --path arg.$chips-a-p<DESIREDPATH>Bad performanceIf you struggle from a bad performance after chipping, use --auto off to turn off auto generated results$chips-a--autooffThen you'll need to generate results manually (-rs --results)$chips-rsChips loggingChoose logging type. Can be applied to remove and add (-rt --result_type)list (default for add) - list all affected files,count (default for remove) - print number of files affected,blind - no output$chips-a-rtcountContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.git here
Package: python-chordpro
python-chordprois a ChordPro parser, written in Python. The main difference between this module
and other similar libraries is thatpython-chordproparses ChordPro files down to the syllable
level, enabling finer-grained control of the formatted output.WarningThis package is still in development. Only a subset of ChordPro is currently supported, and
some key features are missing, like displaying song metadata.InstallationYou can usepipto installpython-chordpro:$ pip install python-chordproExample UsagefromchordproimportSongsong=Song('path/to/song.chordpro')forverseinsong.verses:print(verse.title)Renderingpython-chordprocomes with two renders, HTML and Text.fromchordpro.renderers.htmlimportrenderprint(render(song))Command Line Interfacepython-chordproalso ships with a built-in command line interface which will read a ChordPro
file and then render it using either the text or HTML renderer.For example:$ python-chordpro path/to/song.chordpro -f text -o song.txtLicensepython-chordprois licensed under the MIT license. See the LICENSE file for more information.
Package: python-chrono
python-chrono is a Python module for simple and convenient date/time
handling, including parsing, arithmetic, comparison, formatting,
and calendar functionality. It supports both the ISO and US calendars,
and dates/times in ISO, US, and european formats.This software is licensed under the terms of the GNU General Public
License version 3, the full text is available in the file LICENSE.See the python-chrono website for more information:http://oss.codepoet.no/python-chrono
Package: python-chronos
ChronosSimple and easy to use time-related utility functions.These are simple routines we caught ourselves constantly in need when developing projects inHackt. They're all a combination of native Python libraries that we wanted to standardize in a standlone library.UsageInstall from PyPI:pipinstallpython_chronosImport in your project(s):importchronosGet current UTC timestamp (datetimetype)chronos.utc_now()# datetime.datetime(2021, 2, 2, 3, 59, 11, 856368)UTC timestamp (integertype)chronos.utc_timestamp()# 1612238428Past/Future UTC (datetimetype)The following function adds 10 minutes to the current UTC datetime:chronos.future_utc_datetime(minutes=10)# datetime.datetime(2021, 2, 2, 4, 14, 3, 573054)Similarly, thepast_utc_datetimefunction does exactly what you have in mind:chronos.past_utc_datetime(minutes=10)# datetime.datetime(2021, 2, 2, 3, 54, 3, 573054)Any keyword arguments you would pass todatetime.timedeltawill work withfuture_utc_datetimeandpast_utc_datetime.Past/Future UTC in UNIX timestamp (integertype)chronos.future_utc_timestamp(hours=2)# 1612246043Analogously, thepast_utc_timestampfunction will do exactly what you expect:chronos.past_utc_timestamp(hours=2)# 1612238843Again, any keyword arguments you would pass todatetime.timedeltawill work withfuture_utc_timestampandpast_utc_timestamp.
Package: python-chzzk
python-chzzkAn unofficial Python library for CHZZK.Caution: APIs are currently experimental.RequirementsPython 3.8+InstallationpipinstallchzzkUsageimportasynciofromchzzkimportChzzk,Credentialasyncdefmain():credential=Credential(nid_auth="Your NID_AUT",nid_session="Your NID_SES",)chzzk=Chzzk(credential)print(awaitchzzk.channel("bdc57cc4217173f0e89f63fba2f1c6e5"))print(awaitchzzk.video(1794))if__name__=="__main__":asyncio.run(main())AcknowledgementThankskimcore/chzzkfor sharing API urls and explaining how it works.
Package: python-cicero
Python-Cicero provides a Pythonic “wrapper” toAzavea’s Cicero APIfor address-based legislative and non-legislative district matching, lookup of
elected official contact information, and election events.Note: Be sure to take a look atthe project page on Github.Installation / SetupUse pip to install the library:pip install python-ciceroIf you anticipate making improvements/extensions and would like to document
them, use the extras_require convention to also install the Pycco documentation
generator as a dependency (see Documentation section below):pip install python-cicero[‘docs’]To make requests to the Cicero API, you will need a Cicero account. A free
trial of the API is available by registeringhere. The process for
purchasing additional API credits is described on the Cicero website.TestingThere are a few ways to run the unit tests.One option is to use the shell script in the root of the repository
calledtest.example.sh. Copy it usingcp test.example.sh test.sh.
Edittest.shto include your Cicero API username and password. Then, run
the tests using./test.sh.Another option is to edit thetest/tests.pyfile directly, adding your
Cicero API credentials where indicated. Doing so will allow you to execute
tests usingnosetests(if you have the nose package installed), or
usingpython setup.py test, or invoking thetests.pyfile itself.DocumentationDocumentation, generated withPycco, is
available in the “docs” folder as HTML files. The filenames correspond to the
appropriate module being documented.For examples of the wrapper in use, see thecicero_examples.pyfile.Help!All of us at Azavea would be happy to help you get the most out of your
Cicero API account. For questions about this wrapper, contactcicero@azavea.comLicensepython-cicero is licensed under the Apache 2.0 license. SeeLICENSE.txtfor
more details.ContributeSee a bug? Want to improve the docs or provide more examples? Thank you!
Please open a pull-request with your improvements and we’ll work to respond
to it in a timely manner.
Package: python-cicoclient
Aboutpython-cicoclientis a client, library, and a CLI interface that can be used
to communicate with theci.centos.orginfrastructure provisioning system:Duffy.It provides:A client library for communicating with the admin.ci.centos.org REST APIA wrapper library that leverages the client for doing each API callA CLI interface that leverages the wrapper to communicate with the API
from the command lineAnAnsiblemodule that leverages the wrapper to communicate with the API
through Ansible.DocumentationDocumentation on how to install and use python-cicoclient is available onReadTheDocs.orgAuthorDavid Moreau SimardCopyrightCopyright 2015 Red Hat, Inc.Licensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: python-cip
# python-cipA very simple python interface to Canto Cumulus CIPWraps [requests](http://python-requests.org) to call CIP endpoints in a session## API### class cip.CIP> CIP(url, serveraddress, user=None, password=None)#### Methods:** login(user = None, password=None, catalogname=None) **Open a session on CIP. Returns reply from server.** do(api, rawdata=False, ...) **Call a `api` CIP endpoint. Returns reply from server.If `rawdata` is False, reply is parsed JSON.Any extra arguments are passed to request post call** request(api, ...) **Do a POST request to `api` CIP endpoint. Returns[request Response object](http://docs.python-requests.org/en/master/api/#requests.Response)Any extra arguments are passed to request post call** logout(self) **Close CIP session. Returns nothing### class cip.CIPException(Exception)## Example```pythonfrom cip import CIPself.cip = CIP("http://localhost:8080/CIP/", "localhost")self.cip.login('user', 'password', 'Sample Catalog')r = self.cip.do("metadata/search/Sample Catalog", data={'querystring': '"Asset Name" contains "photo"','field': ["ID", "Asset Name", "Asset Modification Date"],})print( r['items'][0]['Asset Modification Date'] )```## Test```bash$ pip install tox$ tox```
Package: python-citybikes
python-citybikespython-citybikesis a python client for theCitybikes API.About CitybikesCitybikesis a project about making bike sharing data available to both users
and developers. It has a nice and easy to use API, but this package might be
useful to projects consuming the API.python-citybikesmust not be confused withpybikes:pybikesis a set of tools to access bike sharing data directly from the providers. It’s the library powering the project and the API. If a network is not supported or does not correctly work, it’s there where the issue or the contribution must be sent.python-citybikesis a python wrapper around theCitybikes API.Installation$pipinstallpython-citybikesUsageFirst instantiate a client>>>>importcitybikes>>>>client=citybikes.Client()Get the full list of networks>>>>networks=list(client.networks)>>>>len(networks)458>>>>networks[0]{'name':'Opole Bike','href':'/v2/networks/opole-bike','location':{'latitude': 50.6645, 'city': 'Opole', 'country': 'PL', 'longitude': 17.9276}, 'id': 'opole-bike', 'company': ['NextbikeGmbH']}Get stations from a network>>>>len(networks[0].stations)16>>>>list(networks[0].stations)[0]{'timestamp':'2016-11-22T16:05:44.318000Z','id':'d8c9f66260759aeb27445b2cddf2d6b9', 'name': 'PętlaAutobusowa-Dambonia', 'free_bikes': 7, 'empty_slots': 3, 'latitude': 50.661775266224, 'extra': {'bike_uids': ['60128', '60108', '60063', '60062', '60052', '60037', '60190'], 'number': '6011', 'slots': 10, 'uid': '132115'}, 'longitude': 17.888891100884}Instantiate a network by id directly>>>>bicing=citybikes.Network(client,uid='bicing')>>>>bicing['name']'Bicing'>>>>len(bicing.stations)465Get a network ordered by distance to lat, lng>>>># Lets get the nearest network to NY lat, lng>>>>net,dist=next(iter(client.networks.near(40.7128,-74.0059)))>>>>net{'href':'/v2/networks/citi-bike-nyc','id':'citi-bike-nyc','gbfs_href':'https://gbfs.citibikenyc.com/gbfs/gbfs.json','location':{'latitude':40.7143528,'country':'US','longitude':-74.00597309999999,'city':'New York,NY'}, 'company': ['NYCBikeShare,LLC', 'MotivateInternational,Inc.','PBSC Urban Solutions'],'name':'Citi Bike'}Get stations from a network ordered by distance to lat, lng>>>># Now, get stations ordered by distance to Manhattan center>>>>sts=net.stations.near(40.7831,-73.9712)>>>>fors,distinsts[:5]:...print(s['name'])...W82St&CentralParkWestCentralParkWest&W85StW84St&ColumbusAveCentralParkWest&W76StW89St&ColumbusAveHistory0.2.0 (2021-02-07)Accept headers on client initRemove user-agent argument (superseded by headers)0.1.4 (2019-07-26)Fix python 2 compatibility0.1.3 (2017-02-13)Add JSON Encoder for resources0.1.1 (2016-11-22)Improve docsnear helpers also return relative distance0.1.0 (2016-11-17)First releaseCan navigate the Citybikes APIRequests for resources are done only once
Package: python-cjson
This module implements a very fast JSON encoder/decoder for Python.JSON stands for JavaScript Object Notation and is a text based lightweight
data exchange format which is easy for humans to read/write and for machines
to parse/generate. JSON is completely language independent and has multiple
implementations in most of the programming languages, making it ideal for
data exchange and storage.The module is written in C and it is up to 250 times faster when compared to
the other python JSON implementations which are written directly in python.
This speed gain varies with the complexity of the data and the operation and
is the the range of 10-200 times for encoding operations and in the range of
100-250 times for decoding operations.
Package: python-cjson-custom
This module implements a very fast JSON encoder/decoder for Python.JSON stands for JavaScript Object Notation and is a text based lightweight
data exchange format which is easy for humans to read/write and for machines
to parse/generate. JSON is completely language independent and has multiple
implementations in most of the programming languages, making it ideal for
data exchange and storage.The module is written in C and it is up to 250 times faster when compared to
the other python JSON implementations which are written directly in python.
This speed gain varies with the complexity of the data and the operation and
is the the range of 10-200 times for encoding operations and in the range of
100-250 times for decoding operations.This module is an enhanced version of the original python-cjson 1.0.3.
Please send your comments regarding to this version to:
Viktor Ferenczi <cx@cx.hu>New feature not in the original 1.0.3 release:Encoder and decoder functions are extensible to allow conversion of objects
not in the official JSON specification, such as Date objects. Unicode and
character encoding related enhancements. Automatic conversion of dictionary
keys to strings (JSON requires string keys in objects). Extension now
compatible with the C compiler from Microsoft Visual C++ Toolkit 2003.
Package: python-claml
A ClaML reader for Python.
Generated from the ClaML.dtd file from theDIMDI, usingPyXB.FeaturesReads classification files in ClaML format (XML) into Python objects.
Seeexamples/test1.pyfor a usage example.Resourcesvan der Haring EJ, Broënhorst S, ten Napel H, Weber S, Schopen M, Zanstra PE.ClaML: a standard for the electronic publication of classification coding schemesISO 13120:2013Health informatics – Syntax to represent the content of healthcare classification systems – Classification Markup Language (ClaML),
now superseded byISO 13120:2019.DIMDI(Deutsche Institut für Medizinische Dokumentation und Information)ICD-10-GMdownload:icd10gm2019syst-claml.zipUsageTo use ClaML reader in a project:importpython_clamlExampleRead and parse the contents of a ClaML file and print all class codes:withopen(file_name,'r')asinput_file:# Read file contentscontents=input_file.read()# Parse ClaML documentclassification:ClaML=claml.CreateFromDocument(contents)forclsinclassification.Class:print(cls.code)DevelopmentThe code was generated using the following commands:pyxbgen--schema-root=../resources-uClaML.xsd-mpython_claml.clamlInstallFrom the package index:pipinstallpython-clamlor from source:gitclonehttps://github.com/thehyve/python_claml.gitcdpython_clamlpipinstall.Testpythonsetup.pytestAcknowledgementThis project was funded by the German Ministry of Education and Research (BMBF) as part of the project
DIFUTURE - Data Integration for Future Medicine within the German Medical Informatics Initiative (grant no. 01ZZ1804D).LicenseCopyright (c) 2019 The Hyve B.V.The ClaML reader is licensed under the MIT License. See the fileLICENSE.
Package: python-clap
clap(C)ommand (L)ine (A)rgument (P)arsing... A thin wrapper around the standard Python argparse library.project status badges:version badges:Installation 🗹To installpython-clapusingpip, run the following
commands in your terminal:python3-mpipinstall--userpython-clap# install clapIf you don't have pip installed, thisPython installation guidecan guide
you through the process.Useful Links 🔗API Reference: A developer's reference of the API exposed by this
project.cc-python: Thecookiecutterthat was used to generate this project.
Changes made to this cookiecutter are periodically synced with this project
usingcruft.CHANGELOG.md: We use this file to document all notable changes made to
this project.CONTRIBUTING.md: This document contains guidelines for developers
interested in contributing to this project.Create a New Issue: Create a new GitHub issue for this project.Documentation: This project's full documentation.
Package: python-cli-base
python-cli-basepython project for building cli applicationsJust fork or copy this repo to start your own python cli application.https://pypi.org/project/python-cli-base/PyPI Package upload guide:https://packaging.python.org/en/latest/tutorials/packaging-projects/commandsinstall packagespython -m pip install --upgrade buildpip install twinebuild & uploadpython -m buildpackage uploadtest pypi:python -m twine upload --repository testpypi dist/*live pypi:python -m twine upload dist/*install built package & pcb commandspip install python-cli-basepcb --helpUsage: pcb [OPTIONS] COMMAND [ARGS]...

Options:
  -c, --check TEXT    check1
  -c2, --check2 TEXT  check2
  -c3, --check3 TEXT  check3
  --version           Show the version and exit.
  --help              Show this message and exit.pcb --versionpcb 0.0.1pcb -c zxc -c2 asd(Checkpython_cli_base/__init__.py)check:zxc
check2:asd{'check':'zxc','check2':'asd','check3':None}
Package: python-client-generator
python-client-generatorPython package to generate anhttpx- andpydantic-based async (or sync)
client off an OpenAPI spec >= 3.0.flowchart LR
    generator["python-client-generator"]
    app["REST API app"]
    package["app HTTP client"]

    app -- "OpenAPI json" --> generator
    generator -- "generates" --> package:warning:Currently does not support OpenAPI 2.0: PR for < 3.0 support are welcomeUsing the generatorpython-mpython_client_generator--open-apiopenapi.json--package-namefoo_bar--project-namefoo-bar--outdirclientsThis will produce a Python package with the following structure:clients
├──foo_bar
│├──__init__.py
│├──apis.py
│├──base_client.py
│└──models.py
└──pyproject.tomlUsing PATCH functions from the generatorWhen calling one of the generated update functions that uses an HTTPPATCHmethod, you'll
probably want to pass the additional argumentbody_serializer_args={"exclude_unset": True}. This
will ensure that only the fields that are set in the update object are sent to the API. Example:awaitapi_client.update_contact_v1_contacts__contact_id__patch(body=patch_body,contact_id=contact.id,tenant=tenant,body_serializer_args={"exclude_unset":True})ContributingPlease refer toCONTRIBUTING.md.
Package: python-clients
# Python-clientsThis library implements wrapper for different python interfaces. We have:sync and async http client (requests and aiohttp libraries)Each client is class with request method and class implemented base class of any custom methods. This is very simple.
But you can encapsulate inner structure of requests.# InstallationWe use python3.7. Installation is a very simple:pip install python-clients# ExampleYou define new client for specify endpoint:client = http.AsyncClient(url)Next, you define the first method:class MyCustomFirstMethod(http.Method):url _ = ‘/’
m_type = ‘POST’Next, you define the second method:class MyCustomSecondMethod(http.Method):url _ = ‘/%s’
count = 1
m_type = ‘POST’def __init __ (self, arg1, arg2, arg3):http.Method. __init __ (self, arg1)  # arg1 pass into self.url _ by position
self.params = {‘args1’: arg1}
self.body = {‘arg2’: arg2}Next, you can take request:m = MyCustomFirstMethod()
resp, status_code = await client.request(m)
assert status_code == 200
m = MyCustomSecondMethod(arg1=1, arg2=2, arg3=3)
resp, status_code = await client.request(m)
assert status_code == 204# DevelopmentYou can install development requirements:pip install -r requirements/devThis is extension of package version of requirements# TestBefore tests, you need to start mock server:PYTHONPATH=. python tests/server/mock_server.pyAfter that, you can run all tests:pytest tests
Package: python-cli-jbcorco85
Start virtual environmentpython3 -m venv env
source env/bin/activateIncrement version in pyproject.toml
poetry build
poetry publish -r testpypipip installpip3 install -ihttps://test.pypi.org/simple/python-cli
pip3 listtest buildpython3 -m pyton_cli
python python_cliuninstallpip3 uninstall python_cli
pip3 list