Saravanan666/pypi-org huggingface dataset:
Package: rproxy
A super simple HTTP/1.1 proxy, with TLS and Let’s Encrypt support.rproxy takes care of your Let’s Encrypt certificates, automatically renewing them.
This is done by the excellenttxacmelibrary.Install from PyPI:$ pip install rproxyMake a directory to store your certificates:$ mkdir my-certsMake arproxy.ini:[rproxy]
certificates=my-certs
http_ports=80
https_ports=443

[hosts]
mysite.com_port=8080Then run it:sudo twistd -u nobody -g nobody -n rproxyThis will start the server, drop permissions (setting the effective uid/guid to nobody), and will proxy incoming requests tomysite.comtolocalhost:8080.
You can configure it further:[rproxy]
certificates=my-certs
http_ports=80,8080
https_ports=443
clacks=true

[hosts]
mysite.com_port=8080
mysite.com_host=otherserver
mysite.com_onlysecure=True
mysite.com_proxysecure=True

myothersite.net_port=8081This config will:connect tohttps://otherserver:8080as the proxied server formysite.com, and only allow HTTPS connections to the proxy for this siteconnect tohttp://localhost:8081as the proxied server formyothersite.net, and allow HTTP or HTTPS connections.General Confighttp_ports– comma-separated list of numerical ports to listen on for HTTP connections.https_ports– comma-separated list of numerical ports to listen on for HTTPS connections.certificates– directory where certificates are kept.clacks– EnableX-Clacks-Overheadfor requests.Hosts Config<host>_onlysecure– enforce HTTPS connections. If not set, or set to False, it will allow HTTP and HTTPS connections.<host>_proxysecure– connect to the proxied server by HTTPS. If not set, or set to False, it will connect over HTTP.<host>_port– The port of the proxied server that this proxy should connect to.<host>_host– the hostname/IP of the server to proxy to.<host>_sendhsts– send HSTS headers on HTTPS connections.<host>_wwwtoo– matchwwwtoo.
Package: rprpressiani
Real Python Feed ReaderThe Real Python Feed Reader is a basicweb feedreader that can download the latest Real Python tutorials from theReal Python feed.For more information see the tutorialHow to Publish an Open-Source Python Package to PyPIon Real Python.InstallationYou can install the Real Python Feed Reader fromPyPI: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, namedrealpython. To see a list of thelatest Real Python tutorialssimply call the program:$ realpython
The latest tutorials from Real Python (https://realpython.com/)
 0 How to Publish an Open-Source Python Package to PyPI
 1 Python "while" Loops (Indefinite Iteration)
 2 Writing Comments in Python (Guide)
 3 Setting Up Python for Machine Learning on Windows
 4 Python Community Interview With Michael Kennedy
 5 Practical Text Classification With Python and Keras
 6 Getting Started With Testing in Python
 7 Python, Boto3, and AWS S3: Demystified
 8 Python's range() Function (Guide)
 9 Python Community Interview With Mike Grouchy
10 How to Round Numbers in Python
11 Building and Documenting Python REST APIs With Flask and Connexion – Part 2
12 Splitting, Concatenating, and Joining Strings in Python
13 Image Segmentation Using Color Spaces in OpenCV + Python
14 Python Community Interview With Mahdi Yusuf
15 Absolute vs Relative Imports in Python
16 Top 10 Must-Watch PyCon Talks
17 Logging in Python
18 The Best Python Books
19 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 PyPI

Python is famous for coming with batteries included. Sophisticated
capabilities are available in the standard library. You can find modules for
working with sockets, parsing CSV, JSON, and XML files, and working with
files and file paths.

However great the packages included with Python are, there are many
fantastic projects available outside the standard library. These are most
often hosted at the Python Packaging Index (PyPI), historically known as the
Cheese Shop. At PyPI, you can find everything from Hello World to advanced
deep 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 thereaderpackage:>>> from reader import feed
>>> feed.get_titles()
['How to Publish an Open-Source Python Package to PyPI', ...]
Package: rps-client
RPS Client SDK PythonRPS WebhookRPS WebSocketRPS SendFileInstall viapippipinstallrps_clientUsagesfromrps_client.modelsimportRpsClientOptions,RpsHookRequestfromrps_client.sdkimportRpsClientAPI_KEY='YOUR_API_KEY'DATA=RpsHookRequest(data={'mytext':'my world is here','bool':True,},type='test',details={'name':'Hello World','number':1000,})sdk=RpsClient(RpsClientOptions.builder().api_key(TEST_API_KEY).build())reponse=sdk.send(DATA)print(response.data)Build, Install, and Test from SourcemakeBuild and Install from SourcemakebuildinstallRun testmaketestPublishSet Tokenpoetryconfigpypi-token.pypimy-tokenPublishmakepublishContributorsSambo Cheasombochea@cubetiqs.com
Package: rpsl
Copyright (c) 2019 Jérémie DECOCK (www.jdhp.org)Web site:http://www.jdhp.org/software_en.html#rpslOnline documentation:https://jdhp.gitlab.io/rpslExamples:https://jdhp.gitlab.io/rpsl/gallery/Notebooks:https://gitlab.com/jdhp/rpi-sensor-lib-notebooksSource code:https://gitlab.com/jdhp/rpi-sensor-libIssue tracker:https://gitlab.com/jdhp/rpi-sensor-lib/issuesRaspberry Pi Sensor Library on PyPI:https://pypi.org/project/rpslRaspberry Pi Sensor Library on Anaconda Cloud:https://anaconda.org/jdhp/rpslDescriptionA Raspberry Pi Sensor LibraryNote:This project is still in beta stage, so the API is not finalized yet.DependenciesPython >= 3.0InstallationGnu/LinuxYou can install, upgrade, uninstall Raspberry Pi Sensor Library with these commands (in a
terminal):pip install --pre rpsl
pip install --upgrade rpsl
pip uninstall rpslOr, if you have downloaded the Raspberry Pi Sensor Library source code:python3 setup.py installWindowsYou can install, upgrade, uninstall Raspberry Pi Sensor Library with these commands (in acommand prompt):py -m pip install --pre rpsl
py -m pip install --upgrade rpsl
py -m pip uninstall rpslOr, if you have downloaded the Raspberry Pi Sensor Library source code:py setup.py installMacOSXYou can install, upgrade, uninstall Raspberry Pi Sensor Library with these commands (in a
terminal):pip install --pre rpsl
pip install --upgrade rpsl
pip uninstall rpslOr, if you have downloaded the Raspberry Pi Sensor Library source code:python3 setup.py installDocumentationOnline documentation:https://jdhp.gitlab.io/rpslAPI documentation:https://jdhp.gitlab.io/rpsl/api.htmlExample usageTODOBug reportsTo search for bugs or report them, please use the Raspberry Pi Sensor Library Bug Tracker at:https://gitlab.com/jdhp/rpi-sensor-lib/issuesLicenseThis project is provided under the terms and conditions of theMIT License.
Package: rpsl-lexer
Parse RPSL PolicyWIPTODO: update this README.DebuggingEnable logging:exportRUST_LOG=route_verification=traceEnable backtrace in error messages:exportRUST_BACKTRACE=1Produce a parsed dump using both lexer and parserPut the database file atdata/ripe.db.Make surepypy3is in thePATH.Make sure you haverpsl-lexerinstalled and
it can be found bypypy3(e.g., inPYTHONPATH).python3-mpipinstallrpsl-lexerRun atroute_verification/:cargor--release--parse../data/ripe.db../parsedThe parsed dump will be distributed inparsed/.Produce a spread parsed dump from both priority and backup registriesObtain IRR dataDownload from all FTP servers onIRR List of Routing
Registries.Download priority registries todata/irrs/priority/:ftp://ftp.afrinic.net/pub/dbase/ftp://ftp.altdb.net/pub/altdb/ftp://ftp.apnic.net/pub/apnic/whois/ftp://ftp.arin.net/pub/rr/ftp://irr.bboi.net/https://whois.canarie.ca/dbase/ftp://irr-mirror.idnic.net/ftp://ftp.nic.ad.jp/jpirr/ftp://irr.lacnic.net/ftp://ftp.nestegg.net/irrftp://rr1.ntt.net/nttcomRR/ftp://ftp.panix.com/pub/rrdbftp://ftp.ripe.net/ripe/dbase/Download backup registries todata/irrs/backup/:ftp://ftp.radb.net/radb/dbase/Decompress all files.Run the parser withparse_priorityRun atroute_verification/:cargor--release--parse_priority../data/irrs/priority/../data/irrs/backup/../parsed_all/The above command parses all IRR DB files indata/irrs/priority/anddata/irrs/backup/,
overrides any duplicated information with the version from the former,
and writes the result to multiple JSON files inparsed_all/.Produce a parsed IR dump using IRRs in ordered prioritiesRun atroute_verification/:cargor--release--parse_ordered\../data/irrs/priority/apnic.db.*../data/irrs/priority/afrinic.db../data/irrs/priority/arin.db../data/irrs/priority/lacnic.db\../data/irrs/priority/ripe.db../data/irrs/backup/radb.db\../data/irrs/backup/altdb.db../data/irrs/backup/idnic.db../data/irrs/backup/jpirr.db../data/irrs/backup/level3.db../data/irrs/backup/nttcom.db../data/irrs/backup/reach.db../data/irrs/backup/tc.db\../parsed_all/Running interactively in Jupyter NotebookFinish the previous section. Your parsed dump should be cached inparsed/.Install Evcxr Jupyter Kernel.Open the notebook at./, and try outparse_test.ipynb.Produce a lexed dump using lexerIf the database file is atdata/ripe.db, for example:pypy3-mrpsl_lexer.dumpdata/ripe.db>dump.jsonIn the command above, we use PyPy for faster performance,
and pipe the dumped JSON todump.json.Test lexerRun at./:pytestTest lexer againstripe.dbTo test againstripe.dbusingrpsl_lexer/tests/mp_import_w_db.py,
put the database file atdata/ripe.db:python3-mrpsl_lexer.tests.mp_import_w_dbSimilarly, to test withrpsl_lexer/tests/mp_export_w_db.py,
or one of the other lexers:python3-mrpsl_lexer.tests.mp_export_w_db
python3-mrpsl_lexer.tests.mp_peering_w_db
python3-mrpsl_lexer.tests.mp_filter_w_db
python3-mrpsl_lexer.tests.action_w_db
python3-mrpsl_lexer.tests.import_w_db
python3-mrpsl_lexer.tests.export_w_dbTest parser and comparatorRun atroute_verification/:cargot--workspace
Package: rpsl-parser
AnRFC 2622conformant Routing Policy Specification Language (RPSL) parser with a focus on speed and correctness.⚡️ Outperforms other parsers by a factor of 33-60x📰 Complete implementation for multiline RPSL values💬 Able to parse objects directly from whois server responses🧠 Low memory footprint by leveraging zero-copy🧪 Robust parsing of any valid input ensured by Property Based TestsExamplesParsing RPSLA string containing an object in RPSL notation can be parsed to a tuple with attribute name-value pairs.fromrpsl_parserimportparse_rpsl_objectrole_acme="""role:        ACME Companyaddress:     Packet Street 6address:     128 Series of Tubesaddress:     Internetemail:       rpsl-parser@github.comnic-hdl:     RPSL1-RIPEsource:      RIPE"""parsed=parse_rpsl_object(role_acme)print(parsed)(('role',('ACME Company',)),('address',('Packet Street 6',)),('address',('128 Series of Tubes',)),('address',('Internet',)),('email',('rpsl-parser@github.com',)),('nic-hdl',('RPSL1-RIPE',)),('source',('RIPE',)))Since RPSL attribute values may be spread over multiple lines and values consisting only of whitespace are valid, thetuple[str | None, ...]type is used to represent them.Parsing a WHOIS server responseWhois servers often respond to queres with multiple objects.
An example ARIN query forAS32934will return with the requestedASNumberobject first, followed by it's associatedOrgName:$ whois -h whois.arin.net AS32934
ASNumber:       32934
ASName:         FACEBOOK
ASHandle:       AS32934
RegDate:        2004-08-24
Updated:        2012-02-24
Comment:        Please send abuse reports to abuse@facebook.com
Ref:            https://rdap.arin.net/registry/autnum/32934


