Saravanan666/pypi-org huggingface dataset:
Package: pyrcs
PyRCSPyRCS is an open-source Python package designed to simplify the collection and management of diverse codes used in different systems within the UK rail industry. It serves as a practical toolkit for researchers, practitioners, and individuals who frequently interact with theRailway Codeswebsite and work extensively with railway codes in the UK. Leveraging the capabilities of the Python programming language, PyRCS enables efficient access to and manipulation of railway code data, enhancing productivity and effectiveness in working with these codes.Duringinstallation, PyRCS includes a set of pre-packaged data. When users request data from a specific category listed on theRailway Codeswebsite, PyRCS automatically loads the corresponding pre-packaged data for that category by default. Additionally, it provides functionality that enables direct access to the latest data from the data source website, ensuring users can stay updated with the most current information. Furthermore, PyRCS users can conveniently update the relevant pre-packaged data, keeping their data resources synchronized with the latest developments.With PyRCS, users can leverage Python's power to streamline workflows and enhance productivity when working with railway codes in the UK rail industry.InstallationTo install the latest release of pyrcs fromPyPIviapip:pipinstall--upgradepyrcsPlease also refer toInstallationfor more information.Quick startFor a concise guide on how to utilise PyRCS, we recommend checking out thequick-start tutorial, which features multiple illustrative examples for three frequently used code categories in the UK railway system:Location identifiers(CRS, NLC, TIPLOC and STANOX codes)Engineer’s Line References(ELRs) and their associated mileage filesRailway station data(mileages, operators and grid coordinates)DocumentationThe complete PyRCS documentation: [HTML] [PDF].It is hosted onReadTheDocsand provides a wealth of detailed examples.LicensePyRCS is licensed underGNU General Public License v3or later (GPLv3+).AcknowledgementPyRCS uses data available from theRailway Codeswebsite. The time and effort that the website's editor andall contributorsput in making the site and data available are fully credited.Cite asFu, Q. (2020). PyRCS: an open-source tool for collecting railway codes used in different UK rail industry systems. Zenodo.doi:10.5281/zenodo.4026744@software{qian_fu_pyrcs_4026744,author={Qian Fu},title={{PyRCS: an open-source tool for collecting railwaycodes used in different UK rail industry systems}},year=2020,publisher={Zenodo},doi={10.5281/zenodo.4026744},url={https://doi.org/10.5281/zenodo.4026744}}(Please also refer to the export options fromZenodoto reference the specific version of PyRCS as appropriate.)ContributorsQian Fu🌱💻🧪📖Firtun📖
Package: pyrcv
Python project for adjudicating ranked choice voting elections using the
single transferable vote (STV) method.  For more information on ranked
choice voting, visit theFairVote website on RCV.The project also contains a small flask server for adjudicating and visualizing
election results from a CSV file.  It is automatically deployed at atpyrcv.orgFree software: GNU General Public License v3Documentation:https://pyrcv.readthedocs.io.FeaturesGeneral standards and APIs for voting data and vote tabulation.Tabulation of ranked-choice elections using the single-transferable-vote (STV) method.Support for both single-winner and multi-winner contests.Generation of Sankey diagram showing the flow of vote counts through the
rounds of a multi-round election.Parser for converting Google Form based election output to voting data standard format.Web server which processes CSV data output from a Google Form based election, and
displays winners and a Sankey diagram.CreditsInspired byFairVoteandCalRCV.  FairVote’s examples were extremely helpful for
development and correctness-testing.This package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.
Package: pyrddl
pyrddlRDDL lexer/parser in Python3.Quickstart$ pip3 install pyrddlUsageScript modeThepyrddlscript provides ways to parse and inspect RDDL files
from the command line.$pyrddl --help

usage: pyrddl [-h] [-v] rddl

RDDL lexer/parser in Python3.

positional arguments:
  rddl           RDDL filepath

optional arguments:
  -h, --help     show this help message and exit
  -v, --verbose  verbosity modeProgrammatic modeThepyrddlpackage provides an API for integrating RDDL parser
with your own Python package/project.frompyrddl.parserimportRDDLParser# read RDDL filewithopen(filepath,'r')asfile:rddl=file.read()# buid parserparser=RDDLParser()parser.build()# parse RDDLmodel=parser.parse(rddl)# ASTLicenseCopyright (c) 2018-2019 Thiago Pereira Bueno All Rights Reserved.pyrddl is free software: you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or (at
your option) any later version.pyrddl is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
General Public License for more details.You should have received a copy of the GNU Lesser General Public License
along with pyrddl. If not, seehttp://www.gnu.org/licenses/.
Package: pyRDF
Lightweight RDF Stream Parser for PythonA lightweight RDF and RDF-Star parser which streams triples directly from disk
or standard input without loading the entire graph into memory.Supports the N-Triples and N-Quads serialization format.UsageRead and write to disk.fromrdfimportNTriplesfromrdfimportLiteralwithNTriples(path="./pizzacats.nt",mode='r')asg:withNTriples(path="./out.nt",mode='w')ash:forsubject,predicate,objecting.parse():iftype(object)isLiteralandobject.language=="en":# do stuffh.write((subject,predicate,object))Read / write from standard input / output.fromosimportstdinfromrdfimportNQuadsfromrdfimportIRIRefg=NQuads(data=stdin.read(),mode='r')h=NQuads(mode='w')target=IRIRef("https://example.org/Pizzacat")fortripleing.parse():iftriple[0]==target:# subject# do stuffh.write(triple)g.close()h.close()Adding new triples.fromrdfimportIRIRef,Literal,StatementfromrdfimportRDF,XSDEX=IRIRef("https://example.org/")# define prefixg=set()subject=EX+"Pizzacat"g.add(Statement(subject,RDF+"type",EX+"Cat"))literal=Literal("Samurai Pizza Cats!!!",datatype=XSD+"string")g.add(Statement(subject,EX+"tag_phrase",literal))
Package: pyRdfa
pyRdfa distiller/parser library. The distribution contains:./pyRdfa: the Python library. You should copy the directory
somewhere into your PYTHONPATH. Alternatively, you can also run thepython setup.py installscript in the directory../scripts/RDFa.py: can be used as a CGI script to invoke the library.
It has to be adapted to the local server setup, namely in setting the right paths./scripts/localRdfa.py: script that can be run locally on to transform
a file into RDF (on the standard output). Run the script with “-h” to
get the available flags../doc: (epydoc) documentation of the classes and functionshttpheader.py: the small, but excellent module of Deron Meranda; should be put somewhere into PYTHONPATH (done by the install script).The package depends on RDFLib<http://rdflib.net> and, if the HTML5 (or
‘lax’) parsing is used, html5lib<http://code.google.com/p/html5lib/>.
The package has been tested on Python version 2.4 and higher.For the details on RDFa, see:http://www.w3.org/TR/rdfa-syntax
Package: pyRdfa3
Note:since I retired a few months ago I do not really maintain this package any more. I would be more than happy if an interested party was interested to take over. In the meantime, I have "archived" the repository to clearly signal that there is no maintenance. I would be happy to unarchive it and transfer ownership if someone is interested.@ihermanThis new version 3.6.2 is now built and maintained onprrvchr.github.io/pyrdfa3For now, the package can only be installed fromTestPyPIwith command:pip install --index-url https://test.pypi.org/simple/ pyRdfa3PyRDFAWhat is itpyRdfa distiller/parser library. The distribution contains:./src/pyRdfa: the Python library. You should copy the directory somewhere into your PYTHONPATH.Alternatively, you can also install fromTest Python Package Indexwith command:pip install --index-url https://test.pypi.org/simple/ pyRdfa3./scripts/CGI_RDFa.py: can be used as a CGI script to invoke the library.It has to be adapted to the local server setup, namely in setting the right paths.This script has not been ported to Python 3.x. Open anew issueif you need it../scripts/localRdfa.py: script that can be run locally on to transform a file into RDF (on the standard output).Run the script with-hto get the available flags.This script has not been ported to Python 3.x. Open anew issueif you need it../doc: pyRdfa3documentationof the classes and functions (thanks topdoc).The package primarily depends on:Python version 3.7 or higherrequests: version 2.25.1 or higher is strongly recommended.rdflib: version 6.1.1 or higher is strongly recommended.html5lib: version 1.1.The package has been tested on Python version 3.7 and higher (no more support for Python 2.x).For the details on RDFa 1.1, see:http://www.w3.org/TR/rdfa-corehttp://www.w3.org/TR/rdfa-lite/http://www.w3.org/TR/xhtml-rdfa/http://www.w3.org/TR/rdfa-in-html/possibly:http://www.w3.org/TR/rdfa-primer/
Package: pyrdfj2
Python wrapper on jinja SPARQL templatingStarted on 2023-06-09SetupStart using this project with poetry$makeinit# install dependencies$makeinit-dev# includes the previous + adds dependencies for developersBuild Docs$makedocsDevelopersRun Tests$maketest# to run all tests$PYTEST_LOGCONF=debug-logconf.ymlpythontests/test_demo.py# to run a specific test with specific logging$maketest-coverage# to run all tests and check the test coverageCheck the code-style and syntax (flake8, black, isort)$makecheck
Package: pyrdle
ruin-wordleWordle is fun, so let's ruin it with computers.Install withpip install pyrdleorpip install git+https://github.com/cthoyt/ruin-wordle.gitto get the latest
version.How to PlayRun thewordlecommand in the shell. Use--helpto see how to set the
game to have a different number of letters, different number of guesss,
or to use a different language.$wordleMetricsThis repository assesses two metrics about each algorithm:Success: how many of the words of the given length and number of guesses can
it successfully solve?Speed: what's the average number of guesses needed over all successful words?Later, this repository will run multiple trials in order to assign confidence
intervals for success and quality for randomized algorithms.StrategiesThis repository is a playground for implementing new solve strategies. Feel free
to send a PR with your own (just subclass thePlayerclass)!Terminology:Perfect guess: a guess that uses all previous information available,
including knowledge about correct positions, unused letters, and used lettersThree word initial guessThis strategy involves deterministically guessing three words that cover a wide
variety of vowels and consonants. For example, (lunch, metro, daisy) covers all
five vowels and 10 different consonants.It's pretty likely that with these choices, you will be able to
deterministically solve for the word after one more perfect guess. It turns out
that with this example, you can solve 96.9% of the time with an average of 4.27
guesses. That's pretty surprising, but also assumes you have computer-like
recall of words.WarningsThis code useshttps://pypi.org/project/english-words/. This has some weird
stuff missing from it.See alsohttps://github.com/coolbutuseless/wordle
Package: pyrdp
Ramer-Douglas-PeuckerRamer-Douglas-Peucker python implementation.Installationpip install pyrdpUsageThe rdp function supports both lists and numpy arrays of arbitrary dimensions.>>>frompyrdpimportrdp>>>rdp([[0,0],[1,1],[2,0]],epsilon=1)[[0,0],[2,0]]>>>importnumpyasnp>>>frompyrdpimportrdp>>>rdp(np.array([[0,0],[1,1],[2,0]]),epsilon=1)array([[0,0],[2,0]])If you specifyreturn_mask=Truethe function will return a mask of the points
that were kept.>>>importnumpyasnp>>>frompyrdpimportrdp>>>rdp(np.array([[0,0],[1,1],[2,0]]),epsilon=1)array([True,False,True])
Package: py-rdpackages
State of the Art RD Packages For PythonInstallationPlease note that installation should be done with a mixture of pip and direct installations in R so that the correct versions of packages are installed.With pip for python:pip install py_rdpackagesImportant: you need to have the originalrdrobustinstalled in R:install.packages('rdrobust')Notes:rdrobustrequires the newest version ofggplot2so please:install.packages('ggplot2')Therdrobustandggplot2versions in Anaconda lag behind the current release for R. Please install in R directly as opposed to through conda.Introduction and UseThese packages are a work in progress, but are an attempt to create a wrapper to implement the wonderful RD packages found here (https://sites.google.com/site/rdpackages/rdrobust) which utilize R or Stata, so that they can be used in Python directly.I utilize the graphics package of Seaborn to make the plots look nice and to enable additional features, like binning points by size.There are three packages inpy_rdpackages:rdplotcreates plots of the regression discontinuity with a variety of options.rdrobustdoes the RD and reports the regression results.rdbwselectselects the optimal bandwidth size.A Example of the OutputThe code in the testing folder produces the following example.Requirements and StabilityUse of the programs requires all of the following packages in Python:rpy2for running R in Pythonmatplotlibandseabornfor producing high quality graphicspandas,numpyand for data manipulation and dataframe readingCurrently tested and stable for:rdrobustversion 0.99.9rpy2version 2.9.4 (last version updated through conda -- may work for later versions)ggplot2version 3.3.0Limitationsryp2produced slow pandas DF to R DF conversions, so I usepd.df.to_csv('temp_file_for_rd.csv')as a solution and then delete that same file after doing the analysis. This should be fixed in future versions.Of course, Python calling R and then converting back to python is not ideal. Some future version should code this from scratch.
Package: pyrdsbackup
pyrdsbackupA library on top of pyodbc meant to simplify database backups from RDS to S3.Installationsudoaptinstall-yunixodbcunixodbc-dev
pipinstallpyrdsbackupPrerequisiteMake sure that RDS Backup is enabled for your RDS instance.Usagefrompyrdsbackup.dbimportmssql# Initialize Credentialscredentials={'server':'rdsserver.amazon','username':'adminuser','password':'password','port':1433,'bucket':'bucket_name','driver_version':17}# Test if the connection works. If this statement returns True, backup is possible.mssql.test(credentials)# Backup the databasemssql.backup(credentials,'database_name')
Package: pyReachAPI
This is the description file for the project.The file should use UTF-8 encoding and be written using ReStructured Text. It
will be used to generate the project webpage on PyPI, and should be written for
that purpose.Typical contents for this file would include an overview of the project, basic
usage examples, etc. Generally, including the project changelog in here is not
a good idea, although a simple “What’s New” section for the most recent version
may be appropriate.
Package: pyreactivity
Provide a reactivity system similar to Vue.js for Python.Getting StartedPlease follow the documentation atpyreactivity.jianmu.orgSupported featuresreffunctioncomputedfunctionreactivefunctioneffectfunctionwatchfunctionwatch_effect(watchEffect) functionis_ref(isRef) functionis_computed_ref(isComputedRef) functionunreffunctiondeep_unref(deepUnref) functionis_reactive(isReactive) functionto_raw(toRaw) functiondeep_to_raw(deepToRaw) functionmark_raw(markRaw) functionserializable byjson.dumps()andjson.dump()ContributingPyReactivity is an open-source project and welcomes any contributions. If you have any issues or suggestions, feel free to raise them in theGithub Issues.AcknowledgmentsPyReactivity is inspired by Vue.js and its implementation also references the source code of Vue.js. Thanks to the Vue.js team for their selfless dedication.This documentation also heavily references the documentation of Vue.js, thanks to the document writers of Vue.js for their selfless dedication.
Package: py-read
# Real Python Feed ReaderThe Real Python Feed Reader is a basic [web feed](https://en.wikipedia.org/wiki/Web_feed) reader that can download the latest Real Python tutorials from the [Real Python feed](https://realpython.com/contact/#rss-atom-feed).For more information see the tutorial [How to Publish an Open-Source Python Package to PyPI](https://realpython.com/pypi-publish-python-package/) on Real Python.## InstallationYou can install the Real Python Feed Reader from [PyPI](https://pypi.org/project/realpython-reader/):pip install realpython-readerThe reader is supported on Python 2.7, as well as Python 3.4 and above.## How to useThe Real Python Feed Reader is a command line application, named `realpython`. To see a list of the [latest Real Python tutorials](https://realpython.com/) simply call the program:$ realpythonThe latest tutorials from Real Python (https://realpython.com/)0 How to Publish an Open-Source Python Package to PyPI1 Python "while" Loops (Indefinite Iteration)2 Writing Comments in Python (Guide)3 Setting Up Python for Machine Learning on Windows4 Python Community Interview With Michael Kennedy5 Practical Text Classification With Python and Keras6 Getting Started With Testing in Python7 Python, Boto3, and AWS S3: Demystified8 Python's range() Function (Guide)9 Python Community Interview With Mike Grouchy10 How to Round Numbers in Python11 Building and Documenting Python REST APIs With Flask and Connexion â€“ Part 212 Splitting, Concatenating, and Joining Strings in Python13 Image Segmentation Using Color Spaces in OpenCV + Python14 Python Community Interview With Mahdi Yusuf15 Absolute vs Relative Imports in Python16 Top 10 Must-Watch PyCon Talks17 Logging in Python18 The Best Python Books19 Conditional Statements in PythonTo read one particular tutorial, call the program with the numerical ID of the tutorial as a parameter:$ realpython 0# How to Publish an Open-Source Python Package to PyPIPython is famous for coming with batteries included. Sophisticatedcapabilities are available in the standard library. You can find modules forworking with sockets, parsing CSV, JSON, and XML files, and working withfiles and file paths.However great the packages included with Python are, there are manyfantastic projects available outside the standard library. These are mostoften hosted at the Python Packaging Index (PyPI), historically known as theCheese Shop. At PyPI, you can find everything from Hello World to advanceddeep learning libraries.[... The full text of the article ...]You can also call the Real Python Feed Reader in your own Python code, by importing from the `reader` package:>>> from reader import feed>>> feed.get_titles()['How to Publish an Open-Source Python Package to PyPI', ...]
Package: pyreaddbc
pyreaddbcpyreaddbcis a Python library for working withDBase database file. Legacy systems from the Brazilian Ministry of Health still uses DBF and DBC formats to Publicize data. This package was developed to helpPySUSto extract data from these formats into more modern ones. Pyreaddbc can also be used to convert DBC files from any other source."InstallationYou can installpyreaddbcusing pip:pipinstallpyreaddbcUsageReading DBC FilesExtracting the DBF from a DBC may require to specify the encoding of the original data, if known.importpyreaddbcdfs=pyreaddbc.read_dbc("LTPI2201.dbc",encoding="iso-8859-1")Exporting to CSV.GZTo export a DataFrame to a compressed CSV file (CSV.GZ), you can use pandas:importpyreaddbcdf=pyreaddbc.read_dbc("./LTPI2201.dbc",encoding="iso-8859-1")df.to_csv("LTPI2201.csv.gz",compression="gzip",index=False)Exporting to ParquetTo export a DataFrame to a Parquet file, you can use thepyarrowlibrary:importpyreaddbcimportpyarrow.parquetaspqimportpandasaspdfrompathlibimportPath# Read DBC file and convert to DataFramedf=pyreaddbc.read_dbc("./LTPI2201.dbc",encoding="iso-8859-1")# Export to CSV.GZdf.to_csv("LTPI2201.csv.gz",compression="gzip",index=False)# Export to Parquetpq.write_table(pa.Table.from_pandas(df),"parquets/LTPI2201.parquet")# Read the Parquet files and decode DataFrame columnsparquet_dir=Path("parquets")parquets=parquet_dir.glob("*.parquet")chunks_list=[pd.read_parquet(str(f),engine='fastparquet')forfinparquets]# Concatenate DataFramesdf_parquet=pd.concat(chunks_list,ignore_index=True)LicenseGNU Affero General Public License (AGPL-3.0)This license ensures that the software remains open-source and free to use, modify, and distribute while requiring that any changes or enhancements made to the codebase are also made available to the community under the same terms.Acknowledge============This program decompresses .dbc files to .dbf. This code is based on the work
of Mark Adlermadler@alumni.caltech.edu(zlib/blast), Pablo Fonseca
(https://github.com/eaglebh/blast-dbf).PySUShas further extended and adapted this code to
createpyreaddbc. The original work of Mark Adler and Pablo Fonseca is much appreciated for its contribution to this project.Note:pyreaddbcis maintained with funding fromAlertaDengue.
Package: pyreadline
The pyreadline package is a python implementation of GNU readline functionality
it is based on the ctypes based UNC readline package by Gary Bishop.
It is not complete. It has been tested for use with windows 2000 and windows xp.pyreadline 2.1 <2015-09-16>This is a bugfix release to make pyreadline work with python 3.5.Contributors to this release:Jörgen Stenarson, maintainerkivhift, improved error message for running on non windows platformszooba, made helpful suggestions to make it work for python 3.5Version 2.1 of pyreadline has been verfied for Python 2.7, and 3.4, 3.5.Features:keyboard text selection and copy/pasteShift-arrowkeys for text selectionControl-c can be used for copy activate with allow_ctrl_c(True) in config fileDouble tapping ctrl-c will raise a KeyboardInterrupt, use ctrl_c_tap_time_interval(x)
where x is your preferred tap time window, default 0.3 s.paste pastes first line of content on clipboard.ipython_paste, pastes tab-separated data as list of lists or numpy array if all data is numericpaste_mulitline_code pastes multi line code, removing any empty lines.The latest development version is always available at the IPython githubrepository.
Package: pyreadline3
Thepyreadline3package is based on the stale packagepyreadlinelocated
athttps://github.com/pyreadline/pyreadline.
The originalpyreadlinepackage is a python implementation of GNUreadlinefunctionality.
It is based on thectypesbased UNCreadlinepackage by Gary Bishop.
It is not complete.
It has been tested for use with Windows 10.Version 3.4+ or pyreadline3 runs on Python 3.5+.Featureskeyboard text selection and copy/pasteShift-arrowkeys for text selectionControl-c can be used for copy activate with allow_ctrl_c(True) in config fileDouble tapping ctrl-c will raise a KeyboardInterrupt, use
ctrl_c_tap_time_interval(x)where x is your preferred tap time window, default 0.3 s.paste pastes first line of content on clipboard.ipython_paste, pastes tab-separated data as list of lists or numpy array if
all data is numericpaste_mulitline_code pastes multi line code, removing any empty lines.The latest development version is always available at the project git
repositoryhttps://github.com/pyreadline3/pyreadline3