Saravanan666/pypi-org huggingface dataset:
Package: pypi-stat
All the docs are onhttp://pypi-stat.readthedocs.organd when rtds don’t work fall back herehttp://packages.python.org/pypi-stat/Source:http://github.com/jul/pypi-statTickethttp://github.com/jul/pypi-stat/issuesGetting statsusage:usage: pypi_get_stat.py [-h] [-q] [package_name [package_name ...]]

Gathers download stats from pypi regarding the download information of the
geiven package. Print them, and stores them in a file for further use. If no
package name are provided, it will try to get all packages known from
previously fetched stats. -q will print less output (only warnings and errors)

positional arguments:
    package_name  package name to be retrieved

optional arguments:
    -h, --help    show this help message and exit
    -q, --quiet   less verbose outputGraphing statsusage:usage: pypi_graph_stat.py [options]

 options:
   -h, --help            show this help message and exit
   -k KEY                keys to plot in stored stats amongst av_dl, total_dl,
                         min_dl','max_dl'
   -f _FROM, --from=_FROM
                         min date from which to plot
   -t _TO, --to=_TO      maximum date to which to plot
   -o _DEST, --output=_DEST
                              filename of the output image. Don't create output
                         directory if non existant. If this is enabled output
                         in TK backend is desactivated.
   -p _PACKAGE, --package=_PACKAGE
                         packages for wich to graphYou’ll need matplotlib and numpy to plot the graphs. Read the doc (installation
section) for more informations.Changelogfighting debian and my typosfixing a dependency. I really like the install fails before test mechanisms
but if nobody opens a ticket I won’t be able to know that it fails.1.3.0using https to make pypi stat great again and fonctionnal :)1.3.1totally forgot the requirement on archery since day 11.3.2you learn everyday :) my install_require was overkill
Package: pypit
Pypit (pronounce “Pipe it!”) is a python library for building shell pipeline easily via configuration.The principe is simple: create a configuration which describes a programmes list with all options and your done.ExempleLet’s say we have afile.txtwith the following content:HellO
Foo
BAR
BlaThe following configuration will sort thefile.txtand lower all capitalize chars:>>> config = [
...    {
...        "cmd": "sort -r {{input}}",
...    },
...    {
...        "cmd": "tr A-Z a-z",
...        "use_stdin": True
...    }
...]To process this configuration:>>> from pypit import Pypit
>>> result = Pypit(config).run(file_name="file.txt")
>>> print result
hello
foo
bla
barExplanationOnlycmdis required. This is the command line to use.Ifuse_sdtinis True, the input will be take from the standard input.{{input}}will describes the input file given to therunfunction. You can use a the{{output}}description to specify output file. Be carrefull to specify theoutput_extthen:>>> config = [
...    {
...        'cmd': 'sort -r {{input}} {{output}}',
...        'output_ext': sorted # we need to specify the output extension. Here, the file will be "file.txt.sorted"
...    },
...    {
...        'cmd': 'wc -c {{input}}',
...    }
...]
>>> Pypit(config).run(file_name='file.txt')
'6\n'Note that if the file is in another directory, you can specify if withcwdargument:>>> Pypit(config).run(file_name='file.txt', 'cwd'='/tmp')
'6\n'Finally, it is possible to take a look at the generated command line via thecmdlineattribute:>>> pypit = Pypit(config)
>>> res = pypit.run(file_name='file.txt')
>>> pypit.cmdline
'sort -r file.txt file.txt.sorted && wc -c file.txt.sortedErrors may occure in your pipeline. To debug it and display errors use theerrorsattribute which act like a file:>>> pypit.errors.read()Shell script usagePypit package provides a shell commands to execute pypit configuration in yaml format. To do the following example, you have to create aconfig.yamlfile:-
    path: /bin
    shell: true
    name: echo "12345"

-
    path: /usr/bin
    name: wc
    input: STDIN
    options: -cthen call thepypitprogramme with the config file as argument:$ pypit config.yaml
6If you build your config to handle dynamic file, you can pass those file in arguments:-
    path: /usr/bin
    name: sort
    input: STDIN
    options: -r
-
    path: /usr/bin
    name: wc
    input: STDIN
    options: -l