OrgName:        Facebook, Inc.
OrgId:          THEFA-3
Address:        1601 Willow Rd.
City:           Menlo Park
StateProv:      CA
PostalCode:     94025
Country:        US
RegDate:        2004-08-11
Updated:        2012-04-17
Ref:            https://rdap.arin.net/registry/entity/THEFA-3To extract each individual object, the parse_whois_server_response function can be used as such:fromrpsl_parserimportparse_whois_server_responseparsed=parse_whois_server_response(AS32934)print(parsed)((('ASNumber',('32934',)),('ASName',('FACEBOOK',)),('ASHandle',('AS32934',)),('RegDate',('2004-08-24',)),('Updated',('2012-02-24',)),('Comment',('Please send abuse reports to abuse@facebook.com',)),('Ref',('https://rdap.arin.net/registry/autnum/32934',))),(('OrgName',('Facebook, Inc.',)),('OrgId',('THEFA-3',)),('Address',('1601 Willow Rd.',)),('City',('Menlo Park',)),('StateProv',('CA',)),('PostalCode',('94025',)),('Country',('US',)),('RegDate',('2004-08-11',)),('Updated',('2012-04-17',)),('Ref',('https://rdap.arin.net/registry/entity/THEFA-3',))))🚧 Work in progressMore descriptive error messagesWhen invalid RPSL is parsed, the current error messages do not properly convey where exactly the error is located in the parsed text.InstallationUsing PyPI:pip3 install rpsl-parser
Package: rps-milea-framework
InstallationInstallationpip install rps-milea-frameworkAdd this at the end of settings.py# Init Milea Framework
INSTALLED_APPS = [
    # Framwork
    'rps_milea',
    'rps_milea_users',

    # Django
    'django.forms',

    # Third Party
    'adminsortable2',

] + INSTALLED_APPS

