Saravanan666/pypi-org huggingface dataset:
Package: python-paasmanagerclient
FIWARE PaaSManager Python Client================================This is a client for Pegasus PaaSManager API. This API client has been developed in Python_. This client usesthe OpenStack Keystone service for authorization and service endpoint management.Environment-----------**Prerequisites**- `Python 2.7`__ or newer- pip_ 6.0 or newer- Additional libs that are required before installing dependencies: Python Development Tools (python-devel),zlib-devel, bzip2-devel, openssl-devel, ncurses-devel, sqlite-devel, gcc- PaaSManager_- `OpenStack Keystone service`_ v2 (so far, only Keystone v2 is supported for this client)__ `Python - Downloads`_**Installation**All dependencies has been defined in ``requirements.txt``.To install the last version of this client, download it from the GIT PaaSManager repository (*master* branch)and install it, using following command:::pip install -e "-e git+https://github.com/telefonicaid/fiware-paas.git@master#egg=python-paasmanagerclient&subdirectory=python-paasmanagerclient"Developed operations---------------------Following operations are already implemented:**Environment API Resource**- Create new environment- Delete environmentPython API----------An example of use of this client is:::from paasmanager_client.client import PaaSManagerClientpaasmanager_client = PaaSManagerClient(tenant_id, username, password, region_name, auth_url)env_name = "QAEnv"response = paasmanager_client.getEnvironmentResourceClient().create_environment(env_name,"For testing purposes")assertTrue(response.ok, "ERROR creating environment {}. Response: {}".format(env_name, str(response.content))).. REFERENCES.. _Python: http://www.python.org/.. _Python - Downloads: https://www.python.org/downloads/.. _pip: https://pypi.python.org/pypi/pip.. _PaaSMaager: https://github.com/telefonicaid/fiware-paas.. _`OpenStack Keystone service`: http://docs.openstack.org/developer/keystone/
Package: python-pachyderm
Python PachydermOfficial Python Pachyderm client.This library provides the autogenerated gRPC/protobuf code for Pachyderm, along with a higher-level and more pythonicClientclass.
See theAPI docs.Installationpipinstallpython-pachydermA Small TasteHere's an example that creates a repo and adds a file:importpython_pachyderm# Connects to a pachyderm cluster on localhost:30650.# For other options, see the API docs.client=python_pachyderm.Client()# Create a pachyderm repo called `test`client.create_repo("test")# Create a file in `(repo="test", branch="master")` at `/dir_a/data.txt`# Similar to `pachctl put file test@master:/dir_a/data.txt`withclient.commit("test","master")ascommit:client.put_file_bytes(commit,"/dir_a/data.txt",b"DATA")# Get back the filef=client.get_file(("test","master"),"/dir_a/data.txt")print(f.read())# >>> b"DATA"How to load a CSV file into a Pandas dataframeimportpandasaspdf=client.get_file(("my_repo","my_branch"),"/path_to/my_data.csv")df=pd.read_csv(f)For more sophisticated examples,see the examples directory.VersioningPrior to python-pachyderm 2.0, this library's versioning synced with pachyderm's core versioning; e.g. version 1.8.5 of this library synced with 1.8.5 of pachyderm core. python-pachyderm 2.0 onwards uses semver instead, so versions are not tied to pachyderm core. This was done for two reasons:Sometimes this library makes breaking or backwards-incompatible changes, which aren't properly conveyed by revision changes.Pachyderm core is stable enough that most features of this library will work for disparate versions of pachyderm clusters. To help ensure this, this library's CI tests against several versions of pachyderm core.However, if for whatever reason you need to know which version of pachyderm core a version of python-pachyderm was built with, consultCHANGELOG.md. As a broad rule of thumb, we recommend working with the latest version of both pachyderm core and python-pachyderm where possible.ContributingThis driver is co-maintained by Pachyderm and the community. If you're looking to contribute to the project, this is a fantastic place to get involved. Take a look atthe contributing guidefor more info (including testing instructions).
Package: python-package-cookiecutter-template
python package cookiecutter templatePython Boilerplate contains all the boilerplate you need to create a Python package.Free software: MIT licenseDocumentation:https://python-package-cookiecutter-template.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.1 (2018-04-10)First release on PyPi with minor changes.0.1.0 (2018-04-10)First release on PyPI.
Package: python-package-example
python-package-exampleThis is a minimal python package, for use alongside the lesson:https://github.com/BillMills/pythonPackageLessonContributing:Please do! Guidelines:This lesson is for beginners. Yes there are plenty of super fancy things we don’t cover here; someday, we’ll make a different, super fancy lesson to teach those things.Max 100 lines or 500 words per PR please.Open an issue or empty PR first to talk about controversial changes.
Package: python-package-example-Johnny-dpp
python-package-exampleThis is a minimal python package, for use alongside the lesson:https://github.com/BillMills/pythonPackageLessonContributing:Please do! Guidelines:This lesson is for beginners. Yes there are plenty of super fancy things we don’t cover here; someday, we’ll make a different, super fancy lesson to teach those things.Max 100 lines per PR please.Open an issue or empty PR first to talk about controversial changes.
Package: python-package-experiment-acme
# ACME[![Build Status](https://travis-ci.org/norioxkimura/python-package-experiment.svg?branch=master)](https://travis-ci.org/norioxkimura/python-package-experiment)MIT LicenseCopyright (c) 2018 Norio KimuraPermission 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: python-package-size
Recursive Package SizeLearn after-install weight of any Python package including its dependencies.The tool willloop over your project dependencies, install each dependency in its own venv and report the actual size including dependency tree.This is useful for optimizing dependencies of your large applications, libraries or containers.This isespecially useful in machine learningcontext, where dependencies easily explode into gigabates.Installationpip install python-package-sizeUsagepython-package-size -r pyproject.tomlorpython-package-size -r requirements.txtExample outputmypy:   43.7 MB
      awscli:   34.0 MB
       black:    6.7 MB
      pylint:    6.5 MB
      pytest:    2.5 MB