$ pypit config.yaml file.txt
6Versionv0.2.2add errors handlev0.2.1fix issue when with utf-8 optionsv0.2add dynamic file input support
Package: pypitch
PyPitchPyPitch is a C++-extension in Python to analyse audio streams for pitch.SetupBuild the extension:$ python setup.py build_ext --inplace --forceInstall it:$ python -m pip install .UsageImport it:from pypitch import pypitchDocTo build the html doc from source::$ python -m pip install -e .[docs]
$ cd doc
$ make htmlor::$ python -m pip install -e .[docs]
$ python setup.py build_sphinx
Package: pypi-tdb
tdbA text based database with tagging.Usage: py -m tdb [add | edit | remove | template | show | open | listen] [text | options]
----------------------------------------------------------------
Commands:
add:            Make a record when text is supplied. Otherwise, open an editor to write one.
edit:           Open an editor with some view of the database, see options.
remove:         Move matching records to the archive.
template:       Open an editor to write a record with the passed template file as a basis.
open:           Open tdbs files: tdb open ['archive', 'config', 'db']
listen:         Starts a server listening on passed port.
----------------------------------------------------------------
Options:
span:           The records to select, example: span:7d is the last 7 days.
as:             The format to see the records in. Only valid for show currently. [html, json, list, tags]
@{tag}:         This tag or any others must be included, example: @notes @school, records must have either.
+@{tag}:        This tag and any others must be included. i.e. +@notes +@school, records must have both.
-@{tag}:        This tag must not be included. i.e. -@notes @school, records for school, no notes.
{text}:         This text is optional.
+{text}:        This text must be included.
-{text}:        This text must not be included

