Saravanan666/pypi-org huggingface dataset:
Package: r3c0n
r3c0nA tool for performing reconnaissance on web targets in Python.DescriptionThe tool is designed to integrate into your automation workflow for the reconnaissance stage. Given an engine and an in-scope domain,r3c0nreturns the subdomains and directories associated with the domain.Supported EnginesEngineImportationAPI KeyAll enginesfrom r3c0n.engines.all import AllFree (default)Anubisfrom r3c0n.engine.anubis import AnubisFreeHackerTargetfrom r3c0n.engine.hacker_target import HackerTargetFreeOpenThreatfrom r3c0n.engine.open_threat import OpenThreatFreeProjectSonarfrom r3c0n.engine.project_sonar import ProjectSonarFreeRiddlerfrom r3c0n.engine.riddler import RiddlerPaidShodanfrom r3c0n.engine.shodan import ShodanFree Trial/PaidThreatCrowdfrom r3c0n.engine.threatcrowd import ThreatCrowdFreeVirusTotalfrom r3c0n.engine.virustotal import VirusTotalFree/PaidMore examples below at Usage.Installationpip install r3c0nRun testspython tests/test_cleanup.pyUsageSingle importfromr3c0n.engines.anubisimportAnubisdomain='coda.io'subdomains=Anubis(domain).subdomains()print(subdomains)>['www.coda.io','dev.coda.io','blog.coda.io','cdn.coda.io','staging.coda.io','help.coda.io','data.coda.io','go.coda.io','community.coda.io','status.coda.io','auth.coda.io','bounce.coda.io']Multiple importsfromr3c0n.engines.anubisimportAnubisfromr3c0n.engines.hacker_targetimportHackerTargetdomain='coda.io'subdomains=set()subdomains=set.union(subdomains,set(Anubis(domain).subdomains()))subdomains=set.union(subdomains,set(HackerTarget(domain).subdomains()))print(list(subdomains))>['bounce.coda.io','staging.coda.io','data.coda.io','cdn.coda.io','auth.coda.io','dev.coda.io','adhoc.coda.io','go.coda.io','coda.io','head.coda.io','community.coda.io','status.coda.io','blog.coda.io','www.coda.io','help.coda.io','maze.coda.io']Running from the Terminal# Prints the subdomains from all the engines on the terminalr3c0n-dcoda.io--engines=all# Outputs the subdomains found from specific engines to a filer3c0n-dcoda.io--engines=anubis,hackertarget--outputsubdomains.txt
Package: r3d2
Relativistic Reactive Riemann problem solver for Deflagrations and DetonationsThis extends standard solutions of the relativistic Riemann Problem to include a reaction term.InstallationA standard:python setup.py installor:pip install r3d2should work.UsageImport the equations of state, State class, and Riemann Problem class:>>> from r3d2 import eos_defns, State, RiemannProblemSet up an equation of state:>>> eos = eos_defn.eos_gamma_law(5.0/3.0)Set up the left and right states:>>> U_L = State(rho=1.0, v=0.0, vt=0.0, eps=1.5, eos=eos)
>>> U_R = State(rho=0.125, v=0.0, vt=0.0, eps=1.2, eos=eos)Solve the Riemann Problem:>>> rp = RiemannProblem(U_L, U_R)The output can be examined for details of the solution and its wave structure. However, the classes are optimized for display in a Jupyter notebook. See the documentation for more detail.DocumentationThe documentation is available athttp://r3d2.readthedocs.org.
Package: r3dir
r3dirCLI tool forr3dirtarget-dynamic redirection service which helps bypass weak SSRF filters without redirection location validation.Read details howr3dirworks atGithub README page.CLI toolInstallationpip3installr3dirEncode mode$r3direncode-husage:r3direncode[-h][-cSTATUS_CODE][-dMAIN_DOMAIN][-iIGNORE_PART|-s][--slient_mode]target_url

positionalarguments:target_urlTargetURLwhichr3dirtoolshouldredirectto.

