Saravanan666/pypi-org huggingface dataset:
Package: tor-proxy
Tor-ProxyRun your any python service over tor using tor-proxy.It doesn’t interfere with other tor processes on your computer, so you can use the Tor Browser or the system tor on their own.Disclaimer:-Use it only for educational purpose.FeaturesNo need root permissionMultiple instancesCompatabilityPython 3.6+ is required.Installationpipinstalltor-proxyQuickstartImport withfrom tor_proxy import tor_proxy.call functiontor_proxy(), store as variable and give it as port argument in proxies.# tor_proxy_example.pyfromtor_proxyimporttor_proxyimportrequestsport=tor_proxy()http_proxy=f"socks5h://127.0.0.1:{port}"https_proxy=f"socks5h://127.0.0.1:{port}"proxies={"http":http_proxy,"https":https_proxy,}url="https://api.ipify.org"r=requests.get(url,proxies=proxies)print(r.text)Credit :-onionshare
Package: tor-python-easy
tor-python-easytor-python-easywas developed for use tor proxy in python with easy interface, which allow for
changing ip address whenever you want.Repo is very simple but if you want you canadd new feature request.DonateIf you want to sponsor me, in thanks for the project, please send me some crypto 😁:CoinWallet addressBitcoin3EajE9DbLvEmBHLRzjDfG86LyZB4jzsZygEtherum0xE43d8C2c7a9af286bc2fc0568e2812151AF9b1FDInstallationLibrary is only one file, so you can copy it to project.However, if you want you can install it with pip:pip3installtor-python-easyRun tor proxyThere are two simple ways to run tor proxy.First one is using docker and docker-compose from this repo. You can manipulate with mapping
ports and password.docker-composeupSecond one uses tor installed in OStor--controlport9051Use lib with pythonIn terminaldocker-composeupIn Pythonfromtor_python_easy.tor_control_port_clientimportTorControlPortClientfromtor_python_easy.tor_socks_get_ip_clientimportTorSocksGetIpClientif__name__=='__main__':proxy_config={'http':'socks5://localhost:9050','https':'socks5://localhost:9050',}ip_client=TorSocksGetIpClient(proxy_config)tor_control_port_client=TorControlPortClient('localhost',9051,'test1234')foritinrange(10):old_ip=ip_client.get_ip()tor_control_port_client.change_connection_ip(seconds_wait=10)new_ip=ip_client.get_ip()print(f'iteration{it+1}::{old_ip}->{new_ip}')Output will give 10 IP migrations.
Package: torqueclient
torqueclientLibrary to interface with a torque server running behind mediawiki.  It creates
a nicer programmattic interface with local caching options for the more cumbersome
rest interface that the torque mediawiki extension creates.UsageThe basic usage is:from torqueclient import Torque

torque = Torque("<URL>", "<username>", "<password>")