Note, text must be quoted if there are spaces.
Package: pypi-template-castellani-davide
pypi-templateDescriptionThis is the Pypi default template.Requiredpython3pipDirectories structure.githubISSUE_TEMPLATEbug_report.mdfeature-request.mdworkflowspypi-on-push.ymlpypi-on-release.ymlpython-test.ymltemplate__init__.pytest-template.pydocsLICENSEREADME.mdlogtrace.logrequirementsrequirements.txt.gitignoresetup.pyExecution examplespython3 template.pypython3 test_template.pyChangelogVersion_1.0_2021-02-10Version_1.0_2021-02-10Initial versionMade by Castellani Davide
If you have any problem please contact me:help@castellanidavide.itIssue
Package: pypi-test-1108
📦 setup.py (for humans)This repo exists to providean example setup.pyfile, that can be used
to bootstrap your next Python project. It includes some advanced
patterns and best practices forsetup.py, as well as some
commented–out nice–to–haves.For example, thissetup.pyprovides a$ python setup.py uploadcommand, which creates auniversal wheel(andsdist) and uploads
your package toPyPiusingTwine, without the need for an annoyingsetup.cfgfile. It also creates/uploads a new git tag, automatically.In short,setup.pyfiles can be daunting to approach, when first
starting out — even Guido has been heard saying, "everyone cargo cults
thems". It's true — so, I want this repo to be the best place to
copy–paste from :)Check out the example!Installationcdyour_project# Download the setup.py file:#  download with wgetwgethttps://raw.githubusercontent.com/navdeep-G/setup.py/master/setup.py-Osetup.py#  download with curlcurl-Ohttps://raw.githubusercontent.com/navdeep-G/setup.py/master/setup.pyTo DoTests via$ setup.py test(if it's concise).Pull requests are encouraged!More ResourcesWhat is setup.py?on Stack OverflowOfficial Python Packaging User GuideThe Hitchhiker's Guide to PackagingCookiecutter template for a Python packageLicenseThis is free and unencumbered software released into the public domain.Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any means.
Package: pypi-test-castellani-davide-01-01-castellani-davide
pypi_test_castellani_davide_01_01DescriptionDescrizioneRequiredpython3pipDirectories structure.githubISSUE_TEMPLATEbug_report.mdfeature-request.mdworkflowspypi-on-push.ymlpypi-on-release.ymlpython-test.ymlpypi_test_castellani_davide_01_01__init__.pytest-pypi_test_castellani_davide_01_01.pydocsLICENSEREADME.mdlogtrace.logrequirementsrequirements.txt.gitignoresetup.pyExecution examplespython3 pypi_test_castellani_davide_01_01.pypython3 test_pypi_test_castellani_davide_01_01.pyChangelogVersion_1.0_2021-2-11Version_1.0_2021-2-11Initial versionMade by Castellani Davide
If you have any problem please contact me:help@castellanidavide.itIssue
Package: pypitesty
All rights reserved.Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Description-Content-Type: text/markdown
Description: pyconn3 is a tool set which include:Connect and query kdb+, Oracle databaseSend message viawechatRequirements
- Python 3.6+
- qpython
- pandas
- cx_OraclePlatform: UNKNOWN
Package: pypi-timemachine
Do you wish you could just install packages with pip as if you were at
some fixed date in the past? If so, the PyPI time machine is for you!Disclaimer:this is alpha-quality software - for now it is a quick hack,
but I’d love to make this more robust/usable with your help!InstallingTo install:pip install pypi-timemachineUsingOnce installed, you can run a PyPI server with:pypi-timemachine 2014-02-03or if you need to specify a precise time (in UTC):pypi-timemachine 2014-02-03T12:33:02This will start up a Flask app, and will print out a line such as:Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)You can then call pip with:pip install --index-url http://127.0.0.1:5000/ astropyand this will then install the requested packages and all dependencies,
ignoring any releases after the cutoff date specified above.Caveats/warningsIf a package is already installed, pip will not try installing it again.
This means that if e.g. you try and run pip as described above, but the
package you are trying to install (or any of its dependencies) is
already installed, no matter how recent the version, it will not be
installed again. Therefore, I recommend using pip with the custom index
URL inside a clean environment (but you can run thepypi-timemachinecommand inside your regular environment.)
Package: pypitoken
PyPIToken is an open-source Python 3.8+ library for generating and manipulating
PyPI tokens.PyPI tokens are very powerful, as that they are based onMacaroons. They allow
the bearer to add additional restrictions to an existing token. For example, given
a PyPI token that can upload releases for any project of its owner, you can generate
a token that will only allow some projects, or even a single one.Here’s an example:$pipinstallpypitokenimportpypitokentoken=pypitoken.Token.load("pypi-foobartoken")print(token.restrictions)# [ProjectIDsRestriction(project_ids=["00000000-0000-0000-0000-000000000000"])]token.restrict(project_names=["requests"])print(token.restrictions)# [#     ProjectIDsRestriction(project_ids=["00000000-0000-0000-0000-000000000000"]),#     ProjectNamesRestriction(project_names=["requests"]),# ]token.dump()# pypi-newfoobartokenThis token we’ve created above will be restricted to uploading releases ofrequests.
Of course, your PyPI user will still need to have upload permissions onrequestsfor this to happen.The aim of this library is to provide a simple toolbelt for manipulating PyPI tokens.
Ideally, someday, PyPI (Warehouse) itself may generate their tokens using this
library too. This should make it easier to iterate on new kinds of restrictions for
PyPI tokens, such as those discussed in theoriginal implementation issue.A discussion for integrating this library to the Warehouse environment is ongoing:In thePython Packaging discussionsfor putting the project under the PyPA umbrellaIn theWarehouse trackerfor replacing the current macaroon implementation with
this libWhere to go from hereThe completedocsis probably the best place to learn about the project.If you encounter a bug, or want to get in touch, you’re always welcome to open aticket.
Package: pypi-token-client
pypi-token-clientLibrary and CLI tool for creating and managing PyPI project tokens.PurposePyPI allows the creation of per-project tokens butdoesn'tcurrently have an API
to do so. While integration with CI providers isplanned,
apparently there isno planfor an API that would allow one to create tokens from a local development
machine.This tool seeks to provide a client exposing this functionality anyway by
whatever means necessary.Operating principleBecause there is no API and I'm also too lazy to try and figure out the exact
sequence of HTTP requests one would have to make to simulate what happens when
requesting tokens on the PyPI website, for now this tool just usesPlaywrightto automate performing the
necessary steps in anactualbrowser.This might be overkill and brittle but it works for now 🤷InstallationTo install from PyPI:pip3installpypi-token-clientYou'll also have to install the required Playwright browsers (currently just
Chromium):playwrightinstallchromiumCommand-line tool usageTo create a tokenyourtokennamefor your PyPI projectyourproject:pypi-token-clientcreate--projectyourprojectyourtokennameThere are more commands - please refer to the docs.Usage as a libraryBasic example script:importasynciofromosimportgetenvfrompypi_token_clientimport(async_pypi_token_client,SingleProject,PypiCredentials)credentials=PypiCredentials(getenv("PYPI_USER"),getenv("PYPI_PASS"))assertcredentials.usernameandcredentials.passwordasyncdefmain()->str:asyncwithasync_pypi_token_client(credentials)assession:token=awaitsession.create_token("my token",SingleProject("my-project"),)returntokentoken=asyncio.run(main())print(token)More informationFor more detailed usage information and the API reference, refer tothe documentation.LicenseMIT License, seeLICENSEfile.
Package: pypi-tools
==========pypi-tools==========Package pypi-tools contains now only one script called ``pypi``.It is command line utility for searching in Python Package Index.Usage=====Let's find something. What about some django gravatar application?$ pypi django avatar$Hmm, nothing. Ok, maybe just gravatar? :)$ pypi gravatardjango-gravatar                - Gravatar Support in a Django Reusable Applicationgravatar                       - Gravatar generator. Includes all API parameters included in their documentation.tw.gravatar                    - inserts gravatar imagestw.gravatar                    - inserts gravatar imagesCool. It found something. Duplicated tw.gravatar line looks like a bug :)Let's see what is tw.gravatar.$ pypi -s tw.gravatarname:                tw.gravatarsummary:             inserts gravatar imagesversion:             0.1a0dev-20100727author:              Nicolas Lauranceauthor_email:        nicolas[dot]laurance<at>gmail.comkeywords:            toscawidgets.widgets,gravatarclassifiers:         Development Status :: 3 - AlphaEnvironment :: Web EnvironmentEnvironment :: Web Environment :: ToscaWidgetsFramework :: TurboGears :: Widgets...Ooops, it is not django application.``pypi`` command understand complex search queries. You can see the list of searchoperators in ``pypi -h`` output.Here is example of searching all crap I have uploaded on the Python Package Index:lorien@big:/web/pypi-tools$ ./pypi --author_email lorien@lorien.namedjango-account                 - Django application for registration and authenticationdjango-bookmarker              - Social bookmark linskdjango-common                  - A number of useful django shortcuts and helpers...
Package: pypi-to-sqlite
pypi-to-sqliteLoad data about Python packages from PyPI into SQLiteInstallationInstall this tool usingpip:pip install pypi-to-sqliteUsageTo create a SQLite database with details of one or more packages, run:pypi-to-sqlite pypi.db datasette sqlite-utilsYou can also process JSON that you have previously saved to disk like so:curl -o datasette.json https://pypi.org/pypi/datasette/json
pypi-to-sqlite pypi.db -f datasette.jsonThe tool will create three tables:packages,versionsandreleases. The full table schema is shown below.To create the tables with a prefix, use--prefix prefix. For example:pypi-to-sqlite pypi.db datasette --prefix pypi_This will create tables calledpypi_packages,pypi_versionsandpypi_releases.Database schemaCREATETABLE[packages]([name]TEXTPRIMARYKEY,[summary]TEXT,[classifiers]TEXT,[description]TEXT,[author]TEXT,[author_email]TEXT,[description_content_type]TEXT,[home_page]TEXT,[keywords]TEXT,[license]TEXT,[maintainer]TEXT,[maintainer_email]TEXT,[package_url]TEXT,[platform]TEXT,[project_url]TEXT,[project_urls]TEXT,[release_url]TEXT,[requires_dist]TEXT,[requires_python]TEXT,[version]TEXT,[yanked]INTEGER,[yanked_reason]TEXT);CREATETABLE[versions]([id]TEXTPRIMARYKEY,[package]TEXTREFERENCES[packages]([name]),[name]TEXT);CREATETABLE[releases]([md5_digest]TEXTPRIMARYKEY,[package]TEXTREFERENCES[packages]([name]),[version]TEXTREFERENCES[versions]([id]),[packagetype]TEXT,[filename]TEXT,[comment_text]TEXT,[digests]TEXT,[has_sig]INTEGER,[python_version]TEXT,[requires_python]TEXT,[size]INTEGER,[upload_time]TEXT,[upload_time_iso_8601]TEXT,[url]TEXT,[yanked]INTEGER,[yanked_reason]TEXT);pypi-to-sqlite --helpUsage: pypi-to-sqlite [OPTIONS] DB_PATH [PACKAGE]...

  Load data about Python packages from PyPI into SQLite

  Usage example:

      pypi-to-sqlite pypy.db datasette sqlite-utils

  Use -f to load data from a JSON file instead:

      pypi-to-sqlite pypy.db -f datasette.json

  Created tables will be packages, versions and releases

  To create tables called pypi_packages, pypi_versions, pypi_releases use
  --prefix pypi_:

      pypi-to-sqlite pypy.db datasette sqlite-utils --prefix pypi_