options:-h,--helpshowthishelpmessageandexit-cSTATUS_CODE,--status_codeSTATUS_CODEHTTPstatuscodeofaredirectresponse.-dMAIN_DOMAIN,--main_domainMAIN_DOMAINDomainwherer3dirtoolishostedon.-iIGNORE_PART,--ignore_partIGNORE_PARTString,whichwillbeignoredduringdecoding.UsedtobypassweakREGEXs.-s,--httpsHTTPSenforcedencoding(TLScertificatelengthlimitation)--slient_modeSlientmodeforautomations(e.gHackvertortags)Decode mode$r3dirdecode-husage:r3dirdecode[-h][-dMAIN_DOMAIN]encoded_urlpositionalarguments:encoded_urlr3direncodedURLtodecodeoptions:-h,--helpshowthishelpmessageandexit-dMAIN_DOMAIN,--main_domainMAIN_DOMAINDomainwherer3dirtoolishostedon.Python packageYou also can user3dir.encodermodule to build your own scripts or tools. It containsencode()anddecode()functions which parameters corresponds to CLI options.Custom errors which encoder or decoder may raise, you can find inr3dir.exceptions.fromr3dir.exceptionsimportBaseCoderError,Base32DecodingError,StatusCodeNotInRangeError,WrongEncodedURLFormat,TooLongTargetExamplesEncoding and decoding withignore_part:fromr3dirimportencodermain_domain="r3dir.me"ignore_part="testingtest "target,status_code="http://169.254.169.254",301encoded_domain=encoder.encode(target,status_code=status_code,main_domain=main_domain,ignore_part=ignore_part)# encoded_domain = "testingtest.--.62epax5fhvj3zzmzig7q.301.r3dir.me"decoded_target,decoded_code=encoder.decode(encoded_domain,main_domain=main_domain)# decoded_target, decoded_code = "http://169.254.169.254", 301HTTPS enforced encoding:fromr3dirimportencodermain_domain="r3dir.me"target,status_code="http://169.254.169.254",301encoded_domain=encoder.encode(target,status_code=status_code,main_domain=main_domain,http_enforced=true)# encoded_domain = "62epax5fhvj3zzmzigyoeypkbn7fysllvges3fy.301.r3dir.me"Slient mode preventsTooLongTargeterror and produce an "error domain" for decoder with a hash of the long target. Decoding of the error domain will raise anTooLongTargetexception with target's hash:fromr3dirimportencodermain_domain="r3dir.me"target,status_code="http://169.254.169.254/latest/meta-data/iam/security-credentials/some_role",301encoded_domain=encoder.encode(target,status_code=status_code,main_domain=main_domain,http_enforced=true,slient_mode=True)# encoded_domain = "too-long-target-2b57569cfddb7d6f61331e123da605c7573521c9.301.r3dir.me"decoded_target,decoded_code=encoder.decode(encoded_domain,main_domain=main_domain)# r3dir.exceptions.TooLongTarget: The target length has been too long for encoder. Target's SHA-1: 2b57569cfddb7d6f61331e123da605c7573521c9
Package: r3dis
r3dis: Python implemented Redis serverTired of DevOps telling you not deploy Redis on your system?
Stuck in python environment but still want simple data structure store to sync between you threads?r3dis is a pure python implementation of the popular data store. it's create tcp server that support resp protocol and can be used as regular redis server.to install, run:pipinstallr3disto start redis server, run:python-mr3disto start inside python thread:fromthreadingimportThreadfromr3dis.serverimportRedisServerserver=RedisServer(("127.0.0.1",6379))t=Thread(target=server.serve_forever,daemon=True)t.start()currently supported commands:CONFIG SETCONFIG GETACL HELP ~ACL GENPASSACL CATACL DELUSERACL SETUSERACL GETUSERLPUSHCLIENT LISTCLIENT IDCLIENT SETNAMECLIENT GETNAMECLIENT KILLCLIENT PAUSECLIENT UNPAUSECLIENT REPLYINFOAUTHFLUSHDBSELECTPINGQUITDBSIZEECHOGETSETDELHSETHGETALLKEYSAPPENDin the future:more commandssupport for multiple client using asyncio loop instead of thread per clientyou are invited to help :)
Package: r3e-api
R3E Python APIThis package will allow you to easily read data from RaceRoom's Shared Memory API using Python.Usage:fromr3e_apiimportR3ESharedMemoryimporttimeshared_memory=R3ESharedMemory()shared_memory.update_offsets()# only needed oncewhileTrue:shared_memory.update_buffer()print(shared_memory.get_value('Player'))time.sleep(0.5)The methodR3ESharedMemory.get_value()accepts one string field. If you want to retrieve a sub-field, you can use dot notation, for example,R3ESharedMemory.get_value('Player.Velocity').
Package: r3l3453
r3l3453is a small project that I use for semi-automating the release cycle on a few projects of mine. It expects the project to have a very specific configuration that I personally prefer, and therefore may not be suitable for other’s projects.In short what it does is as follows:Bump version(s) to a release version according to git log andConventional Commits.Change the title ofUnreleasedsection inCHANGELOG.rstto the new version.Commit changes.Tag the commit.Release to PyPI.Bump the version again to dev0 version for the next release.Push changes to repository.There is a--simulatecli option which allows one to see what is going to happen.
Package: r3po
R-3PO -- Richard's Parallel Processing PipelineIntroductionA library built on top ofRayto make embarassingly parallel problems embarassingly easy.Suppose you have lots of data files that
need to be processed in the exact same way with the same function.
And suppose you want to save the results of that processing into a CSV file.
This is anembarassingly parallelproblem: it should be embarassingly easy.And that's what R3PO aims to deliver: R3PO lets you do it with aconfig.yamlfile and three lines of code.config.yaml:job_name:count_produceoutput_path:/home/lieu/dev/r3po/sample/output_dirprocesses:2source_file_part:.jsonsource_path:/home/lieu/dev/r3po/sample/produce_logworking_dir:/home/lieu/dev/r3po/sample/working_dirmain.py:fromr3poimportjobbuilder,jobrunner# Import the function that will be called by your processesfromcount_fruitsimportcount_fruitsCONFIG_YAML_FP='./config.yaml'# Build jobsjobbuilder.build_jobs(CONFIG_YAML_FP)# Run jobsjobrunner.run_jobs(CONFIG_YAML_FP,count_fruits)This will run the functioncount_fruitson all the.jsonfiles
insource_path, and save the results as CSVs inoutput_path(one row per JSON file).That's it! R3PO automatically
handles the distribution of tasks to processes,
saves your progress so you can stop and restart the job anytime,
and logs all errors automatically.Quickstart (worked example)[TODO] -- but check the sample directoryInstallationpip3installr3po
Package: r4ven-utils
r4ven: The companion that holds your grab-bag of utility functions and objectsReimplementing utilities folder across multiple Python projects... Nevermore!What is it?r4ven_utilsis all of those of utilities you keep reimplementing across your Python projects, that all got together and decided to live in harmony.Main FeaturesHere are some of the utilities that r4ven keep under it's wings:log4me- Creation of a logger object specific to the function in which it's called.Where to get itThe source code is currently hosted on GitHub at:https://github.com/VictorFantucci/r4ven_utils_devBinary installers for the latest released version are available at thePython
Package Index (PyPI).# or PyPIpipinstallr4ven-utilsDependenciesos- This module provides a portable way of using operating system dependent functionality.sys- This module provides access to some variables used or maintained by the interpreter and to functions that interact strongly with the interpreter.logging- This module defines functions and classes which implement a flexible event logging system for applications and libraries.LicenseGPLv3DocumentationAll my scripts have very detailed docstrings and comments that make their use intuitive and simple. As the project grows and takes shape I plan to write a  proper documentation for it.Background"Once upon a midnight dreary, while I pondered, weak and weary,Over many a quaint and curious volume of forgotten lore..."Edgar Allan PoeThis is how I felt every time I needed re-implement utilities folders over and over again through my Python projects... so work onr4venstarted as an idea to gather all the scripts, code and functions that were constantly appearing in the utilities folder of my Python projects.Contributing to r4venAll contributions, bug reports, bug fixes, documentation improvements, enhancements, and ideas are welcome.If you are simply looking to start working with the r4ven codebase, navigate to theGitHub "issues" taband start looking through interesting issues.Or maybe through using r4ven you have an idea of your own or are looking for something in the documentation and thinking ‘this can be improved’...you can do something about it!Feel free to ask questions through my email which can be found on the main page of myGithub.
Package: r503
GROW R503 FingerprintFeaturesWritten in pure python.Provides all the manufacturer specified operations of the module.Can be connected with a computer directly with a USB to TTL converter. (Do not need a microcontroller)Can be used for testing the functionality of the module or creating direct applications without involving a microcontroller.InterfacingWiring connections:Sensor SideRS232 ConverterRed (power)3.3v PowerWhite (touch induction power)3.3v powerBlack (Ground)Ground (0v)Maroon or Green or Brown (Rx)TxYellow  (Tx)RxBlue (Wakeup)Not connected(Ref: Datasheet)Make sure to use 3.3v power supply unless you have the 5v version of the sensor.If you use a separate 3.3v power supply other than the RS232 converters power then make sure to connect grounds together (common ground).The line order is according to the colors, even though the note says it's not.Usb to TTLThis module can be used to interface with the module since it provides 5v to 3.3v conversion for both logic level and power.However, make sure to switch jumper position to the 3.3v and connect 3.3v power pin of the converter.Installationpip install r503on terminal.orRunpip install pyserialon terminal.Downloadr503.pyfile.Basic usage overviewRegistering a fingerprintfrom r503 import R503