Package: pythonpackages-scaffolds
PasteScript paster templates for pythonpackages.comWhat is a scaffold?A scaffold is another name for a PasteScript paster template.What is PasteScript?Fromhttp://pypi.python.org/pypi/PasteScript:"A pluggable command-line frontend, including commands to setup package file layouts".Why?This package was created for pythonpackages.com.ScaffoldsThis package includes the following scaffolds:plone_theme: Diazo theme for Plone 4InstallationInstall with:$ {easy_install, pip} install pythonpackages-scaffoldsUsageUse with:$ paster create -t plone_theme plonetheme.name
Package: pythonpackages.sendpickedversions
NoteThis is a fork of buildout.sendpickedversions made exclusively for use with pythonpackages.com. It configures buildoutname to hostname + dirname dynamically, to facilitate aggregation of a large number of buildouts. If there is general interest, this change may be included in future versions of buildout.sendpickedversions.buildout.sendpickedversionsThis package is based onbuildout.dumppickedversionsand its purpose is to
gather the package name and version information from buildout. The main
difference withbuildout.dumppickedversionsis that instead of displaying
picked versions, or dumping everything to a file, we’ll send package information
to a predefined URL.Original use case is that there isWhiskersserver on the other end which stores
the data. There’s nothing special about the data, so other end can just as well
be anything that can handle json.ConfigurationTo use buildout.sendpickedversions with buildout your buildout.cfg should have
buildout.sendpickedversions in you extensions-line and following fields
configured:buildoutnameThis is the name of the buildout.Whiskersuses this information to create
new buildout object with the package data. If name is not set we use default
‘dummy_buildout’ as a name.whiskers-urlThis is the url to whiskers server. As stated above, you can use here
anything that can just eat the json-data we’re sending. If you leave this
empty or don’t set at all buildout.sendpickedversions just displays the data
dict.ExampleHere’s small example configuration.[buildout]
extensions = buildout.sendpickedversions
buildoutname = test
whiskers-url = http://localhost:6543/buildouts/add

parts = nose