Options:
  --version            Show the version and exit.
  -f, --file FILENAME  Import JSON from this file
  -d, --delay FLOAT    Wait this many seconds between requests
  --prefix TEXT        Prefix to use for the created database tables
  --help               Show this message and exit.DevelopmentTo contribute to this tool, first checkout the code. Then create a new virtual environment:cd pypi-to-sqlite
python -m venv venv
source venv/bin/activateNow install the dependencies and test dependencies:pip install -e '.[test]'To run the tests:pytest
Package: pypitzer
PyPitzerauthors: Yiping Liu, Thomas Wagner, Tobias FußwinkelIntroductionThis package is for low-temperature themodynamic modeling with the accurate Pitzer model
and its application in quantification fluid inclsuion data and calculation of uncertainties propagated
in this modeling / quantification process.To quantify fluid inclusion data, you the following necessary data:measure microthemometryaccurate last solid phase (e.g. NaCl·H2O)melting temperatre of this last phase (Tm)element/Na ratios from LA-ICP-MS analysisnote the elemental/Na refers to molar ratios, some conversion may be needed.Installationpreparing...ExampleAfter installation. Here is an example:# import the FluidPitzer classfromPitzer.modelsimportFluidPitzer# aqueous species determined in LA-ICP-MS analysisspecies={'Na+':1,# always be 1 if Na is the internal standard'K+':2,# K/Na = 2}# create a fluid object with information from microthemometric and LA-ICP-MS datafluid=FluidPitzer(# the initial guessx0=(3,3),# species defined beforespecies=species,# the last melting solidsolids=['KCl'],# melting temperature of the last solid, °Ct=25,)result=fluid.optimize()print(result)the output will be:# Na        Cl1.84525981,5.53577942in molality.Cite this package...
Package: pypiuma
A library to use Piuma with Python and DjangoInstallpip install pypiumaUsagefrompypiumaimportpiuma_urlpiuma_url("http://mypiumahost","http://myimagehost/static/img/a.png",200,200,80)Usage with Django{% load pypiuma_tags %}<imgsrc="{% piuma 'http://myimagehost/static/img/a.png' width=200 convert_to="auto"%}"><imgsrc="{% piuma_static 'img/mylogo.png' width=200 %}">Picture tags{% load pypiuma_tags %}