fp = R503(port=5)
fp.manual_enroll(location=8)you have to place the finger 4 (changeable) times on the sensor during the processTerminal output:Search a Fingerprint from the stored datafrom r503 import R503
from time import sleep

fp = R503(port=5)

print('Place your finger on the sensor..')
sleep(3) # Not required to add this line
print(fp.search())Terminal output:first value = success if 0second value = stored location of the memorythird value = match scoreNumber of fingerprints in the memoryfrom r503 import R503

fp = R503(port=5)
print('Num of templates: ', fp.read_valid_template_num())Terminal output:Read fingerprint stored locationsfrom r503 import R503

fp = R503(port=5)
print(fp.read_index_table())Terminal output:Aura LED Controlfrom r503 import R503

fp = R503(port=5)
fp.led_control(ctrl=3, color=5)Output: LED keeps on with a specific color according to the numberRead Product Informationfrom r503 import R503

fp = R503(port=5)

for k, v in fp.read_prod_info_decode().items():
    print(k, ': ', v)Terminal output:For Linux users: if a permission error occurs while opening the serial port, run the following command:sudo chmod a+rw /dev/ttyUSB{your device port number}Etc:sudo chmod a+rw /dev/ttyUSB0
Package: r53ddns
r53ddns (Route 53 Dynamic DNS) is a simple command-line utility used to update
an AWS Route 53 DNS entry with the current public IP Address of the executing
host. Used to maintain DNS records which point to a dynamic address.r53ddns utilizes the boto3 Python API to interface with AWS.UsageFrom the commandline or via systemd/cron service.
A valid AWS credential file is required for the user executing the utility. This
is typically placed in ~/.aws/credentials or the credentials may be specified
using environment variables.[default]
aws_access_key_id = ACCESSKEY-ID
aws_secret_access_key = SECRET-KEY
region = us-west-2The user associated with the access key requires the following AWS permissions:route53:ChangeResourceRecordSetsroute53:ListResourceRecordSetsOptionally the following permission is required to permit SNS notifications
(used with the –notify option or environment variable):sns:PublishAn example AWS JSON Policy document might look like:{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "1",
            "Effect": "Allow",
            "Action": "sns:Publish",
            "Resource": "arn:aws:sns:REGION:ACCT-NO:TOPIC-NAME"
        },
        {
            "Sid": "2",
            "Effect": "Allow",
            "Action": [
                "route53:ChangeResourceRecordSets",
                "route53:ListResourceRecordSets"
            ],
            "Resource": "arn:aws:route53:::hostedzone/ZONEID"
        }
    ]
}Note the Resource qualifiers should be replaced with valid Resource ARN’s if utilized.InstallationRequirements:Python >= 3.6.xUsing venv & pippython3 -m venv venv
source venv/bin/activate
pip install dnsupdaterInstallation as a daemon using SystemdCreate/install systemd service and timer unit files.
.timer will execute the .service file periodically upon boot of the OS, and
every 5 minutes thereafter.[Unit]
Description=route53 dynamic dns update client
After=network.target