FORM_RENDERER = 'django.forms.renderers.TemplatesSetting'
AUTH_USER_MODEL = 'rps_milea_users.User'Database Updatepython manage.py migrateInternal NotesPublishing to PyPI:UPDATE 3 FILES: setup.py, changes.txt, rps_milea/settings.py

    python -m pip install -U wheel twine setuptools
    python setup.py sdist
    python setup.py bdist_wheel
    python -m twine upload --skip-existing dist/*
Package: rps-milea-users
Just another Django-email-user app. Makes the email address as the username.Attention! Only suitable for fresh Django projects.InstallationInstallationpip install rps-milea-usersAddrps_milea_userstoINSTALLED_APPSin settings.pyINSTALLED_APPS = [
  "rps_milea_users",
  ...
]CreateAUTH_USER_MODELin settings.pyAUTH_USER_MODEL = 'rps_milea_users.User'Database Updatepython manage.py migrateInternal NotesPublishing to PyPI:python -m pip install -U wheel twine setuptools
python setup.py sdist
python setup.py bdist_wheel
twine upload --skip-existing dist/*
Package: rpsowmi
Remote PowerShell over WMI (RPSoWMI) enables you to run PowerShell code with support of STDIN, STDOUT, STDERR and return code through Windows Management Instrumentation (WMI) on remote host.Communication with your PowerShell code is done through 2 named pipes (one for outbound and another for inbound) being created onexecutor’smachine, that means your access rights must be enough privileged not only for creation of new process on remote machine but also for access to the named pipes on executor’s machine from remote machine.How to use RPSoWMI:from rpsowmi import RemotePowerShellOverWmi as RPSoWMI
from wmi import WMI  # https://pypi.python.org/pypi/WMI/

rps = RPSoWMI(WMI())
r = rps.execute("Write-Host 'Hello, world'")
print(r.stdout)  # Just showing 'Hello, world'.For more details, read pydoc of rpsowmi.RemotePowerShellOverWmi.Known problemsLength of your PowerShell code is limited up to around 2,800 characters because the code is tranfered as a part of command line arguments.Line separators - CR, LF and CRLF are unified to LF (\n) somewhere in communication between RPSoWMI and your PowerShell code.Line separator - LF (\n) may be appended to STDOUT and STDERR even though your PowerShell code doesn’t do it.Version historyv2017.4.11: Initial release.Linkshttps://pypi.python.org/pypi/rpsowmihttps://testpypi.python.org/pypi/rpsowmi
Package: rpst
Reddit Post Scraping Tool (RPST)This is a dummy package managed by the developer ofReddit Post Scraping Toolto prevent name squatting. The official PyPI Package/GitHub Repository name of the tool isreddit-post-scraping-tool. This package ensures that if you runpip install rpstknowingly or by mistake you will end up withreddit-post-scraping-tool, which can then be called withrpst(e.grpst --help).
Package: rpt
Given a list of file names, this will put the list of files into a text
file, open that with$EDITOR(or$VISUALif$EDITORis not set). After
the editor returns, any changed names in the text file will cause a
command (default:mv) to be executed with the original and new filename.This is very useful in carrying out rename operations that are easy to
specify with your text editor, but hard to specify with wildcards.If you ever wrote something like this (and -- as seen here -- still got
shell quoting wrong, because it's tedious), then this tool is for you:for f in *.mp3; do; mv "$f" "$(basename $f .mp3)_foo.mp3"; doneAlso, you can use different commands instead ofmv, and add options
for the input and output parameters (oggenc <infile> -o <outfile>):rpt -c "oggenc {old} -o {new}" *.wavIf you have a command without{old}and{new},{old} {new}will be
appended to the command line (cp <infile> <outfile>):rpt -c cp *.wavYou can put{old}and{new}wherever you want, in different order
and also multiple times (if needed):rpt -c "mpg123 -w {new} {old}" *.mp3To go all-out silly, you can set the$EDITORvariable to something
that will automatically change each input line, for example to make
a backup file of every.pyfile in the current folder:env EDITOR="sed -i -e '/^[^#]/ s/$/.bak/'" rpt -c cp *.pyThis will usesedas the editor and in-place edit the temporary
text file created byrptand append.bakto all non-comment lines
(the/^[^#]/part) in the input file, and withcpas the command
will callcp <filename> <filename>.bakfor every input file.
Package: rp-tagger
RP TaggerWeb-based UI made for organing image folders using a tagging system.RequirementsTo install all requirements, use the following snippet after installing python on your machine.pip install -r requirements/pro.txtUsageAdd the module to the PYTHONPATHexport PYTHONPATH=$PWD/srcCreate the database../rp_tagger migrateRun the server./rp_tagger runserver
Package: rptar
rptar — a CLI backed by repro-tarfileA lightweight command-line program for creating reproducible/deterministic tar archives."Reproducible" or "deterministic" in this context means that the binary content of the tar archive is identical if you add files with identical binary content in the same order. It means you can reliably check equality of the contents of two tar archives by simply comparing checksums of the archive using a hash function like MD5 or SHA-256.This package provides a command-line program namedrptar. It is designed as a partial drop-in replacement for the ubiquitoustarprogram and implements a commonly used subset of thetar -cinterface for creating tar archives.For further documentation, see the"rptar command line program"section of the repro-tarfile README.
Package: rptk
RPTK - Routing Policy Tool KitPython toolkit for prefix filter list management operations with
plugable modules for query and output handling.FeaturesCommand-linerptktoolSimple python api moduleFlask-based web-query apiQuery modules:native python query modulebgpq3shell wrapperFormat modulesJSON outputYAML outputIOS classic/XE style prefix-listsJunOS prefix-listsBIRD prefix-lists...more coming soonGetting StartedInstall from pip:$ pip install rptkRunbgpq3installer script, if not
already installed:$ cd $PREFIX/share/rptk/utils/
$ ./install-bgpq3.shCustomise settings inrptk.confas necessary:$ cd $PREFIX/etc/rptk/
$ cp rptk.conf.example rptk.conf
$ vi rptk.confCheck that test queries are working on the command line:$ rptk -F ios -Q bgpq3 AS-WOLCOMMCheck that test queries are working on the web API:$ rptk-web
$ curl http://localhost:8080/ios/AS-WOLCOMMRefer tosetup.mdfor addtional steps to setup the online web-api help pages.
Package: rptree
RP TreeRP Tree is a command-line tool to generate directory tree diagrams.InstallationTo installRP Tree, just run the following command:$pipinstallrptreeUsage$rptree/path/to/directory/Note:The-hor--helpoption provides help on using RP Tree.Sample Output$rptreehello/
./hello/
│
├──hello/
│├──__init__.py
│└──hello.py
│
├──tests/
│└──test_hello.py
│
├──LICENSE
├──README.md
├──requirements.txt
└──setup.pyThat's it! You've generated a nice directory tree diagram.FeaturesIf you run RP Tree with a directory path as an argument, then you get a full directory tree diagram printed on your screen. The default input directory is your current directory.RP Tree also provides the following options:-v,--versionshows the application version and exits-h,--helpshow a usage message-d,--dir-onlygenerates a directory-only tree diagram-o,--output-filegenerates a full directory tree diagram and save it to a file in markdown formatRelease History0.1.1Display the entries in alphabetical order0.1.0A work in progressAbout the AuthorLeodanis Pozo Ramos - Email:leodanis@realpython.com
Package: rpu
RPURandomPythonUtilities is a library that contains stuff that (I know I) and you probably are tired of adding to all of your projects. But with rpu you can just add it as a requirement and no more copy pasting! Main benefit of using rpu over copy pasting is that if there is a bug found with the code, instead of having to fix it in all of your projects it can just be fixed in the library and then its fixed for everyone.Our docs are located at rpu.cibere.dev. View thestable docs here, andlatest docs hereKey FeaturesCustom Extenstions for library specific utilitiesFor this, you can use the CLI commandsinstallanduninstallto install utilities, and uninstall utilities. You can also use theuploadcommand to upload utilities to the server for others to use.GrammarPluralpossessiveordinalNumbersget_percentageget_percent_ofIterableschunkgetasyncrun_in_executorexecute_funcCLIcommand infrustructureConstsMISSINGDictsflip_dictHTTPRouteHTTPCodesObjectsObjectCharsInvisible Character(s)Arrows (left, right, up, down)Bullet PointCreditsYou can view the creditshere
Package: rpudb
Runs a telnet server and allows controlling the pudb from a remote computer.How to installpip install rpudbHow to useIn the server:import rpudbrpudb.set_trace(addr=’0.0.0.0’, port=4444)In your computer:telnet localhost 4444How it worksIt runs pudb in a pseudo-terminal. You connect to this pseudo-terminal through a telnet server.LicenseReleased under the MIT license. Read LICENSE.md for more information.