Saravanan666/pypi-org huggingface dataset:
Package: python-guzi
python-guziA library to use Guzi in Python applicationsRun testspython-munittestUsageClass User contains every Guzi relative information a user would need :
- guzi wallet
- guza waller
- total accumulated
- balanceFor now, a Guzi (and a Guza) is just a string, an identifier defining what it is. So it has no dedicated class. Maybe it will, but for now, nope.Example of use :fromdatetimeimportdatefromguzi.modelsimportUser# Create usersuser1=User("unique_id1",birthdate=date(1989,11,28))user2=User("unique_id2",birthdate=date(1998,9,5))# create their Guzis (it's like having a new day)foriinrange(1,10):user1.create_daily_guzis(date(2020,4,i))# Then make them spend between each otheruser1.spend_to(user2,3)user1.spend_to(user2,2)Class Company contains every Guzi relative information a company would need :
- guza_walletA Company has also an engaged strategy. An engaged User can be a paid employee or some kind of shareholder. When a User is engaged to a Company for a number of times (for example User1 engaged 4 times), it means that 4 of the Guzis the Company will get paid with will go to this User.An engaged User is different of a founder User : founder User only get paid when all engaged Users have been fully paid. Founder only get the profit.For example, an employee in the company would be engaged and would get his or her salary every month. He or she could aslo be part of the founders and then, if the company earns more than necessary to pay salaries, the bonus (the profit) would go to this salaried too.Usage:fromdatetimeimportdatefromguzi.modelsimportUser,Company,DefaultEngagedStrategy# Create usersuser1=User("unique_id1",birthdate=date(1989,11,28))user2=User("unique_id2",birthdate=date(1998,9,5))# Create companyfounders=[user1,user2]company=Company("unique_id",founders)# Create users Guzasforiinrange(1,10):user1.create_daily_guzis(date(2020,4,i))user2.create_daily_guzis(date(2020,4,i))# Users can give Guzas to the companyuser1.give_guzas_to(company,3)user2.give_guzas_to(company,9)# Then company can spend those Guzas, for example to buy something to user1# who could sell something usefull for the companycompany.spend_to(user1,6)user1.check_balance()assert(len(user1.total_accumulated)==6-3)
Package: python-gvm
Greenbone Vulnerability Management Python LibraryThe Greenbone Vulnerability Management Python API library (python-gvm) is a
collection of APIs that help with remote controlling Greenbone Community Edition
installations and Greenbone Enterprise Appliances. The library essentially
abstracts accessing the communication protocols Greenbone Management Protocol
(GMP) and Open Scanner Protocol (OSP).Table of ContentsDocumentationInstallationVersionRequirementsInstall using pipExampleSupportMaintainerContributingLicenseDocumentationThe documentation for python-gvm can be found athttps://greenbone.github.io/python-gvm/.
Please always take a look at the documentation for further details. ThisREADMEjust gives you a short overview.InstallationVersionPlease consider to always use thenewestversion ofgvm-toolsandpython-gvm.
We frequently update this projects to add features and keep them free from bugs.
This is why installingpython-gvmusing pip is recommended.To usepython-gvmwith an old GMP version (7, 8, 9) you must use a release versionthat is<21.05. In the21.05release the support of these versions have been dropped.RequirementsPython 3.9 and later is supported.Install using pippip 19.0 or later is required.You can install the latest stable release of python-gvm from the Python Package
Index usingpip:python3 -m pip install --user python-gvmExamplefromgvm.connectionsimportUnixSocketConnectionfromgvm.protocols.gmpimportGmpfromgvm.transformsimportEtreeTransformfromgvm.xmlimportpretty_printconnection=UnixSocketConnection()transform=EtreeTransform()withGmp(connection,transform=transform)asgmp:# Retrieve GMP version supported by the remote daemonversion=gmp.get_version()# Prints the XML in beautiful formpretty_print(version)# Logingmp.authenticate('foo','bar')# Retrieve all taskstasks=gmp.get_tasks()# Get names of taskstask_names=tasks.xpath('task/name/text()')pretty_print(task_names)SupportFor any question on the usage of python-gvm please use theGreenbone Community Portal. If you
found a problem with the software, pleasecreate an issueon GitHub.MaintainerThis project is maintained byGreenbone AG.ContributingYour contributions are highly appreciated. Pleasecreate a pull requeston GitHub.
For bigger changes, please discuss it first in theissues.For development you should usepoetryto keep you python packages separated in different environments. First install
poetry via pippython3-mpipinstall--userpoetryAfterwards runpoetryinstallin the checkout directory of python-gvm (the directory containing thepyproject.tomlfile) to install all dependencies including the packages only
required for development.The python-gvm repository usesautohooksto apply linting and auto formatting via git hooks. Please ensure the git hooks
are active.$ poetry install
$ poetry run autohooks activate --forceLicenseCopyright (C) 2017-2023Greenbone AGLicensed under theGNU General Public License v3.0 or later.
Package: python-gyazo
A Python wrapper forGyazo API.The full-documentation is available onRead the Docs.RequirementsPython 3.5+Installationpipinstallpython-gyazoNote: Please use the latest version of setuptools & pippipinstall-UsetuptoolspipUsageAt first, you must create an application and get an access token fromhttps://gyazo.com/oauth/applicationsfromgyazoimportApiclient=Api(access_token='YOUR_ACCESS_TOKEN')### Get a list of imagesimages=client.get_image_list()forimageinimages:print(str(image))### Using an image modelimage=images[0]print("Image ID: "+image.image_id)print("URL: "+image.url)### Download an imageifimage.url:withopen(image.filename,'wb')asf:f.write(image.download())### Upload an imagewithopen('sample.png','rb')asf:image=client.upload_image(f)print(image.to_json())### Delete an imageclient.delete_image('IMAGE_ID')### oEmbedimage=images[0]print(client.get_oembed(image.permalink_url))Backupgyazo-backupis moved topython-gyazo-backup.LicenseMIT License. Please seeLICENSE.
Package: python-gyazo-backup
A command-tool for creating backup of GyazoRequirementsPython 3.5+Installationpipinstallpython-gyazo-backupUsageAt first, you must create an application and get an access token fromhttps://gyazo.com/oauth/applicationsThen, download all images withgyazo-backupcommand:gyazo-backup--token<API_ACCESS_TOKEN><DESTINATION_DIR>You can see all downloaded images with your favorite web browser.
Please open<DESTINATION_DIR>/index.html.LicenseMIT License. Please seeLICENSE.
Package: python-HackMD
Table of ContentsWhat's thisGetting StartedPrerequisitesInstallationBasic UsageUser APIUser Notes APITeams APITeam Notes APIWhat's thisA Python interface for HackMD APIGetting StartedPrerequisitesPython 3.6+HackMD API token (How to create a token)Installationpipinstallpython-HackMDBasic UsageLet's create an API object before everything starts.fromPyHackMDimportAPIapi=API('<token>')User APIGet user informationdata=api.get_me()print(data)User Notes APIGet a list of notes in the user's workspacedata=api.get_notes()print(data)Get a note# note_id can be obtained using get_notes()data=api.get_note('<note_id>')print(data)Create a notedata=api.create_note(title='New Note',content='blablabla',read_perm='signed_in',write_perm='owner',comment_perm='signed_in_users')print(data)Update a note# note_id can be obtained using get_notes()data=api.update_note('<note_id>',content='blablabla',read_perm='signed_in',write_perm='owner',comment_perm='signed_in_users')print(data)Delete a note# note_id can be obtained using get_notes()data=api.delete_note('<note_id>')print(data)Get a history of read notesdata=api.get_read_history()print(data)Teams APIGet a list of the teams to which the user has permissiondata=api.get_teams()print(data)Team Notes APIGet a list of notes in a Team's workspace# team_path can be obtained using get_teams()data=api.get_team_notes('<team_path>')print(data)Get a note in a Team's workspace# note_id can be obtained using get_team_notes()data=api.get_team_note('<note_id>')print(data)Create a note in a Team workspace# team_path can be obtained using get_teams()data=api.create_team_note('<team_path>'title='New Note',content='blablabla',read_perm='signed_in',write_perm='owner',comment_perm='signed_in_users')print(data)Update a note in a Team's workspace# team_path can be obtained using get_teams()# note_id can be obtained using get_team_notes()data=api.update_team_note('<team_path>','<note_id>',content='blablabla',read_perm='signed_in',write_perm='owner',comment_perm='signed_in_users')print(data)Delete a note in a Team's workspace# team_path can be obtained using get_teams()# note_id can be obtained using get_team_notes()data=api.delete_team_note('<team_path>','<note_id>')print(data)
Package: python-handler-socket
Overviewpyhs (python-handler-socket) is a Python client library for theHandlerSocketMySQL plugin.InstallationFirst, install MySQL and HandlerSocket. Some of the client’s functionality
depends on latest revisions of the plugin so keep it up to date.After that, get the distribution:pip install python-handler-socketOr get the package from latest source:pip install hg+http://bitbucket.org/excieve/pyhs#egg=python-handler-socketOr clone the main repository and install manually:hg clone http://bitbucket.org/excieve/pyhs
cd pyhs
python setup.py installCheck your installation like this:python
>>> from pyhs import __version__
>>> print __version__UsageUsage cases, details and API reference are available
indocsdirectory inside the package oronlineon RTD.Changelog0.2.4Fixed infinite loop caused by remotely closed connection.Fixed incorrect Unicode chars escaping/unescaping in C speedups.Fixed indexes and caches might not be cleaned on connection errors.Somewhat refactored error recovery code.0.2.3Fixed single result single-column responses. Fixes issue #1 for real now, I hope.0.2.2Fixed incorrect behavior with single columns responses.Changed return value offind_modifycalls withreturn_original=Trueto a list of rows of (field, value) tuples instead of a flat list of values.0.2.1Implemented optimised C versions ofencodeanddecode.Modified installation script to include optional building of C speedups module.0.2.0Added “incr” and “decr” operations support to thefind_modifycall.Added increment and decrement methods to theManagerclass.Added original value result for allfind_modifyoperations.Optimised query string encoding function.0.1.0Initial release.Licensepyhs is released under MIT license.Copyright (c) 2010 Artem Gluvchynsky <excieve@gmail.com>SeeLICENSEfile inside the package for full licensing information.
Package: python-harvest-oauth
Python Harvest Oauth====================This is a fork from https://github.com/bendavis78/python-harvest which is a fork of https://github.com/lionheart/python-harvest, but adapted to use Oauth2.The changes are fairly significant, hence the different version and development status classifier.Pull requests and issues are welcome!---------------------Improving the unit tests is currently the main priority, but any help is welcome.The tasks are managed by a public Taiga project you can access `here <https://tree.taiga.io/project/j4keh4rding-python-harvest-oauth/>`_.Usage=====This package builds the URL and redirect needed for Harvest authentication, andprovides methods for initial retrieval and refresh of Oauth2 tokens.  The Harvestdomain, client id and redirect URL are needed for instantiation like so::HARVEST_DOMAIN = 'Harvest domain that access is needed'HARVEST_CLIENT_ID = 'Harvest client id you get after creating Oauth2 app in Harvest.'HARVEST_CLIENT_SECRET = 'Harvest client secret you get after creating Oauth2 app in Harvest.'REDIRECT = 'Redirect URL for to redirect to after successful authentication.'harvest_client = HarvestRestClient(HARVEST_DOMAIN,client_id=HARVEST_CLIENT_ID,redirect_uri=REDIRECT)After instantiation, harvest_client.authorize_url will have the url needed authenticate with Harvest.After successful authentication, Harvest will redirect to REDIRECT with a `code` query param.The value for it is needed to request the access and refresh tokens.The tokens need to be saved somewhere by your app.::CODE = 'String submitted in query param'ACCESS, REFRESH = harvest_client.get_tokens(CODE, HARVEST_CLIENT_SECRET)
Package: python-hbk
How to usefrompython_hbk.HbkimportHbkmy_hbk=Hbk(filepath="test.hbk")forname,address,lengthinmy_hbk.get_bookmarks():print(f"{name=},{address=},{length=}")print(my_hbk.to_json())Outputname='Test float', address='0000016A', length=4
name='Test double', address='0000016E', length=8
name='Test string', address='00000176', length=72
name='Test float array [0]', address='00000241', length=4
...
name='Test double array [15]', address='000002C7', length=8