[nose]
recipe = zc.recipe.egg
eggs = noseAbove example configuration assumes you haveWhiskersserver running locally on
port 6543. If you run buildout it will install nose normally to your buildout
environment and after everything is ready it will try to send following data in
json-format to localhost:6543/buildouts/add URL:{"buildoutname": "test",
 "packages": [
    {"version": "0.6.24", "name": "distribute"},
    {"version": "1.18", "name": "mr.developer"},
    {"version": "1.1.2", "name": "nose"},
    {"required_by": ["mr.developer 1.18"], "version": "1.5.2", "name": "zc.buildout"},
    {"version": "1.3.2", "name": "zc.recipe.egg"}
  ]
}ThanksCode is mainly based to Mustapha Benali’sbuildout.dumppickedversions. This
buildout extension has probably saved thousands of buildouts from nasty version
conflicts or total havoc. Huge thanks!Changelog0.0.1 (2013-01-15)Package fix
[aclark]0.0.0 (2013-01-15)Fork for pythonpackages.com
[aclark]
Package: python-package-template
Provides a command to easily create a standard Python package layout (i.e.
README, package directory, etc.), following theHitchhiker’s Guide to
Packaging.FeaturesCreates a complete Python package template, ready for creating distribution
files and uploading to thePython package index (PyPI).Uses Distribute by default.MANIFEST.in template, with inclusion of README and other standard files, as
well as ignoring ofdist/directory that gets created when building the
the package’s distribution files.No external dependencies, only relies on Python standard library.QuickstartRunpypack, specifying the name of your new package (optionally, use
command line options to provide additional information, seepypack-h).If you want to create a new Python package in an existing directory,
just specify the desired Python package name:pypack mynewpackageIf you want to specify different directory, you may optionally use the-t(or--target) option to specify a target, non-existent
directory:pypack mynewpackage -t /new/pathReview/edit the generated filesAdd your code, documentation, etc.Create distribution tarball:cd mynewpackage
python setup.py sdistRegister project on PyPI:python setup.py registerUpload to PyPI:python setup.py sdist uploadDownloadPyPI:http://pypi.python.org/pypi/python-package-template/Source:https://bitbucket.org/gdub/python-package-template/TODOSphinx documentation layout, or at least an option to create a docs
directory.Support for a license file, allowing selection from a list of common
open-source license templatesGitHub and Bitbucket compatibility for displaying readme filegit/hg ignore filesAllow use of config file to specify default options for author, license, etc.An interactive option that prompts for needed info.Similar Projectshttp://pypi.python.org/pypi/modern-package-template/
Package: python-package-test-james-mcdermott-7
python-package-exampleThis is a minimal python package, for use alongside the lesson:https://github.com/BillMills/pythonPackageLessonContributing:Please do! Guidelines:This lesson is for beginners. Yes there are plenty of super fancy things we don’t cover here; someday, we’ll make a different, super fancy lesson to teach those things.Max 100 lines per PR please.Open an issue or empty PR first to talk about controversial changes.
Package: python_packaging_demo
A sample Python projectLicensePYPIDescribeA sample project that demonstrate python packaging and upload to pypi.build && upload$ python setup.py sdist
$ python setup.py bdist_wheel
$ python setup.py register -r pypi
$ python setup.py sdist upload -r pypi
$ python setup.py bdist_wheel upload -r pypi
or
$ twine upload dist/*How to packagingrefer to:https://hynek.me/articles/sharing-your-labor-of-love-pypi-quick-and-dirty/andhttps://python-packaging-user-guide.readthedocs.org/en/latest/distributing.htmlDocssphinx:http://sphinx-doc.org/tutorial.htmlAdd shields and progress barhttp://shields.io/https://github.com/fehmicansaglam/progressed.ioChangelogchange logs.0.1.5/6 (2015-09-11)– update docs.– update docs and some shields.0.1.3/4 (2015-09-10)oh no.– fix CHANGE_LOG.0.1.2 (2015-09-10)– update CHANGE_LOG.0.1.1 (2015-09-10)– Fix README.0.1.0 (2015-09-10)Initial release.Creditspython_packaging_demois written and maintained bywebee.yw.ContributorsThe following wonderful people contributed directly or indirectly to this project:hyperwood.ywPlease add yourself here alphabetically when you submit your first pull request.
Package: python-packaging-distribution
python-packaging-distributionBasic Python Project for packaging and distributionFree software: GNU General Public License v3Documentation:https://python-packaging-distribution.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2018-10-21)First release on PyPI.
Package: python_packaging_flit_wise
DocsTesting out publishing packages with the help of this awesome dudehttps://github.com/nalgeon/podsearch-pydocserrorsYaml not found, that's ok! Learn more athttp://docs.codecov.io/docs/codecov-yamlhttps://docs.codecov.io/docs/codecov-yamlCICDcodecovcodeclimate14 day trialmake file- like javascripts scripts section in package.jsonPodcast searcherSearch any podcast in iTunes librarypodsearchfinds podcasts viaiTunes Search API.Search parameters:query- search string (name, author etc)country- ISO alpha-2 country code (us, de, fr etc), default: uslimit- maximum number or search results, default: 5Returned attributes for each podcast:id- iTunes ID (e.g.,979020229)name- podcast name (Talk Python To Me)author- author name (Michael Kennedy (@mkennedy))url- Apple Podcasts URL (https://podcasts.apple.com/us/podcast/id979020229)feed- podcast RSS URL (https://talkpython.fm/episodes/rss)category- main category (Technology)image- 600x600px image URL (https://is4-ssl.mzstatic.com/image/.../600x600bb.jpg)country- ISO alpha-3 country code (USA)episode_count- episode count this year (26)InstallationpipinstallpodsearchUsageSearch podcasts by query:>>>importpodsearch>>>podcasts=podsearch.search("python",country="us",limit=10)>>>podcasts[0].name'Talk Python To Me'>>>podcasts[0].author'Michael Kennedy (@mkennedy)'>>>podcasts[0].url'https://podcasts.apple.com/us/podcast/id979020229'Retrieve podcast by iTunes ID:>>>importpodsearch>>>podcast=podsearch.get(979020229)>>>podcast.name'Talk Python To Me'Development setup$python3-mvenvenv
$.env/bin/activate
$makedeps
$toxContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Make sure to add or update tests as appropriate.UseBlackfor code formatting andConventional Commitsfor commit messages.ChangelogLicenseMIT
Package: python-pae
Pre-authentication encoding in PythonThis minimal library offers an implementation of (a variant of)PASETO’s pre-authentication encoding
(PAE) scheme in Python, with some extra tools to handle data types other than lists of byte arrays.Why use pre-authentication encoding?When passing around data between services, it’s often necessary to authenticate and validate
encoded messages. When those messages are flat byte streams, that’s easy enough. However,
when authenticating complex data structures with many fields (some of which may be optional or
perhaps exempt from authentication), the input data must first be serialised before it can
be passed on to the authentication mechanism.
The interchange formats that are commonly used to hold such complex data in transit between web
services (e.g. JSON or HTTP query parameters) are poorly suited for this task.Naively concatenating all inputs before authentication is typically not a good idea, since
it can lead to vulnerabilities throughlength extension attacksor other types ofcanonicalisation attacks.Pre-authentication encoding (PAE) can help you protect yourself against a large class of such
exploits, by explicitly making thenumberof data fields and thelengthof each field part of
the data covered by the MAC/signature.PAE can be used explicitly or implicitly. In the explicit case, PAE serves as both the interchange
format and the authentication format.
In the implicit case, PAE is used to preprocess data in some other container format before
signing/authenticating it, but its output isn’t transmitted directly.A typical use case would be asignatureentry in a JSON object that authenticates one or more
of its sibling entries. The signature value would then be computed by applying PAE to the
authenticated sibling entries, and passing the result to the signature algorithm.RequirementsRequires Python 3.7 or later.NotesThis library has no runtime dependencies, and does not supply any cryptographic operations.
Its main purpose is to preprocess complex data structures before authenticating their contents
using a MAC or digital signature. The actual authentication mechanism is out of scope, and left
to the caller.
This library also does not offer any abstractions to handle token expiration, revocation,
algorithm selection or anything of the sort.StabilityExperimental.LinksHomepageDocumentationPyPI
Package: python-paginator
Example of usage:frompaginatorimportcoreobject_list=[obj_1,obj_2,obj_n...]paginator=core.paginate(object_list,page_limit=50,start_page=0)Get current page response:paginator.responseWhen callingnextorpreviouspage you can access new page data withpaginator.responseGet next page:paginator.get_next()Get previous page:paginator.get_previous()Get response of requested page number:paginator.get_page_response(page_number=0)Total pages:paginator.total_pagesCount objects:paginator.totalIterating over paginator pagesforpageinpaginator:...
Package: python-pallycon
python-pallyconThe Python SDK forPallyconInstallation$pipinstallpython-pallyconUsagefrompallyconimportPallyConClient# Initialise the clientclient=PallyConClient(site_id="TUTO",site_key="lU5D8s3PWoLls3PWFWkClULlFWk5D8oC",access_key="LT2FVJDp2Xr018zf4Di6lzvNOv3DKP20",drm_type=PallyConClient.DrmType.WIDEVINE.value,user_id="test-user",content_id="bigbuckbunny",license_rule={"playback_policy":{"limit":True,"persistent":False,"duration":3600}},)# Get the license tokenlicense_token=client.license_token# Package media file to DASH formatclient.package_to_dash("Test Song.mp4","Test Song","Song ID")# Package media file to HLS formatclient.package_to_hls("Test Song.mp4","Test Song")
Package: python-pam
python-pamPython pam module supporting py3 (and py2) for Linux type systems (!windows)Commandline example:[david@Scottpython-pam]$pythonpam/pam.py
Username:david
Password:
Authresult:Success(0)PamEnvironmentListitem:XDG_SEAT=seat0
PamEnvironmentitem:XDG_SEAT=seat0
MissingPamEnvironmentitem:asdf=None
Opensession:Success(0)Closesession:Success(0)Inline examples:[david@Scottpython-pam]$pythonPython3.9.7(default,Oct102021,15:13:22)[GCC11.1.0]onlinuxType"help","copyright","credits"or"license"formoreinformation.>>>importpam>>>p=pam.authenticate()>>>p.authenticate('david','correctpassword')True>>>p.authenticate('david','badpassword')False>>>p.authenticate('david','correctpassword',service='login')True>>>p.authenticate('david','correctpassword',service='unknownservice')False>>>p.authenticate('david','correctpassword',service='login',resetcreds=True)True>>>p.authenticate('david','correctpassword',encoding='latin-1')True>>>print('{}{}'.format(p.code,p.reason))0Success>>>p.authenticate('david','badpassword')False>>>print('{}{}'.format(p.code,p.reason))7Authenticationfailure>>>Authentication and privilegesPlease note, python-pam andalltools that do authentication follow two rules:You have root (or privileged access): you can check any account's password for validityYou don't have root: you can only check the validity of the username running the toolIf you need to authenticate multiple users, you must use an authentication stack that at some stage has privileged access. On Linux systems one example of doing this is using SSSD.Typical Linux installations check against/etc/shadowwithpam_unix.sowhich will spawn/usr/bin/unix_chkpwdto verify the password. Both of these are intentionally written to meet the above two rules. You can test the functionality ofunix_chkpwdin the following manner:Replacegoodwith the correct password, replacedavidwith your appropriate username.~$ mkfifo /tmp/myfifo

~$ (echo -ne 'good\0' > /tmp/myfifo & /usr/bin/unix_chkpwd david nullok < /tmp/myfifo ) ; echo $?
0

~$ (echo -ne 'bad\0' > /tmp/myfifo & /usr/bin/unix_chkpwd david nullok < /tmp/myfifo ) ; echo $?
7

~$ (echo -ne 'good\0' > /tmp/myfifo & /usr/bin/unix_chkpwd someotheruser nullok < /tmp/myfifo ) ; echo $?
9