[Service]
Type=oneshot
User=awsuser
Environment="PATH=/opt/r53ddns/venv/bin"
ExecStart=/opt/r53ddns/venv/bin/dnsupdater

[Install]
WantedBy=network.target[Unit]
Description=Execute r53ddns periodically

[Timer]
OnBootSec=1min
OnUnitActiveSec=5min

[Install]
WantedBy=timers.target
Package: r53-register
Minimalistic Route53 update scriptA minimal-configuration script designed to support clusters with DNS failover.RequirementsThis project requiresAWS
credentialsto
be configured.Usagesudopipinstallr53-register
r53-registerfoo.example.comOptional configurationEnvironment variableDefaultDescriptionINTERFACE_PREFIXen,eth,wlA comma-separated list of interface prefixes. Interfaces will be searched in sequence to find an IP address.INTERFACE_NAME-A specific interface to grab the IP from.PUBLIC_IPFalseOverride interface search and use this machine’s public IP instead.SKIP_CHECKFalseSkip checking the value of the current record and always update.NAMESERVERS8.8.8.8,8.8.4.4Nameservers to use when checking to see if an update is required.
Package: r5py
r5py: Rapid Realistic Routing with R5 in PythonR5pyis a Python library for rapid realistic routing on multimodal transport
networks (walk, bike, public transport and car).  It provides a simple and
friendly interface to R5, the Rapid Realistic Routing on Real-world
and Reimagined networks, therouting enginedeveloped by Conveyal.r5pyis inspired byr5r, a wrapper for R, and the library is
designed to interact withGeoPandasGeoDataFrames.R5pyoffers a simple way to run R5 locally with Python. It allows users to
calculate travel time matrices and accessibility by different travel modes.  To
get started, see a detailed demonstration of ther5py‘in action’ from theUsagesection of its documentation. Over time,r5pywill
be expanded to incorporate other functionalities from R5.InstallationR5pyis available from conda-forge and PyPi. You can usemamba,piporcondato install it.  To quickstart your use ofr5py, we also provide anenvironment.ymlfile, using which you canquickly set up a
development environmentand are ready to go.For more details and alternative installation options, read the dedicatedinstallation sectionof the r5py documentation.UsageYou can find detailed installation instructions, example code, documentation and
API reference atr5py.readthedocs.io.AcknowledgementsTheR5routing engineis developed atConveyalwith contributions from several people.R5py draws a lot of inspiration fromr5r, an interface to R5 from
the R language that is developed at the Institute for Applied Economic Research
(Ipea), Brazil.CitationIf you user5pyfor scientific research, please cite it in your publications:Fink, C., Klumpenhouwer, W., Saraiva, M., Pereira, R., & Tenkanen, H., 2022:r5py: Rapid Realistic Routing with R5 in Python.DOI:10.5281/zenodo.7060437LicenseThis work is dual-licensed under GNU General Public License v3.0 or later and
MIT License.  You can choose between the two depending on which license fits
your project better.SPDX-License-Identifier: GPL-3.0-or-later OR MIT
Package: r5py.sampledata.helsinki
Anr5pysample data set that covers the centre of HelsinkiThis package contains the following data sets:r5py.sampledata.helsinki.gtfsGeneral Transit Feed Specification (GTFS)
data representing the public transport schedules, stop locations, lines, etc.
The data was created by Helsinki Region Transport (HLS) and obtained fromTransitFeeds.com.This GTFS data set is licensed underCC BY 4.0.r5py.sampledata.helsinki.osm_pbfA sample dataset representing OpenStreetMap data in protocolbuffer binary format (PBF),
which was obtained fromGeofabrik.
The data is licensed under theOpen Data Commons Open Database License (ODbL).We usedosmiumto crop the data to the given extent.r5py.sampledata.helsinki.population_gridA sample dataset representing the population of Helsinki.
The data is obtained from Helsinki Region Environmental Services (HSY).
The data is licensed underCC BY 4.0.The data is downloaded from the Helsinki Region Environmental Services’ (HSY)Web Feature Service (WFS)endpoint (see theHelsinki Region Infoshare’s data description).
We useda script, that we share with this package, to download
the data set and adapt it to the requirements of r5py’s documentation. Namely, we:reindexed the data,omitted some columns,renamed the remaining columns from Finnish to Englishreprojected the data to "EPSG:4326", andextracted centroids from the grid polygons (for the point data set)
Package: r5py.sampledata.sao-paulo
Anr5pysample data set that covers the centre of São PauloThis package contains the following data sets:r5py.sampledata.sao_paulo.gtfsGeneral Transit Feed Specification (GTFS)
data representing the public transport schedules, stop locations, lines, etc.In contrast to the GTFS data set for Helsinki, the São Paulo data also has schedules expressed in
frequencies rather than fixed departure times.This data set has been published by São Paulo Transporte S/A, the public transport company of the
city of São Paulo for open use, but without a specific license
specified.r5py.sampledata.sao_paulo.osm_pbfA sample dataset representing OpenStreetMap data in protocolbuffer binary format (PBF), which was
obtained fromGeofabrik.  The data is licensed
under theOpen Data Commons Open Database License (ODbL).r5py.sampledata.sao_paulo.hexgrid_csvA regular, hexagonally distributed, point grid data set over the extent of São Paulo, curated by the
authors ofr5r.r5py.sampledata.sao_paulo.hexgrid_gpkgA regular, hexagon grid data set over the extent of São Paulo, curated by the authors ofr5r.
Package: r6sapi
r6sapir6sapi is an easy-to-use asynchronous API for rainbow six siege, written in python. To use it you'll need to use your ubisoft email and passwordInstallationTo install this module, simply runpip install r6sapiDocumentationhttp://rainbowsixsiege-python-api.readthedocs.io/en/latest/Quick Exampleimportasyncioimportr6sapiasapiasyncdefrun():auth=api.Auth("email","password")player=awaitauth.get_player("billy_yoyo",api.Platforms.UPLAY)operator=awaitplayer.get_operator("sledge")print(operator.kills)awaitauth.close()asyncio.get_event_loop().run_until_complete(run())TODOnothing for now, open an issue if you'd like any new feature added.LicenseMIT
Package: r6statsapi
r6statsapiDocshttps://r6statsapi.readthedocs.io/en/latest/index.htmlInstallationPython 3.7 or higher is requiredTo install the library, you can just run the following command:# Linux/Macpython3.7-mpipinstall-Ur6statsapi# Windowspy-3.7-mpipinstall-Ur6statsapiExampleimportr6statsapiimportasyncioloop=asyncio.get_event_loop()client=r6statsapi.Client('TOKEN')players=loop.run_until_complete(client.get_generic_stats("flareee",r6statsapi.Platform.uplay))
Package: r6stats.py
r6stats.pyr6stats.py is a Python wrapper for the R6Stats.com APIUsageimportr6statsstats=r6stats.Stats(key="")generic_stats=stats.get_generic_stats(username="BikiniBodhi",platform=r6stats.Platform.pc)print(generic_stats.wins)More examples are atthe examples folderErrorsThe module will raiseKeyErrorif the given thing is not found