[
  {
    "name": "Test float",
    "address": "0000016A",
    "length": 4
  },
  {
    "name": "Test double",
    "address": "0000016E",
    "length": 8
  },
  {
    "name": "Test string",
    "address": "00000176",
    "length": 72
  },
  {
    "name": "Test float array [0]",
    "address": "00000241",
    "length": 4
  },
  ...
  {
    "name": "Test double array [15]",
    "address": "000002C7",
    "length": 8
  }
]
Package: python-hcalendar
Basic hCalendar ParserDependenciesisodate            [http://pypi.python.org/pypi/isodate/]Beautiful Soup 4   [http://www.crummy.com/software/BeautifulSoup/]InstallationInstall the latest version from pypi.python.org:pip install python-hcalendarInstall the development version by cloning the source from github.com:pip install git+https://github.com/mback2k/python-hcalendar.gitBasic ExampleThe hCalendar class accepts file-like objects and strings, basically anything supported by BeautifulSoupfrom hcalendar import hCalendar

html = """<div class="vcalendar"><div class="vevent">
 <a class="url" href="http://conferences.oreillynet.com/pub/w/40/program.html">
  http://conferences.oreillynet.com/pub/w/40/program.html
 </a>
 <span class="summary">Web 2.0 Conference</span>:
 <abbr class="dtstart" title="2005-10-05">October 5</abbr>-
 <abbr class="dtend" title="2005-10-07">7</abbr>,
 at the <span class="location">Argent Hotel, San Francisco, CA</span>
</div></div>"""

hcal = hCalendar(html)
for cal in hcal:
    for event in cal:
        print event.url
        print event.summary
        print event.dtstart
        print event.dtend
        print event.locationHTML source code taken frommicroformats.org. Output will look like this:http://conferences.oreillynet.com/pub/w/40/program.html
Web 2.0 Conference
2005-10-05 00:00:00
2005-10-07 00:00:00
Argent Hotel, San Francisco, CATODOImplement support for hCard contacts and attendeesImplement support for geo locationsMaybe support for other microformats?LicenseReleased under MIT LicenseCopyright (c) 2012-2019 Marc Hoerskeninfo@marc-hoersken.de
Package: python-hcl2
Python HCL2A parser forHCL2written in Python usingLark. This parser only supports HCL2 and isn't backwards compatible
with HCL v1. It can be used to parse any HCL2 config file such as Terraform.About AmplifyAmplify builds innovative and compelling digital educational products that empower teachers and students across the
country. We have a long history as the leading innovator in K-12 education - and have been described as the best tech
company in education and the best education company in tech. While others try to shrink the learning experience into
the technology, we use technology to expand what is possible in real classrooms with real students and teachers.Learn more athttps://www.amplify.comGetting StartedPrerequisitespython-hcl2 requires Python 3.7 or higher to run.InstallingThis package can be installed usingpippip3installpython-hcl2Usageimporthcl2withopen('foo.tf','r')asfile:dict=hcl2.load(file)Building From SourceFor development,tox>=4.0.9is recommended.Running Testspython-hcl2 usestox. You will need to install tox withpip install tox.
Runningtoxwill automatically execute linters as well as the unit tests.You can also run them individually with the-eargument.For example,tox -e py37-unitwill run the unit tests for python 3.7To see all the available options, runtox -l.ReleasingTo create a new releaes go to Releases page, press 'Draft a new release', create a tag
with a version you want to be released, fill the release notes and press 'Publish release'.
Github actions will take care of publishing it to PyPi.Responsible DisclosureIf you have any security issue to report, contact project maintainers privately.
You can reach us atmailto:github@amplify.comContributingWe welcome pull requests! For your pull request to be accepted smoothly, we suggest that you:For any sizable change, first open a GitHub issue to discuss your idea.Create a pull request.  Explain why you want to make the change and what it’s for.We’ll try to answer any PR’s promptly.
Package: python-hdcloud
This is a cloud for theHD Cloud API.You’ll need an HD Cloud account to use this library. You can either use your
account’s username/password, or you can use a developer token from your user
profile page and use those credentials instead.UsageFirst create an instance with your creds:>>> from hdcloud import HDCloud
>>> hdcloud = HDCloud(USERNAME, PASSWORD)Then call methods:>>> hdcloud.jobs.all()
[<Job: 12345 - completed>]

>>> hdcloud.jobs.get(id=12345)
<Job: 12345 - completed>For details,see the documentationand/or HD Cloud’sAPI documentation.ContributingDevelopment takes placeon GitHub;
please file bugs/pull requests there.Development on this project was funded byDiscovery-
thanks!
Package: python-hdf4
The Python-HDF4 package wraps the functionality of the NCSA HDF version
4 library inside a Python OOP framework. The SD (scientific dataset),
VS (Vdata) and V (Vgroup) APIs are currently implemented.  SD datasets
are read/written through numpy arrays. NetCDF files can also be read
and modified with Python-HDF4.This package is a fork of pyhdf (http://pysclint.sourceforge.net/pyhdf/).
Package: python-hdfs
libpyhdfs==================================================Introduction--------------------------------------------------libpyhdfs is a Python extension module which wraps the C API in libhdfs toaccess Hadoop file system.Sample usage:#!/usr/bin/env pythonimport pyhdfsfs = pyhdfs.connect("192.168.1.1", 9000)pyhdfs.get(fs, "/path/to/remote-src-file", "/path/to/local-dst-file")f = pyhdfs.open(fs, "/user/wormtongue/quotes.txt", "w")pyhdfs.write(fs, f, "Why do you lay these troubles on an already troubled mind?")pyhdfs.close(fs, f)pyhdfs.disconnect(fs)Installation--------------------------------------------------Please see the file called INSTALL.
Package: python-healthcard
This package aims to provide a simple way to read smart cards (healthcards from) the German health insurance system.It is based off of this repo:https://github.com/asdil12/python-egk/InstallationSimply install the package via pip:pipinstallpython-healthcardUsageHealthCardReaderThe usage a pretty straightforward.fromhealthcard.readerimportHealthCardReaderreader=HealthCardReader()healthcard=reader.get_health_card()print(healthcard.patient.first_name)MaxTheHealthCardReaderobject is automatically looking for a card reader. If there are multiple card readers
available it uses the first one be default. This behavior can be changed however:# change the index of the used readerreader=HealthCardReader(index=1)# or instantiate a cardservice yourselffromsmartcard.CardTypeimportATRCardTypefromsmartcard.CardRequestimportCardRequestfromsmartcard.utilimporttoHexString,toBytescardtype=ATRCardType(toBytes("3B 16 94 20 02 01 00 00 0D"))# just an example APDUcardrequest=CardRequest(timeout=1,cardType=cardtype)cardservice=cardrequest.waitforcard()# This example code is taken from https://pyscard.sourceforge.io/user-guide.htmlreader=HealthCardReader(cardservice=cardservice)There are currently 3 versions of healthcards defined: G1, G1plus and G2.The package automatically detects the version and reads the data accordingly.HealthCardThe HealthCard object provides a simple interface to access insurance and patient data:healthcard.patient# Patient objecthealthcard.insurance# Insurance objecthealthcard.version# G1, G1plus or G2It provides 2 JSON formatted outputs - a flattened as well as a hierarchical one:healthcard.to_json()# andhealthcard.to_flattened_json()PatientThe Patient object contains the personal data of the healthcard:patient.first_namepatient.insurant_idpatient.birthdatepatient.first_namepatient.last_namepatient.genderpatient.prefixpatient.name_additionpatient.title# depends on versionpatient.postal_address# orpatient.residential_addressPostalAddressaddress.cityaddress.zip_codeaddress.country_codeaddress.zip_codeaddress.mailboxResidenceAddressaddress.cityaddress.zip_codeaddress.country_codeaddress.cityaddress.streetaddress.street_numberaddress.address_additionInsuranceThis object only contains the name of the insurance.insurance.insurance_name
Package: python-hearthis
python-hearthisUnofficial Python library for hearthis.io APIhttps://hearthis.at/api-v2/DependenciesRequests- package required for making requestsInstallationIf you already havePythonon your system you can install the library simply by downloading the distribution, unpack it and install in the usual fashion:pythonsetup.pyinstallYou can also install it using a popular package manager withpipinstallpython-hearthisQuick Startimporthearthiskwargs={"email":"foo@bar.com","password":"foobar"}heart=hearthis.Hearthis(**kwargs)Available APIsFeed# returns hearthis user feedresponse=heart.feed()ParameterValueDefaultDescriptionpageint1page to howcountint5entries per page (max: 20)durationint-duration (+/- 5 minutes)typestr-[empty] / popular / newcategorystr-[empty] / house / drumandbass / etc. - see genre APIshow_feed_startstr2019-04-10Start Dateshow_feed_endstr2019-04-17End DateAll Genresresponse=heart.all_genres()Genre Listresponse=heart.genre_list()ParameterValueDefaultDescriptiongenrestr-Genre from All Genres APIpageint1page to howcountint5entries per page (max: 20)durationint-duration (+/- 5 minutes)Single Artistresponse=heart.artist()Single Artist Follow/Unfollowresponse=heart.artist_follow_unfollow()ParameterValueDefaultDescriptionartist_idint-ID of artistArtist Listresponse=heart.artist_list()ParameterValueDefaultDescriptionartiststr1Artist usernametypestr["tracks", "user", "playlists"]pageint1page to howcountint5entries per page (max: 20)Trackresponse=heart.track()ParameterValueDefaultDescriptiontrack_uristr-Track URITrack Like/Unlikeresponse=heart.track_like_unlike()ParameterValueDefaultDescriptiontrack_idint-ID of trackAdd Playlistresponse=heart.add_playlist()ParameterValueDefaultDescriptionnamestr-Name of tracktrack_idint-ID of track (optional)Add Existing playlist trackresponse=heart.add_playlist_track()ParameterValueDefaultDescriptionplaylist_idint-ID of playlisttrack_idint-ID of trackDelete Track and Playlistresponse=heart.delete_playlist()ParameterValueDefaultDescriptionplaylist_idint-ID of playlisttrack_idint-ID of track (optional)
Package: python-heatclient
Team and repository tagspython-heatclientOpenStack Orchestration API Client LibraryThis is a client library for Heat built on the Heat orchestration API. It
provides a Python API (theheatclientmodule) and a command-line tool
(heat).Free software: Apache licensePyPi- package installationOnline DocumentationLaunchpad project- release managementBlueprints- feature specificationsBugs- issue trackingSourceSpecsTemplateHow to Contribute
Package: python-hebrew-numbers
# python-hebrew-numberspython library for conversion of hebrew numbers (Gematria)## Usage### installation`bash pip installpython-hebrew-numbers`### gematria_to_int`python from hebrew_numbers import gematria_to_int gematria_to_int(u'רח"צ') # 298 `### int_to_gematria`python from hebrew_numbers import int_to_gematria int_to_gematria(298) # u'רח״צ' int_to_gematria(298, gershayim=False) # u'רחצ' `## Featuresconversion from string of letters to an integer numberconversion of integer to string (using [hebrew-special-numbers](https://github.com/chaimleib/hebrew-special-numbers))## ContributingSee the [contribution guide](CONTRIBUTING.md)## Backgroundseehttps://github.com/hasadna/Open-Knesset/issues/169