Saravanan666/pypi-org huggingface dataset:
Package: pyphptree
pyPhpTree moduleModule for Python 3. Tiny parser of PHP source code, which finds lines
with class/function/namespace/trait declarations. It reads PHP code only
inside<? ...?>tags (any count of fragments in one file), and
outside of/* ... */and// ...comments, and outside of
single/double-quoted strings (multi-line strings supported, escape
backslash supported), and outside of heredoc/herenow blocks.APIFunctionget_headers(filename, lines)finds all entities, in given
“lines” list, and gets dicts:{
  'line': int,      # 0-based line index, where name found
  'col': int,       # 0-based position in line, where name found
  'level': int,     # 0-based level of item. each item of level K+1
                    # is nested into (nearest upper) item of level K
  'name': str,      # name of entity
                    # empty for anonymous funcs
  'kind': str,      # "class", "function", "namespace", "trait"
}It’s generator (yield), so to get list, uselist(get_headers(...)).
Package: pyphrase
pyphraseUnofficial Python client for interacting with the Phrase TMS API (formerly Memsource).About The ProjectWork in progress, with some wrinkles to be ironed out and tests to be written. Remember to pin version if you use this for something important!Modern Python client for interacting with the Phrase TMS API, both for sync and async use.Implements all documented paths and operations from #latestTyped (where possible) for validation and code completion supportFully documented methods with complete content of the Phrase TMS API docssync and async clientsNew in 0.3Support for pydantic 2.xUpdated models with current standingFixed many issues, including header encoding for job creationStill work in progress and a lot to do(back to top)Built WithThe code is based on thePhrase TMS OpenAPI docsas of January 2024, which was parsed usingdatamodel-code-generatorfor the models
and a slightly modified version ofswagger-tofor the methods.(back to top)Getting StartedInstallationInstall via pippipinstallpyphraseOr clone the repogitclonehttps://github.com/kuhnemann/pyphrase.git(back to top)UsageInitialize the client with the base URL of your Plunet instance, authenticate and start doing whatever you aim to do.frompyphraseimportSyncPhraseTMSClient,sync_get_phrase_tms_tokenphrase_client=SyncPhraseTMSClient()token_object=sync_get_phrase_tms_token(username=username,password=password)project_data=phrase_client.project.getProject(token_object.token,projectUid="YOURPROJECT")Complex objects are included by default, as generated by datamodel-code-generator.(back to top)See theopen issuesfor a full list of proposed features (and known
issues).(back to top)ContributingContributions are what make the open source community such an amazing place to learn, inspire, and create. Any
contributions you make aregreatly appreciated.If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also
simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!Fork the ProjectCreate your Feature Branch (git checkout -b feature/AmazingFeature)Commit your Changes (git commit -m 'Add some AmazingFeature')Push to the Branch (git push origin feature/AmazingFeature)Open a Pull Request(back to top)LicenseDistributed under the MIT License. SeeLICENSEfor more information.(back to top)ContactHenrik Kühnemann -@hkuhnemann-hello@yellownape.seProject Link:https://github.com/kuhnemann/pyphrase(back to top)(back to top)
Package: pyphrasy
# pyphrasy - Склонение по падежам русских словосочетаний.Мы долго искали способ, как просклонять сложные названия в проекте. Нашли платную библиотеку,
но тем интереснее стало написать своё открытое решение.Всё просто: устанавливаете пакетpyphrasyи:import pymorphy2
from pyphrasy.inflect import PhraseInflectormorph = pymorphy2.MorphAnalyzer()
inflector = PhraseInflector(morph)
form = ‘gent’
print inflector.inflect(phrase, form)Вся работа основана на библиотеке [pymorpy2](https://pymorphy2.readthedocs.org), которая, в свою очередь,
активно использует словари [OpenCorpora](http://opencorpora.org/).Если вам нравится проделанная работа и вы хотите внести свою лепту - помогите проекту OpenCorpora,
это совсем не сложно.# Веб-сервисПроект [запущен на Heroku](http://pyphrasy.herokuapp.com/), и имеет API наhttp://pyphrasy.herokuapp.com/inflect.
Ожидаю запрос с двумя параметрами:phrase - что склонятьforms - один элемент или список падежей или/и чисел по сокращениям в pymorphy2, разделённые запятойНапример:http://pyphrasy.herokuapp.com/inflect?phrase=склонятор%20словосочетаний&forms=gent,plur&forms=datv# Как запустить на своем хостингеВеб-сервис написан на python и испольузет фреймворк Flask. Для работы потребуется установка пакетов, указаных в requirements.txt.По желанию можно использовать [virtualenv](http://www.unix-lab.org/posts/virtualenv/).Инструкция для чайников:Скопировать исходный код с github1.1. Создать и активировать окружение virtualenv (необязательно)$ virtualenv .env
$ source .env/bin/activateУстановить зависимости$ pip install -r requirements.txtЗапустить сервис через gunicorn$ gunicorn app:appПроверить работоспособность$ curl “http://localhost:8000/inflect?phrase=%D1%80%D0%B0%D0%B1%D0%BE%D1%87%D0%B0%D1%8F%20%D0%BA%D0%BE%D0%BF%D0%B8%D1%8F&cases=accs&cases=datv”
Package: pyphy
pyphyPython library that interacts with NCBI taxonomyThis is the Python implementation of the blog posthttp://dgg32.blogspot.com/2013/07/pyphy-wrapper-program-for-ncbi-sqlite.html.Getting StartedThese instructions will get you a copy of the project up and running on your local machine for development and testing purposes.PrerequisitessqlitePreparing the backend databaseNotice: please perform this step periodically to stay up to date with the NCBI Taxonomy.Download the taxdmp.zip fromftp://ftp.ncbi.nlm.nih.gov/pub/taxonomy/and unzip it.python prepyphy.py [ncbi_download_folder] [db_path]This step will set up the "db_path" in pyphy.config automatically.If you move the database afterwards, please don't forget to refresh db_path in pyphy.config.Using the libraryInstall the library via pippip install pyphyThen you can import the pyphy library in your Python code byimport pyphypyphy provides the following queries inside the NCBI taxonomy:Taxonomy name <-> NCBI TaxIDNCBI TaxID -> Full lineageNCBI TaxID -> Taxonomic rankNCBI TaxID -> all childrenFor code examples and documentation please refer to documentations.AuthorsSixing Huang-Concept and CodingLicenseThis project is licensed under the MIT License - see theLICENSEfile for details
Package: pyphylip
About pyphylipRead and write files in the phylip sequenceformat.InstallationBecause pyphylip has been packaged for pypi,
it can be installed using:$ pip install pyphylipUsageDecode a phylip sequence file given a source of lines in the file:>>> with open('infile.phy') as f:
...     headers, sequences = pyphylip.decode(f)Encode some headers and corresponding sequences as a phylip sequence file:>>> with open('outfile.phy', 'w') as f:
...     f.write(pyphylip.encode(headers, sequences) + '\n')
Package: pyphysim
PyPhysimSimulation of Digital Communication (physical layer) in Python.This includes classes related to digital modulation (M-QAM, M-PSK, etc), AWGN
channel, Rayleigh and tapped delay line channel models, channel estimation,
MIMO, OFDM, etc.. It also includes classes related to multiuser transmission,
such as block diagonalization, interference alignment, etc., as well as classes
representing access nodes and users for easily creating physical layer
simulations.Furthermore, a framework for implementing Monte Carlo simulations is also
implemented (see the pyphysim.simulations package) to help with creating
simulators that run many independent realizations and average the results.InstallationPyphysim is available inPypiand can be
installed with pip or similar tools. If you want to install from the git
repository, then installpoetryfirst, clone the
repository, and run the commandpoetry installfrom the cloned folder to
install pyphysim and its dependencies in a virtual environment (created by
poetry). After that, just usepoetry shellto activate the environment and you
should be able to import pyphysim from python started in that shell.ExamplesThere are a few notebooks in thenotebooksfolder in
the GitHub repository. A list of some of the notebooks with a small description
is shown below for quick access.Transmission_with_AWGN_channel.ipynb:
Illustrates the use of digital modulation to transmit through an AWGN channel
and the usage of classes that help creating Monte Carlo simulationsTransmission_with_Rayleigh_and_AWGN_channels.ipynb: Extends the previous notebook to transmission through a Rayleigh channel and discuss running simulationTDL_and_OFDM.ipynb: Simulation of transmission through a frequency selective channel that varies in time using OFDMPathLoss classes.ipynb: Illustrate some path loss classesAlamouti.ipynb: Illustrates how to simulate using multiple antennas and how to use configuration files
Package: pypi1108
📦 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: pypi2pkgsys
Generate package files from PyPI index.Now only ebuild for gentoo is generated. spec for rpm-base distribution,dpkg for dpkg-base distribution will be added in future.Many features are provided:* Pre-defined, user-defined schemes for different usage.* Update from PyPI and cached into localhost scheme is provided.* Update from localhost scheme is provided, so the package file will not have to be downloaded again and again.* Wildcard is permitted in package names. For example: [Aa]*.* Offline mirror support: Cache the downloaded packages and generate localhost cache entries index in the PyPI format. So we can treat our local-machine as a PyPI server.* Full automatically log, all passed or failed packages(with fail reason) are recorded in log.* Some packages can be masked for manually written ebuild/deb package.* Multiple template support, to support different packages types. Now only standard distutils/setuptools template and single python template are provided. More template, such as webapp, will be added in future.* Package specific config, patches supported. User can manage their private config, patches in /etc/pypi2pkgsys too.* pypi-logstats.py is provided to show the statistics from log files.* pypi-manualcache.py is provided to generate localhost cache entries from self-downloaded package files. This reserve a great deal of time to download big files from pypi.python.org.Links:* News: http://code.google.com/p/pypi2pkgsys/wiki/News* Main: http://code.google.com/p/pypi2pkgsys/wiki/Main* Usage:* http://code.google.com/p/pypi2pkgsys/wiki/Usage_pypi2portage* http://code.google.com/p/pypi2pkgsys/wiki/Usage_logstats* http://code.google.com/p/pypi2pkgsys/wiki/Usage_manualcache
Package: pypia
Configures NetworkManager keyfiles for OpenVPN routes to Private Internet Access servers.pypia automatically detects your operating system. Currently the supported distros are Fedora, Manjaro, Ubuntu, Elementary OS, Antergos, Linuxmint, openSUSE, Kali, Arch, CentOS.In addition to configuring NetworkManager keyfiles, this module also can be invoked to ping all PIA endpoints, connect to the fastest, connect to a random server, etc. Usepypia –helpfor further descriptions and usage.usage: pypia.py [-h] [-i] [-p] [-s] [-r {us,all,int}] [-f] [-d]optional arguments:-h,--helpshow this help message and exit-i,--initializeconfigure pia vpn routes as networkmanager keyfiles. use this flag on first run and anytime you want to refresh pia vpn routes-p,--pingping each vpn server and list latencies-s,--shuffleconnect to or shuffle a random vpn-r,--region“us” for US only, “int” for non-US, “all” for worldwide-f,--fastestconnect to network with lowest ping latency-d,--disconnectdisconnect current PIA vpn connection
Package: pypi-activity
Installation$[sudo]pipinstallpypi-activityExamplesfromdatetimeimporttimedeltaimportpypi_activityforchangeinpypi_activity.getchangelog(pypi_activity.gettimestamp(timedelta(minutes=10))):print(change.name,change.version,change.action,change.timestamp,)actionexamplecreatePyKeeSAP None create 1592239659new releasePyKeeSAP 1 new release 1592239659remove projectepyauvi None remove project 1592226089add Maintainerpymc3 None add Maintainer id.mosthege.net 1592235439add Ownerbsoid None add Owner HSUAI 1592240050change Maintainervirtualenv None change Maintainer gaborbernat to Owner 1591992009change Ownerpolyswarm None change Owner polyswarm-gitlab to Maintainer 1592225554remove Maintainerpivotal-django-zendesk None remove Maintainer thenautumn 1592238459remove Ownerpolyswarm-api None remove Owner polyswarmbsadmin 1592225540add ... filepymplschapters 1.0.4 add py3 file pymplschapters-1.0.4-py3-none-any.whl 1592239702readme42.com
Package: pypi-admin
pypi-manageManage your Pypi warehouse account from console or using a awesome Python API. For example use the command line to
create an upload token for an app:$pypi-managetokenscreate"Token name"my-projectUse this command with other programs. For example you can use it together with Travis:$travisencrypt$(pypi-managetokenscreate"Token name"my-project)Create a token from Python:frompypi_admin.sessionimportPypiSession,get_pypirc_loginfrompypi_admin.manageimportPypiClientfrompypi_admin.exceptionsimportPypiTwoFactorRequiredsession=PypiSession(*get_pypirc_login())# get username/password from pypirc# Optional: use session.restore_session() instead session.login()try:session.login()exceptPypiTwoFactorRequired:session.two_factor(input('Insert TOTP: '))# Optional: use session.save_session()manage=PypiClient(session)token=manage.tokens.create('Token name','my-project')print(f'{token.token_id}:{token.token}')To install pypi-manage, run this command in your terminal:$python-mpip-Uinstallpypi-manageThis is the preferred method to install pypi-manage, as it will always install the most recent stable release.Current featuresList, create or deletetokens. Get help usingpypi-managetokens--help.List projectcollaborators.  Usepypi-managecollaborators <project name> all.List projecthistory(events).  Usepypi-manageevents <project name> all.List projectreleases.  Usepypi-managereleases <project name> all.Listprojects.  Usepypi-manageprojects.
Package: pypiage
pypiageA package for finding the least updated packages your project depends on.Installpip install pypiageUsageQuickly get the least updated packages referenced in your requirements.txt:cat requirements.txt | pypiageFind our when a certain python package was last updated:echo django | pypiageOutputYou get a pipe|separated list of<package-name>|<upload-date>whereupload-dateis the last recorded time the package was uploaded
to PyPi.For example:Given a requirements.txt like:Flask==2.2.0
requests==2.28.0
numpy==1.24.2When you give that file topypiage:pypiage requirements.txtThe output will list the latest uploaded date of the packages you gavepypiage:INFO:pypiage:Getting package info for Flask
INFO:pypiage:Getting package info for requests
INFO:pypiage:Getting package info for numpy
requests|2023-01-12 16:24:54
numpy|2023-02-05 20:12:05
Flask|2023-02-15 22:43:57Note:If you don't like theINFOlog output, then
you can turn logging off with:PYTHON_LOGLEVEL=ERROR pypiage requirements.txtto get less verbose output:requests|2023-01-12 16:24:54
numpy|2023-02-05 20:12:05
Flask|2023-02-15 22:43:57Remember you can alsocata list of packages topypiageand it
will read from standard input:cat requirements.txt | pypiageWhy does this exist?I found myself with a large codebase and wanted to quicky get a sense of which package dependencies were likley no longer maintained (and therefore candidates for removal), and checking their last upload date is a reasonable first pass check.
Package: pypi-alias
A small utility to make alias distributions on PyPI.It will create an “empty” package with a different name (the “alias”) that depends on the package in your current working directory.Free software: BSD 2-Clause LicenseInstallationpip install pypi-aliasYou can also install the in-development version with:pip install https://github.com/ionelmc/pypi-alias/archive/master.zipUsageMake sure you runpypi-aliasin a directory that has asetup.pyfile.Example:pypi-alias foobar sdist bdist_wheel
twine upload dist\foobar*DocumentationTo use the project:importpypi_aliaspypi_alias.-()DevelopmentTo run all the tests run:toxNote, to combine the coverage data from all the tox environments run:Windowsset PYTEST_ADDOPTS=--cov-append
toxOtherPYTEST_ADDOPTS=--cov-append toxChangelog1.0.0 (2021-04-08)Added support for Python 3.
Contributed by Emil Stenström in#5.Dropped support for Python 2.Switched to argparse and added the--versionand--dirtyarguments.Added some light CI/testing.0.2.0 (2015-06-18)Fix regression in__main__.0.1.0 (2015-06-18)First release on PyPI.
Package: pypi-analyser
Overviewpypi_analyser is a Python library to monitor PyPi packages!Package Installerpip install pypi-analyserUsagefrom pypi_analyser import pypi_analyser
'''
  package_name -> string pypi package name.
'''
package_name = 'pandas'
package_details = pypi_analyser(package_name)

print(package_details.package_name)
print(package_details.latest_version)
print(package_details.license)
print(package_details.homepage)
print(package_details.stars)
print(package_details.forks)
print(package_details.dependency_count)
print(package_details.dependencies)UtilitiesNameDescriptionpackage_nameReturns the pypi package name!descriptionReturns the description of pypi package!latest_versionReturns the latest version of pypi package!releasedReturns the released date of the pypi package!latest_releaseReturns the latest release date of pypi package!licenseReturns the license of the pypi package!authorReturns the author of the pypi package!maintainerReturns the maintainer of the pypi package!homepageReturns the homepage of the pypi package!repositoryReturns the repository of the pypi package!dependency_countReturns the unique dependency count of the pypi package!dependenciesReturns the list of dependendencies for the pypi package!starsReturns the github stars count of the pypi package!forksReturns the github forks count of the pypi package!RequirementsTherequirements.txtfile has details of all Python libraries for this package, and can be installed usingpip install -r requirements.txtOrganization├── src
│   ├── pypi_analyser
          ├── init             <- init
          ├── pypi_analyser    <- package source code for pypi analyser
├── setup.py             <- setup file 
├── LICENSE              <- LICENSE
├── README.md            <- README
├── CONTRIBUTING.md      <- contribution
├── test.py              <- test cases for unit testing
├── requirements.txt     <- requirements file for reproducing the code packageLicenseMITContributionsFor steps on code contribution, please seeCONTRIBUTING.
Package: pypiano
PyPianoPyPiano is a python library to programmatically play piano. It is an easy-to-use abstraction layer on top of thepython-minguspackage providing a simple user interface to play mingus music containers, such as Notes,
NoteContainers, Bars and Tracks. It bundles a default sound fonts file to enable playing and recording audio out
of the box. By default, 8 different pianos are available. It allows playing Piano via audio output or recording music to wav files.InstallationFor PyPiano to work you needFluidsynthto be installed. Please check the
Fluidsynth website on how to install Fluidsynth on your system. You can install PyPiano using pip:pipinstallgit+https://github.com/FelixGSE/pypiano.gitUsagefrompypianoimportPianofrommingus.containersimportNotep=Piano()# Play a simple C-4 via audiop.play("C-4")# Play a mingus Notenote=Note("C-4")p.play(note)# Record a Note to a wav filep.play(note,recording_file="my_first_recording.wav",record_seconds=2)# Use a different instrumentp.load_instrument("Honky-tonk Piano")p.play(note)The same code works with more complex mingus containers like, NoteContainers, Bars and TracksContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.Note that the sound fonts are checked in asGit large file. If you havegit-lfsinstalled
the bundled sound font files inpypiano/sound_fonts/FluidR3_GM.sf2should be cloned automatically. If not, you should installgit-lfsand fetch them after.Know issuesThe default sound fonts were taken from thefluid-soundfontdebian package (check/scripts/get_default_sf_file.pyfor details). The file
contains 194 instruments of which only 8 are used within this project, thus making the package unnecessarily large. All 186 unused instruments should be removed
from the shipped sound fonts to reduce package size. It is an open task to find out how to safely remove unused instruments.LicensePyPiano is distributed under MIT license - Check correspondinglicense fileDefault sound fonts are distributed under MIT license - Check correspondinglicense file
Package: pypianoroll
PypianorollPypianoroll is an open source Python library for working with piano rolls. It provides essential tools for handling multitrack piano rolls, including efficient I/O as well as manipulation, visualization and evaluation tools.FeaturesManipulate multitrack piano rolls intuitivelyVisualize multitrack piano rolls beautifullySave and load multitrack piano rolls in a space-efficient formatParse MIDI files into multitrack piano rollsWrite multitrack piano rolls into MIDI filesWhy PypianorollOur aim is to provide convenient classes for piano-roll matrix and MIDI-like track information (program number, track name, drum track indicator). Pypianoroll is also designed to provide efficient I/O for piano rolls, since piano rolls have long been considered an inefficient way to store music data due to the sparse nature.InstallationTo install Pypianoroll, please runpip install pypianoroll. To build Pypianoroll from source, please download thesourceand runpython setup.py install.DocumentationDocumentation is availablehereand as docstrings with the code.CitingPlease cite the following paper if you use Pypianoroll in a published work:Hao-Wen Dong, Wen-Yi Hsiao, and Yi-Hsuan Yang, "Pypianoroll: Open Source Python Package for Handling Multitrack Pianorolls," inLate-Breaking Demos of the 19th International Society for Music Information Retrieval Conference (ISMIR), 2018.[homepage]
[paper]
[poster]
[code]
[documentation]Lakh Pianoroll DatasetLakh Pianoroll Dataset(LPD) is a new multitrack piano roll dataset using Pypianoroll for efficient data I/O and to save space, which is used as the training dataset in ourMuseGANproject.