{% piuma_picture 'http://myimagehost/static/img/a.png'%}
{% piuma_picture_static 'img/a.png' %}SettingsPIUMA_DISABLEDDisable Piuma core, useful in development.Default:FalsePIUMA_HOSTThe host of your Piuma instance.Default:/piuma/PIUMA_MEDIA_RULESMedia rules for picture tags.Default:(max-width:576px),(max-width:768px),(max-width:992px),(max-width:1366px)PIUMA_SIZESFast configurations for your images. These can be handy if you want to
define different sizes likesmall,medium,fullto serve the
best optimized version of the image for your needs. The*size, if
defined, is applied to all images imported with a tag that do not
specify a size.Default:{}Example:{"*":{"convert_to":"auto","quality":80},"small":{"width":300,"convert_to":"auto","quality":80},"medium":{"width":500,"convert_to":"auto","quality":80},"large":{"width":1000,"convert_to":"auto","quality":80}}Run testspip install -r requirements-dev.txt
make test
Package: pypiup
# pypiup [![travis][travis-image]][travis-url] [![codecov][codecov-image]][codecov-url] [![pypi][pypi-image]][pypi-url]
Check whether your PyPI requirements are up to date. [Demo](https://asciinema.org/a/41124)[![press][press-image]][press-url]### Installation
You can installpypiupthrough pypi.sudo pip install pypiup### Usage
The command you can use ispypiup. Use–helpto see all the available options.> pypiup –help
Usage: pypiup [OPTIONS]PyPIup
Check whether your PyPI requirements are up to date.Options:-r,--requirementTEXTSpecify the path of the requirements file. Defaults
to “requirements.txt”.-d,--demoLoad the demo requirements.txt file that comes with
the package.--helpShow this message and exit.### Developmentpyvenv env
source env/bin/activatepip install -r requirements.txt
python pypiup/cli.py –help
python pypiup/cli.py –demo### Tests
In order to run the tests you will have to run:python runtests.py### ContributingFork it!Create your feature branch:git checkout -b my-new-featureCommit your changes:git commit -am ‘Add some feature’Push to the branch:git push origin my-new-featureSubmit a pull requestMake sure tests are passing[travis-image]:https://travis-ci.org/manosim/pypiup.svg?branch=master[travis-url]:https://travis-ci.org/manosim/pypiup[codecov-image]:https://codecov.io/github/manosim/pypiup/coverage.svg?branch=master[codecov-url]:https://codecov.io/github/manosim/pypiup?branch=master[pypi-image]:https://badge.fury.io/py/pypiup.svg[pypi-url]:https://pypi.python.org/pypi/pypiup/[press-image]:https://cloud.githubusercontent.com/assets/6333409/14223693/82be7bce-f87b-11e5-9fe7-abf12b4bd235.png[press-url]:https://github.com/manosim/pypiup