print(torque.collections["<collection_name>"].documents["<document_key>"]["<field>"]See the inline documentation for more information.
Package: torque-drag
Introductiontorque-drag is a tool to calculate drag forces and torque along the well. Features are added as they
are needed; suggestions and contributions of all kinds are very welcome.DocumentationSee here for thecomplete torque_drag package documentation.Getting StartedThese instructions will get you a copy of the project up and running on your local machine for development and testing purposes.Get torque-dragUsers: Wheels for Python fromPyPIpip install torque_dragSource code fromGithubgit clone https://github.com/pro-well-plan/torque_dragContributingPlease readCONTRIBUTINGfor details on our code of conduct, and the process for submitting pull requests to us.HistoryThis tool was initially written and is maintained byPro Well Plan
ASas a free, simple, easy-to-use way to perform
torque and drag calculations along the well that can be tailored to our needs, and as contribution to the
free software community.LicenseThis project is licensed under the GNU Lesser General Public License v3.0 - see theLICENSEfile for detailsfor further information contactjuan@prowellplan.com
Package: torque-submit
This is as very simple hackish hack, that allows you to any serializable
python callable as a torque job.Features:Allows you to send enviorment on the other sideAllows to execute any callable function as a torque taskAllows you to launch a bunch of taska as a torque array job.Dependencies:Working python 2.7/3.4 enviormentSome python dependencies (seeREQUIREMENTS)Workingqsubcommand (no need for other PBS/torque stuff).Works by serializing the enviorment and callable function to the
enviorment variables (or enviorment variables and files).
For serialization we usedillif avilable orpickle.Enviorment can be initialized using arbirtary bash script — this script
will be sourced before running provided python callable.ExampleExample without enviorment:callable=partial(print,"Hello World!")fromtorqsubmitimportSubmitters=Submitter()s.tasks=[callable]s.submit()Example with enviorment:callable=partial(print,"Hello World!")fromtorqsubmit._submitimportSubmitterENV="""
source ${HOME}/.bashrc
workon torque-submit
export MSG="Hello World!"
"""defprint_from_env():importosprint(os.environ["MSG"])s=Submitter()s.tasks=[callable]s.enviorment=ENVs.submit()Example submitting many tasks:from__future__importprint_functionfromfunctoolsimportpartialcallable=partial(print,"Hello World!")fromtorqsubmit._submitimportSubmitterENV="""
source ${HOME}/.bashrc
workon torque-submit
export MSG="Hello World!"
"""defprint_from_env():importosprint(os.environ["MSG"])s=Submitter()s.enviorment=ENVs.tasks=[print_from_env,print_from_env]s.submit()
Package: tor-refresh
TOR Refresh🧅 Refresh your TOR circuit with ease.Installation (tor)The program needs the tor executable in order to work, skip this if you have it already.sudoaptupdatesudoaptinstalltorInstallation (pipx)Install pipxpython3-mpipinstallpipxpython3-mpipxensurepathInstall tor-refreshpipxinstalltor-refreshtor_refresh<?port><?control_port>Installation (git)Install tor-refreshgitclonehttps://github.com/Fraccs/tor-refresh.gitpython3src/tor_refresh.py<?port><?control_port>
Package: torrent-bencode
An implementation of Bencode encoding in Python 3Usageimportbencodebencode.encode(OrderedDict((1,2),(b'eggs',b'spam')))bencode.decode(b'i3e')Type mapping for encoding:Bencode typePython typeDictionaryOrderedDictListlistByte stringbytesIntegerintType mapping for decoding:Python typeBencode typedictDictionarylist or tupleListbytesByte stringintIntegerIf OrderedDict is passed instead of plain dict, the order will be preserved.Compact peer encodingThis package also includes functions for ‘compact’ peer encoding as per bep 0023. Though not part of bencode itself, compact peer encoding is often used with it. Mainline DHT and most trackers encode peer information in this format.Usage:frombencode.miscimportpack_compact_peers_list,unpack_compact_peers_listpack_compact_peers_list((('127.0.0.1',8080),('127.0.0.1',9090)))b'\x7f\x00\x00\x01\x1f\x90\x7f\x00\x00\x01#\x82'unpack_compact_peers_list(b'\x7f\x00\x00\x01\x1f\x90\x7f\x00\x00\x01#\x82')(('127.0.0.1',8080),('127.0.0.1',9090))
Package: torrent-bencode3
TorrentBEncode3用于编码、解码torrent文件的bencode格式, 需要Python3.5+安装pip3 install torrent-bencode3测试git clone https://github.com/skytoup/TorrentBEncode3cd TorrentBEncode3pip3 install -r requirements-test.txttox使用frombencodeimportdumps,loads,dump,loads=loads(b'11:hello world')# b'hello world'dumps(s)# b'11:hello world'withopen('/path/to/torrent','rb')asf:obj=load(f)withopen('/path/to/save/torrent','wb')aswf:dump(obj,wf)
Package: torrent-client-cli
Torrent Client CLITorrent CLI Client applicationFree software: MIT licenseDocumentation:https://torrent-client-cli.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2021-07-14)First release on PyPI.
Package: torrent-dl
Popcorn Time was/is a really cool solution to play torrents directly while its being downloaded in the background, if you can get one of the installers to work. I really love Peerflix, it just works.This is a port of my beloved peerflix to python. I really need to get it to packaging it, so that I can just apt-get it :)You can simultaneously watch and download a torrent at the same time. It also supports random and incremental seek functionality of the media player.All you have to do istorrent-dl [magnet link]It will automatically start playing once it has downloaded a certain portion of the file depending on your internet speed.Built on [pyflix](https://github.com/animeshkundu/pyflix). Contains both the torrent library and the media streamer. Feel free to build awesome stuff on top of it.Installation on Ubuntusudo apt-get install libtorrent-rasterbar8 python-libtorrentpip install -r requirements.txtInstallation on Mac OSbrew updatebrew install caskroom/cask/brew-caskbrew install boost –build-from-source –with-python –universalbrew install libtorrent-rasterbar –enable-python-binding –with-python –with-boost-python=mtsudo ln -s /usr/local/lib/python2.7/site-packages/libtorrent.so /Library/Python/2.7/site-packages/.sudo ln -s /usr/local/lib/python2.7/site-packages/python_libtorrent-1.0.3-py2.7.egg-info /Library/Python/2.7/site-packages/.pip install -r requirements.txtUsagepyflix [-h] [–serve] [–port PORT] [–download DOWNLOAD] [–verbose] [–player PLAYER] magnetpositional arguments:magnet                The magnet link to downloadoptional arguments:-h,--helpshow this help message and exit—serve               Do not run VLC--portPORT,-pPORTThe port where the stream will be served—download DOWNLOAD, -d DOWNLOAD The path where the torrent will be downloaded--verboseShow _all_ the logs—player PLAYER       Only _vlc_ for now
Package: torrentdoer
torrentdoerDo your torrenting from DigitalOcean!Sets up a DigitalOcean droplet in your account,
enables transmission-daemin in systemd, and opens up
an SSH tunnel from port 9091 on your machine to the
remote, for easy control.Installationpython -m pip install torrentdoerUsageJust make sure you have an API Access Token from DigitalOcean.
you can either export$DIGITALOCEAN_ACCESS_TOKENor else
pass the token to the-t/--access-tokencommand-line option.Start ServerexportDIGITALOCEAN_ACCESS_TOKEN='somuchsecret'torrentdoercreateNow go ahead and open up a Transmission Client, pointing it to
localhost:9091.Retrieve FilesThis will run rsync between the transmission daemon and your local machine.torrentdoerretrieveRemove The ServerSave money by deleting the server when not in use.torrentdoerdestroyOpen SSH Session To Droplettorrentdoerssh(Re-)Open SSH TunneltorrentdoertunnelHave fun!
Package: torrent-download
torrent-downloadmasterdevelopAn torrent file downloader that uses a running qBittorrent server to download
using bittorrent.InstallationEither install the program usingpip install torrent-downloadorpython setup.py installAdditionally, a running instance of qbittorent web must be accessible to the user.
A good way to do so is usingthis docker image.After installing torrent-download, you will need to runtorrent-dl-config-gento complete the setup.Projects using torrent-downloadtoktokkieFurther InformationChangelogLicense (GPLv3)GitlabGithubProgstatsPyPi
Package: torrentfileQt
# TorrentFileQt![torrentfileQt.png](./assets/torrentfileQt.png)[![Codacy Badge](https://app.codacy.com/project/badge/Grade/065ca999772a434ba1aadae05f8b6bc7)](https://www.codacy.com/gh/alexpdev/torrentfileQt/dashboard?utm_source=github.com&utm_medium=referral&utm_content=alexpdev/torrentfileQt&utm_campaign=Badge_Grade)
[![codecov](https://codecov.io/gh/alexpdev/torrentfileQt/branch/main/graph/badge.svg?token=S5Q9CRD6C2)](https://codecov.io/gh/alexpdev/torrentfileQt)
![PyPI - License](https://img.shields.io/pypi/l/torrentfileQt?color=orange&style=plastic)
![PyPI - Downloads](https://img.shields.io/pypi/dw/torrentfileQt?style=plastic)
[![CI](https://github.com/alexpdev/torrentfileQt/actions/workflows/CI.yml/badge.svg)](https://github.com/alexpdev/torrentfileQt/actions/workflows/CI.yml)
![last commit](https://img.shields.io/github/last-commit/alexpdev/torrentfileQt?color=blue)
[![Codacy Badge](https://app.codacy.com/project/badge/Coverage/065ca999772a434ba1aadae05f8b6bc7)](https://www.codacy.com/gh/alexpdev/torrentfileQt/dashboard?utm_source=github.com&utm_medium=referral&utm_content=alexpdev/torrentfileQt&utm_campaign=Badge_Coverage)TorrentFileQt is a GUI Frontend for [TorrentFile CLI](https://github.com/alexpdev/torrentfile) project.## FeaturesCreate .torrent filesDisplay detailed information for a .torrent fileBittorrent v1, v2 and hybrid .torrent files supportedCheck if a .torrent file contents are in filesystemCheck progress or percentage complete for .torrent fileEdit torrent filesDrag and drop files onto any tabCreate magnet link URIsAnalyze piece lengths for torrent filesNow with full Bencode edit support## RequirementsPython 3.6+Pyside6torrentfile## Usage Overview![edittorrent.png](https://raw.githubusercontent.com/alexpdev/torrentfileQt/main/assets/TorrentFileQt.gif)## InstallFrom git:`bash git clonehttps://github.com/alexpdev/torrentfileQt.gitcd torrentfileQt pip install-rrequirements.txt pip install . torrentfileQt `From PyPi`bash pip install torrentfileQt torrentfileQt `> Alternatively you can download a precompiled binary from the release page.## IssuesTo report a bug or ask for a new feature please [open an issue](https://github.com/alexpdev/torrentfileQt/issues) on github.Known Issues |————- |The bencode editor is more of a bencode viewer at the moment. You can remove, add and edit fields in the window, but there are still some bugs to work out in the saving process |## License[Apache 2.0 Software License](./LICENSE)
Package: torrent-hound
Search torrents from multiple websites via the CLIRequirementsPython 3bs4clintpypercliphumanizeVeryPrettyTableInstallationInstall package and dependencies directly via pip usingpip installtorrent-houndOr runpip install-rrequirements.txtin the shell to install all
dependenciesUpdate existing IntallationTo upgradetorrent-houndvia pip, runpip installtorrent-hound-UIf installed viagit, then simply rungit pullin the shell
after navigating to thetorrent-hounddirectoryOtherwise download the latest binary from thereleasessection of
this repositoryUsageIf installed via pip,torrent-houndwould have been added to$PATH. Simply runtorrent-houndortorrent-hound[search-query]to begin.Download thetorrent-houndbinary from thebin/directory.torrent-hound[search-query]or simplytorrent-houndMenuAvailable Commands :m<result number>- Print magnet link of selected torrentc<result number>- Copy magnet link of selected torrent to
clipboardd<result number>- Download torrent using default torrent cliento<result number>- Open the torrent page of the selected torrent
in the default browsercs<result number>- Copy magnet link and open Seedr.ccp<optional choice>- Print top 10 results from each website for
the given query<choice>: [{default : 1}, {0 : Print formatted result}, {1 :
Pretty print results}]s- Enter a new query to search for over all avilable torrent
websitesr- Repeat last search (with same query)HelpIn case of anSSL Error, consultthese answers on Stackoverflowfor potential fixes.
Package: torrentmirror
Python library to expose torrentmirror as a command and python library.:tv: torrentmirror - TorrentMirror CLI Interface:star: Usage:star: Installation:notebook: Library Usage:tv: torrentmirror - TorrentMirror CLI InterfaceYou can invoke torrentmirror command to have a nice tabulated list of mirrors
in your terminal:star: UsageTorrentMirror.

    Usage: torrentmirror [<torrent_mirror_url>]:star: InstallationThis is a python package available on pypi.With python3.8 installed just executepip3.8installtorrentmirrorIf it asks about permissions and you don’t know what to do, you should
probably readJamie Matthews’s article about virtualenvs:notebook: Library UsageTorrentMirror exposes a simple get_proxies methodget_proxies(url="https://www.torrentmirror.net/",renew=False)It returns a dict in the form{"site_name":[{"link":"http://foo.com","status":"ONLINE","percentage":40},{"link":"http://foo.com","status":"ONLINE","percentage":40}]}
Package: torrentool
https://github.com/idlesign/torrentoolDescriptionThe tool to work with torrent files.Works on Python 3.7+.Includes:Command line interface. Requiresclickpackage to be installed.Usepip install torrentool[cli]to install this dependency automatically.Torrent utils (file creation, read and modification).Bencoding utils (decoder, encoder).Using CLI;Make.torrentoutof`video.mkv`$torrentooltorrentcreate/home/my/files_here/video.mkv;Make.torrentoutofentire`/home/my/files_here`dir,;andputsomeopentrackersannounceURLsintoit,;andpublishfileontorrentcachingservice,soitisreadytoshare.$torrentooltorrentcreate/home/my/files_here--open_trackers--cache;Printoutexistingfileinfo.$torrentooltorrentinfo/home/my/some.torrentUse command line--helpswitch to know more.NoteSome commands requirerequestspackage to be installed.From your Python codefromtorrentool.apiimportTorrent# Reading and modifying an existing file.my_torrent=Torrent.from_file('/home/idle/some.torrent')my_torrent.total_size# Total files size in bytes.my_torrent.magnet_link# Magnet link for you.my_torrent.comment='Your torrents are mine.'# Set a comment.my_torrent.to_file()# Save changes.# Or we can create a new torrent from a directory.new_torrent=Torrent.create_from('/home/idle/my_stuff/')# or it could have been a single filenew_torrent.announce_urls='udp://tracker.openbittorrent.com:80'new_torrent.to_file('/home/idle/another.torrent')
Package: torrentp
TorrentPWrapped python library for downloading from torrentDownload from torrent with .torrent file or magnet link. With just 3 lines of python code.Installation$pipinstalltorrentpAlso can be found onpypiHow can I use it?Install the package by pip package manager.After installing, you can use it and call the library.You have to pass magnet link or torrent file, and a path for saving the file. use . (dot) for saving in current directory.Download with magnet link:fromtorrentpimportTorrentDownloadertorrent_file=TorrentDownloader("magnet:...",'.')# Start the download processawaittorrent_file.start_download()# Pausing the downloadtorrent_file.pause_download()# Resuming the downloadtorrent_file.resume_download()# Stopping the downloadtorrent_file.stop_download()Or download with .torrent file:fromtorrentpimportTorrentDownloadertorrent_file=TorrentDownloader("test.torrent",'.')# Start the download processawaittorrent_file.start_download()# Pausing the downloadtorrent_file.pause_download()# Resuming the downloadtorrent_file.resume_download()# Stopping the downloadtorrent_file.stop_download()How can I limit the upload or download speed?Download Using 0 (default number) means unlimited speed:awaittorrent_file.start_download(download_speed=0,upload_speed=0)Or download with specifc number (kB/s):awaittorrent_file.start_download(download_speed=2,upload_speed=1)To do listLimit upload and download speedUser can change the portCLIPause / Resume / StopStar HistoryIssuesFeel free to submit issues and enhancement requests or contact me viavida.page/nima.ContributingPlease refer to each project's style and contribution guidelines for submitting patches and additions. In general, we follow the "fork-and-pull" Git workflow.Forkthe repo on GitHubClonethe project to your own machineUpdate the Versioninsideinit.pyCommitchanges to your own branchPushyour work back up to your forkSubmit aPull requestso that we can review your changes
Package: torrentpy
TORRENTpy - An open-source tool for water, solutes, and particles TranspORt thRough the catchmEnt NeTworkTORRENTpy is an open-source framework in Python for water, solutes, and particles transport through catchments discretised in lumped and semi-distributed manners. It is licensed under GNU GPL-3.0 (seelicence fileprovided). The framework simulates the hydrological fluxes using top-down catchment models that can be applied at the catchment scale (lumped manner) or at the sub-catchment scale (semi-distributed manner). Water quality models can complement the catchment models to simulate the water-borne contaminants (both solutes and particles) at the scale where the catchment models are applied (i.e.catchment scale or sub-catchment scale).How to InstallTORRENTpy is available on PyPI, so you can simply use pip:python -m pip install torrentpyAlternatively, you can download the source code (i.e.this repository) and use the command:python setup.py installDependenciesTORRENTpy requires the popular Python packagenumpyto be installed on the Python implementation wheretorrentpyis installed. For Python 2 and 3 compatibilities, the packagefutureis also required.
Additional optional dependencies includenetCDF4if one wishes to use NetCDF files as input and/or output,graphvizif one wishes to use the utilityconnectivity.pyand plot the network it generates, andsmartcppif one wishes to use an accelerator module for theSMARTmodel (it gives access to a C++ extension for the SMART model).List of Models currently available in TORRENTpyRainfall-Runoff Models:SMARTmodel (catchment runoff + river routing)Water Quality Models:INCAmodel (catchment runoff + river routing)Input/Output File FormatsTORRENTpy is designed to read CSV (Comma-Separated Values) files and NetCDF (Network Common Data Form) files. However, the use of NetCDF files requires the Python packagenetCDF4to be installed on the Python implementation where this package is installed (specific pre-requisites prior the installation ofnetCDF4exist and can be found atunidata.github.io/netcdf4-python).Version History0.2.0 [12 Jul 2018]: Operational version of TORRENTpy, with Python 3 compatibilityFixes relative module import issues that made v0.1.0 unusable out of the boxAdds clean up function for output folder to avoid appending to files from previous simulationsMakes all scripts Python 3 compatible by usingbuiltinsandiopackagesCorrects check on class instance for user-defined models added to KnowledgeBase0.1.0 [05 Jul 2018]: First version of TORRENTpyAttention, this version is not functioning due to relative module import issues.AcknowledgmentThis tool was developed with the financial support of Ireland's Environmental Protection Agency (Grant Number 2014-W-LS-5).
Package: torrent_rename
torrent_rename==================command line and module for rename torrent to original nameInstalling----------Install and update using `pip`_:.. code-block:: text$ pip install torrent_renametorrent_rename supports Python 2 and newer, Python 3 and newer, and PyPy... _pip: https://pip.pypa.io/en/stable/quickstart/Example----------------What does it look like? Here is an example of a simple torrent_rename program:.. code-block:: pythonfrom torrent_rename import torrent_renametr = torrent_rename()torrent_file_path = r"/home/cumulus13/Download/74BC02344EC863D4CD9D5F942C1A0C3AE513746D.torrent"tr.rename(torrent_file_path, overwrite=True) #overwrite: True or auto (str), auto: auto rename torrent fileAnd what it looks like when run:.. code-block:: text$ python test.pyFILE  :l:\temp\TORRENT_FILES\Jet Red.torrentNAME  : [('name7:', 'Jet Red', '12:')]NAME  : Jet RedRENAME: [OVERWRITE] Jet Red.torrent---------------------------------------------------------------------------------------------------------------You can run as command line.. code-block:: batch$ torrent_rename "/home/cumulus13/Download/74BC02344EC863D4CD9D5F942C1A0C3AE513746D.torrent""FILE  :l:\temp\TORRENT_FILES\Jet Red.torrentNAME  : [('name7:', 'Jet Red', '12:')]NAME  : Jet RedRENAME: [OVERWRITE] Jet Red.torrent---------------------------------------------------------------------------------------------------------------Support------*   Python 2.7 +, Python 3.x*   Windows, LinuxLinks-----*   License: `BSD <https://github.com/licface/torrent_rename/src/default/LICENSE.rst>`_*   Code: https://github.com/licface/torrent_rename*   Issue tracker: https://github.com/licface/torrent_rename/issues