Saravanan666/pypi-org huggingface dataset:
Package: btnexus-integration-python
btnexus-integration-pythonAuthorAdrian LubitzAuthorMarc FiedlerEmaildev@blackout.aiRequired Instance versions>= 3.0Runs onPython 2.7+ or Python 3.6+StateStableA library that supports all important postRequest for IntegrationsPrerequisitesPython installed (either 2.7+ or Python 3.6+)Owner of a btNexus instance or a btNexus accountInstall btnexus-integration-pythonpip install btnexus-integration-pythonIf you need to install a specific version usepip install btnexus-integration-python==[VERSION]API DocumentationYou find an API Documentation ourGitHub PageChangelog
Package: bto
██████╗ ████████╗ ██████╗ 
██╔══██╗╚══██╔══╝██╔═══██╗
██████╔╝   ██║   ██║   ██║
██╔══██╗   ██║   ██║   ██║
██████╔╝   ██║   ╚██████╔╝
╚═════╝    ╚═╝    ╚═════╝
Package: btodo
todoA simple todo record which is simple as elegant, as it shows itself every time you spawn your terminal.usagetype todo -h to list all functions--enable / --disable is to enable or disable todo. For example, if you choose topython /path_to_todo/todoin your .bashrc, this flag would help you to disable you if it irritates at some point.-n flag is to add new task. The format is as followspython todo 'task-name'a dialogue box opens to save priority preference on a scale of 1-3-e flag is to edit a task. Usage:python todo -e 'task-id'save new description and priority on the same scale-d flag deletes a task. Usage:python todo -d 'task-id'Todo [ get it?! ]sort on the basis of priorities
Package: btponto
This software register your presence based on a discoverable Bluetooth device
that you normaly brings together with you: your cell phone.To install this software follow the steps below:Install Python 2.5:$ sudo apt-get install python2.5 # in Ubuntu LinuxInstall the Python Bluez:$ sudo apt-get install python-bluezRun the install script:$ sudo python2.5 setup.py installAdd thebtponto.crontabexample in your crontab.Changelog2007-06-01- 0.1 - First release.To-Do ListCheck the state sanityDiscard invalid registers in log filePlease, send your bug reports, informations, doubts and other feedbacks to:osantana
<at>
gmail com
Package: btproxipy
btproxipybtproxipy detects if a Bluetooth device is near by querying its RSSI value and executes commands when the device leaves or comes back.RequirementsThis program needsbluetoothto be installed.Debian/Ubuntu:sudoapt-getinstallbluetoothArch Linux:pacman-Sbluezbluez-utils
systemctlenablebluetooth.serviceInstallationpipinstallbtproxipy--userEdit~/.config/btproxipy/btproxipy.inito your needs.systemctl--userenablebtproxipy
systemctl--userstartbtproxipy
Package: btpy
btpythis is a wrapper aroundbleakfor low-energy supportbeacontoolsfor beacon supportbluezfor classic supporthow to ..... installpip3installbtpy# or (this is not guaranteed to be stable)pip3installgit+https://github.com/nbdy/btpy... to use itfrombtpyimportLEDevice,Beacon,ClassicDevicele_results=LEDevice.scan(4)beacon_results=Beacon.scan(5)classic_results=ClassicDevice.scan(6)TODOTests
Package: bt-python-sdk
AboutPybtis a BaoTa panel python sdk.Pybt是一个宝塔面板API的Python版本sdk封装库Documentation:https://bt-python-sdk.readthedocs.io/en/latest/?Examples1.首先需要在面板设置-API接口中打开API接口，获取接口秘钥。2.开启API后，必需在IP白名单列表中的IP才能访问面板API接口。3.如需本机调用面板API密钥，请添加“127.0.0.1”和本机IP至IP白名单。接口初始化YOUR_PANEL_ADDRESS参数不需要安全入口，只需要填写面板的域名或IP加端口即可，如:http://192.168.1.168:8888。# 系统状态相关接口api>>>frompybt.systemimportSystem>>>system_api=System(YOUR_PANEL_ADDRESS,YOUR_API_KEY)# 获取系统基础统计>>>system_api.get_system_total(){'memTotal':31700,'memFree':18403,'memBuffers':1020,'memCached':8444,'memRealUsed':3833,'cpuNum':12,'cpuRealUsed':4.9,'time':'36天','system':'Ubuntu 20.04.3 LTS x86_64(Py3.7.9)','isuser':0,'isport':True,'version':'7.7.0'}# 获取磁盘分区信息>>>system_api.get_disk_info()[{'filesystem':'/dev/sda6','type':'ext4','path':'/','size':['1.1T','23G','1005G','3%'],'inodes':['72089600','360084','71729516','1%']}]# 网站管理相关接口>>>frompybt.sitesimportSites>>>sites_api=Sites(YOUR_PANEL_ADDRESS,YOUR_API_KEY)# 获取网站列表>>>sites_api.websites(){'where':'','page':"<div><span class='Pcurrent'>1</span><span class='Pcount'>共1条</span></div>",'data':[{'id':5,'name':'10.10.11.181','path':'/www/wwwroot/webSiteDir','status':'1','ps':'10_10_11_181','addtime':'2021-06-12 22:57:32','edate':'0000-00-00','backup_count':0,'domain':2,'ssl':{'issuer':'R3','notAfter':'2022-03-09','notBefore':'2021-12-09','dns':['*.*.com'],'subject':'*.*.com','endtime':73},'php_version':'静态'}]}# 获取PHP版本信息>>>sites_api.get_php_version()[{'version':'00','name':'纯静态'},{'version':'56','name':'PHP-56'}]# 获取网站SSL详情, YOUR_SITES_NAME通过websites接口获取>>>sites_api.get_ssl(YOUR_SITES_NAME){'status':True,'oid':-1,'domain':[{'name':'10.10.11.181'},{'name':'127.0.0.1'}],'key':YOUR_KEY,'csr':YOUR_CSR,'type':1,'httpTohttps':False,'cert_data':{'subject':'*.*.com','notAfter':'2022-03-09','notBefore':'2021-12-09','issuer':"Let's Encrypt",'dns':['*.*.com']},'email':'test@message.com','index':'142e5275a456ecd7bf32bda98528375c','auth_type':'http'}# FTP管理相关接口>>>frompybt.ftpimportFtp>>>ftp_api=Ftp(YOUR_PANEL_ADDRESS,YOUR_API_KEY)# 获取FTP信息列表>>>ftp_api.web_ftp_list(){'where':'','page':"<div><span class='Pcurrent'>1</span><span class='Pcount'>共1条</span></div>",'data':[{'id':1,'pid':0,'name':'web_user','password':'web_user_password','status':'1','ps':'web_user','addtime':'2021-10-25 10:48:35','path':'/www/wwwroot/web_user'}]}# 数据库管理>>>frompybt.dbmimportDBM>>>dbm_api=DBM(YOUR_PANEL_ADDRESS,YOUR_API_KEY)# 获取数据库信息列表>>>dbm_api.web_db_list(){'where':'','page':"<div><span class='Pcurrent'>1</span><span class='Pcount'>共1条</span></div>",'data':[{'id':1,'pid':0,'name':'test_site_db','username':'test_site_db','password':'test_site_db_password','accept':'127.0.0.1','ps':'test_site_db','addtime':'2021-10-25 10:53:15','backup_count':0}]}# 插件管理>>>frompybt.pluginimportPlugin>>>plugin_api=Plugin((YOUR_PANEL_ADDRESS,YOUR_API_KEY)# 宝塔一键部署执行>>>plugin_api.setup_package(dname,site_name,php_version)
Package: btrackers-postman
# btrackers-postman![](./logo.png)BitTorrent Trackers Postman, fetch BitTorrent Trackers URL list from [ngosang/trackerslist](https://github.com/ngosang/trackerslist) and post to your aria2 server via jsonrpc.## LicenseThe library is available as open source under the terms of the [Apache-2.0](https://opensource.org/licenses/Apache-2.0).
Package: btrade-api-client
btrade_api_clientBit Trade API Client libraryThis document describes the available API calls, for more information on the API vist theAPI Documentation.Installationpip3 install btrade-api-clientUsageCreate client instancefrombtrade_api_client.clientimportApiClientclient=ApiClient(api_key,api_secret)BankaccountGet customer registered bank accountsbankaccounts=client.bankaccounts()SeeAPI Documentationfor response.Get WalletsGet customer registered walletswallets=client.wallets()SeeAPI Documentationfor response.Get OrdersGet all ordersorders=client.orders()SeeAPI Documentationfor response.Get OrderGet single order detailsorder=client.order(12345)SeeAPI Documentationfor response.Get QuoteTo get a quote from the API use the quote method as below.quote=client.quote(src="aud",dst="btc",dst_volume=1,src_volume=None)SeeAPI Documentationfor response.Accept QuoteTo accept a quote use thetokenfrom the quote, and one of the following scenarios :To an existing wallet :order=c.accept(quote['token'],wallet_id=12345)To a new wallet with the given address :order=c.accept(quote['token'],wallet_address=3abcdf12345)To an existing bank account, this is only valid when the dst currency is a fiat currency:order=c.accept(quote['token'],bank_account=12345)SeeAPI Documentationfor response.Get TransactionsGet all customer transactions for the given currencytransactions=client.transactions("aud")SeeAPI Documentationfor response.Get BalanceGet current balance for the given currencybalance=client.balance("aud")SeeAPI Documentationfor response.Get TickerGet current indicative ratestickers=client.ticker()SeeAPI Documentationfor response.CreditsThis library is based onhttps://github.com/guardian/httpie-hmac-auth/
Package: btrader
bTraderThis is an arbitrage trading bot based on thisJS implementation. For that reason, the configuration files for both of them are compatible.For further information on the status of this bot, refer toDevelopment statusSteps to run the botTwo-step process:Read the configuration guide fromhere. I was lazy to write one of my own, so you can read it from the JS implementation repository. After that, generate your own configuration file or just edit the one on theconfig/directory on this repository.Note #1:Telegram bot is not available on the JS implementation. For that reason, nothing on their original configuration file refers to that. If you plan on using Telegram, please read theTelegram configurationsection.Note #2:Not all of the variables on their original configuration file are being used. For further information, read theConfig file compatibilitysection.(Recommended) Use the Docker image ($(pwd)/config.jsonis the path to your configuration file):docker run -it --name btrader -v $(pwd)/config.json:/config.json gabrielmilan/btrader(Few more steps) Use the Python package:python3 -m pip install btrader
python3
>>>> from btrader import bTrader
>>>> bot = bTrader("config.json")
>>>> bot.run()Development statusC++ implementation of calculationsMonitoring websocketsComputing profits over all possible trianglesFiltering and showing viable operationsImplement asset step sizeStructure for holding trading actions and quantitiesPerform trading actionsChecking configuration fileCompatibility for LOG.LEVELCompatibility for TRADING.EXECUTION_STRATEGY and TRADING.EXECUTION_TEMPLATEBest deals printingTelegram botGenerate binary distributionsConfig file compatibilityKEYSINVESTMENTTRADING [ENABLED, EXECUTION_CAP, TAKER_FEE, PROFIT_THRESHOLD, AGE_THRESHOLD]TRADING [EXECUTION_STRATEGY, EXECUTION_TEMPLATE]HUDLOGDEPTH [SIZE]DEPTH [PRUNE, INITIALIZATION_INTERVAL]TIMINGTelegram configurationGenerate a bot token with BotFather (official tutorialhere)(Optional) Get your Telegram user ID with the @userinfobotFill the configuration file with your dataSend/startto your bot on Telegram so it can identify you as the main user (by doing this or configuring user ID on the config file, the bot will only respond to you)Bot will notify you about executed trades or discovered deals, according to your config fileYou can check the average/std/best age of deals by sending/age
Package: btranslation
DescriptionBack translation is the process of translating the text into a target language and then retranslating it into its source language. For example, translating the content from English to Swedish and retranslating it to English. In this process, the text retranslated to its source language from a target language might be a little different but conveys the same meaning or sentiment.In the context of NLP, it's a very useful technique for text augmentation when the text data is not enough and we need more data to train a good model. If the sentence is not the same after the back translation then we'll keep the sentence. This technique is also known as Reverse Translation.The library is designed to automate the process by taking the text data and converting it to some other language that can be chosen by the user or the library choose randomly and output the original and back-translated data.Installation$ pip install btranslationExampleBasic UsageBack translating a single sentence, using Russian. If the language is not given, then the library chooses a random language other than the initial one.Note: The output is a Data Frame.>>> import btranslation
>>> btrans = btranslation.back_translation('I drive the car very well', language = 'ru')
>>> print (btrans) 
                    Original     Back Translated Random Language
0  I drive the car very well  I drive very well.              ruAdvanced Usage (Bulk)Back translating more than one sentence at a time.>>> import btranslation
>>> btrans = btranslation.back_translation(['I drive the car very well', 'I can not ride a bicycle'], language = 'ru')
>>> print (btrans) 
                    Original     Back Translated Random Language
0  I drive the car very well  I drive very well.              ru
1  I can not ride a bicycle   I can't ride a bike             ruRequirementsPython >= 3.0
Package: btrdb-admin
btrdb-admin-pythonThis package contains a quick and dirty Python3 implementation of the BTRDB administrative API.Note: At the moment only the ACL and Core API calls are availableNote: due to the quick/informal nature of this codebase, the tests ONLY include integration tests that expect to connect to a REAL btrdb server.  A dotenv file or ENV config is required to run the testsUsageInstall the API bindings withpip(using Python 3.6 or later):$ pip install btrdb-adminThen, obtain a connection to the database using a valid username and password that is able to use the admin API.  Then you can execute admin methods directly off of the object.from btrdb_admin import connect

db = connect("brtrdb.example.net:4411", username="marmaduke", password="usiB6iUsRLyn")
users = db.get_all_users()JupyterHub IntegrationThebtrdb_adminlibrary provides support for JupyterHub authentication using the BTrDB IDP. To use with JupyterHub, simplypip install -U btrdb-adminthen in yourjupyterhub_config.pyadd the following line:c.JupyterHub.authenticator_class = 'btrdb'Note that you should see a comment above the default position of this configuration thatbtrdbis one of the installed authenticators for use.
Package: btrfs
python-btrfs is a Python 3 library that provides ways to interact
programmatically with an online btrfs file system.It provides a pure python shadow implementation of data structures used in
btrfs together with convenient wrappers around the collection of kernel
functions that are available in the btrfs kernel API.Using them, we can examine the secret inner world of a btrfs file system for
educational purposes.The target audience for using the library is system administrators and
developers who want to discover more about the internals of a btrfs file
system, or want to create adjusted monitoring or administration tools that are
optimized for their specific use cases.python-btrfs does not directly access disk storage, it only uses functions
available in the kernel interface, using system calls. This also means that
python-btrfs can not be used to repair a broken filesystem whenever the running
Linux kernel cannot properly mount it.
Package: btrfsmaint
This is a quick project based upon Marc MERLIN’s`btrfscrub.sh<http://marc.merlins.org/linux/scripts/btrfs-scrub>`__.
Fedora 24 doesn’t haveshlockin the INN package, and I decided to
reimplement the script in Python.Installationpip install btrfsmaintUsageSingle DriveRun a quick maintenance without a scrub on /home.btrfsmaint --no-scrub /homeRun quick maintanance on all BTRFS volumes currently mounted.btrfsmaint --no-scrub -aRun via crontab, all mounted BTRFS volumes with scrub.0  0  *  *  * root       /usr/bin/btrfsmaint -aCompatibilityPython 2.6+Python 3.0+PyPy 5+Library DependenciesClickTODOPerhaps a mutex of some sort or locking like unto shlockMake some default scripts - cron, systemd, etc.Files├── btrfscrub.sh
├── btrfsmaint
│   └── __init__.py    # btrfsmaint contents.
├── btrfstest.py       # function test script.
├── LICENSE            # Apache2.0 License stub
├── MANIFEST.in        # distribute package manifest.
├── README.md          # This File.
├── README.rst         # ReST-rendered version of the md.
├── requirements.txt   # pip requirements file.
├── script
│   ├── mkdocs.py      # Publish README.md -> README.rst (required pypandoc, pandoc)
│   └── runtest.sh     # Mutli-py version test script.
├── setup.cfg          # distribute packaging helper.
├── setup.py           # build script.
├── Copyright          # Copyright Statement
└── tests/             # Test output.
Package: btrfs-simple-snapshots
Take snapshots of your btrfs subvolumes and apply a retention policy in order
to keep your snapshot directory somewhat clean and small.The retention policy, defined bellow, is hardcoded for now but it should be enought for the
average use case. I may adjust it, or provide a way to change it at runtime if needed.Hourly snapshots are kept for 24 hoursDaily snapshots are kept for 4 weeksWeekly snapshots are kept for 12 weeksMonthly snapshots are kept for a yearyearly snapshots are kept for 10 yearsEvery subvolume that should be snapshoted must be given as argument to the
script. For example if you want to snapshot every home directory created as
subvolumes and your/etcand/srvdirectory you would dobtrfs-simple-snapshots /home/* /etc /srvOnce done, you will find a new subvolume named.snapshotsinside the
snapshoted subvolume with a name formated as%Y-%m-%d-%H%M%SInstallationInstall from pip usingpip install btrfs-simple-snapshots. Then you can run
it as root or with a user able to manage btrfs subvolumes. It is probably a
good thing to run it automatically with a cron job. Depending on you need you
may run it once per day (at 2 a.m.) to snapshot every home folder (created as
subvolumes) with this kind of job definition.0 2 * * * python -m btrfs_simple_snapshots /home/*
Package: btrsync
btrsyncReplicate btrfs subvolumes, handling Copy-on-Write (COW) relationships and incremental transfers automatically.Documentation is onRead the Docs.
Code repository and issue tracker are onGitHub.Backgroundbtrfsis a modern Linux Copy-on-Write (COW) filesystem supporting powerful features such as snapshotting and incremental serialization.
This makes it easy to efficiently replicate related snapshots from one filesystem to another by transferring only the differences between them.What is not easy, however, is manually identifying and tracking these relationships in order to fully leverage the features of btrfs.
Built-in tools provide the necessary mechanisms, but the heavy lifting is left to the user.This is wherebtrsynccomes in.True to its name, btrsync is "rsync, but for btrfs", reducing the complex task of comparing and replicating snapshots down to a one-liner:btrsync SOURCE DESTINATIONFeaturesHandles subvolume discovery and incremental transfers automaticallySupports local and remote machines (through SSH)Intuitive CLI inspired by familiar tools likersyncandscpUsageCommand-lineRun the main command-line interface withpython -m btrsync.cli [OPTIONS] SOURCE [SOURCE ...] DESTINATION(replacepythonwithpython3if your system'spythondefaults to Python 2)Alternatively, you can directly runbtrsync [OPTIONS] SOURCE [SOURCE ...] DESTINATIONSOURCEarguments are interpreted as follows:Arguments ending in/denote directories and match all subvolumes contained thereinArguments containing shell wildcards match as expectedNon-directory arguments with no wildcards match subvolumes verbatimDESTINATIONmust reside on a btrfs filesystem.Additionally, bothSOURCEandDESTINATIONarguments may:be rsync-like SSH locations (i.e., inuser@host:pathform)be full URLs, withfile://andssh://as accepted schemasThe location syntax is similar on purpose to that ofrsyncandscp, and principle of least surprise applies.ExamplesA minimal example:btrsync /snapshots/ /mnt/drive/backupwill transfer all read-only subvolumes below/snapshots/to/mnt/drive/backupafter asking confirmation.A more involved case, fetching specific subvolumes from a remote machine:btrsync -svp 'user@host:snaps/dev*' devsnaps/will transfer subvolumes that matchsnaps/dev*from the SSH remote hosthost, logged in asuser, to the local directorydevsnaps/after asking confirmation; in addition:-sexecutebtrfscommands usingsudo-vprint verbose information during transfer-pperiodically report progressNon-interactive invocation, useful e.g., in scripts:btrsync -yq --incremental-only /snapshots/ ssh://user@backup.example.com:1234/snaps/will transfer subvolumes under local directory/snapshots/to the SSH hostbackup.example.com, connected asuserto port1234, saving them under the remote path/snaps/; in addition:-yproceed without asking for confirmation-qdo not print output, except for errors--incremental-onlyskip any transfers that cannot be done incrementallyThe help option provides further details:btrsync --helpAPISee theAPI Referencesection of the documentation.
Package: btrview
BTRVIEWHow to use:Pass a filesystem label to btrview (you will most likely need root privileges) and get back a tree (or forest of trees) of snapshots with each subvolume as the root. Pass nothing and get an overview of snapshots on the whole system!> sudo btrview
Label: Main
UUID: ab29fed1-b4a9-4de6-894a-816ba471ab8d
Mounts:
  /root on /
Snapshots:
  root
  └── 2024-02-23T11:21:54.065968-05:00
  chris
  └── 2024-02-23T11:21:54.096068-05:00
  portables
  machines
Label: HDDs
UUID: 8ad35ea1-e26b-4b2b-aea6-6b13e2a5700d
Mounts:
  /Media on /srv/media
  /Snaps on /hdd-snaps
  /Data on /srv/Data
Snapshots:
  Media
  Snaps
  Data
  ├── 2024-02-22T13:58:19.780684-05:00
  ├── 2024-02-23T02:00:19.096959-05:00
  └── 2024-02-23T11:21:54.155429-05:00Some Qs and As:Q: What is btrfs?A: In short, it's a copy on write (COW) filesystem. If you're not already using btrfs, then check out thedocumentationto see if it's something you'd be interested in.Q: What does btrview do?A: It produces a tree view of the btrfs subvolumes/snapshots on your system.Q: So like a tree view of the subvolume layout?A: Nope, not currently, although it's in the works.btrviewwill show the relationship between a subvolume and its snapshots, not a relationship between a subvolume and its nested/parent subvolumes. The former is the relationship between a subvolume's UUID/Parent UUIDs, and the latter is a relationship between a subvolume's ID and Parent ID.Q: That's a little obscure can I get a visual example of the difference?A: If you run these commandsbtrfs subvolume create subvol
btrfs subvolume create subvol/nested_subvol
btrfs subvolume snapshot subvol subvol/subvol-snap
btrfs subvolume snapshot subvol subvol/subvol-snap2
btrfs subvolume snapshot subvol/nested_subvol subvol/nested_subvol-snapthe subvolume tree layout would look like:subvol
├── nested_subvol
├── subvol-snap
├── subvol-snap2
└── nested_subvol-snapAnd the subvolume-snapshot relationship would look like:subvol
├── subvol-snap
└── subvol-snap2
nested_subvol
└── nested_subvol-snapQ: What's the point of this program?A: It can be nice to know which subvolumes have snapshots and how many. Even if your snapshots are scattered around a messy filesystem they'll all still show up as a nice little tree.Q: What's not the point of this program?A: This is in no way shape or form a backup solution. Use something likebtrbkfor that. btrview just shows the state of things as they are, it doesn't actually "do" anything.Q: How is the "btr" part of btrview pronounced?A: The same as the "btr" part of btrfs.LimitationsGonna finish writing this later...> btrview
zero
└── one
    └── two
        └── three

> sudo btrfs subvolume delete one
> sudo btrview zero
zero

> sudo btrview two
9dda7e68-0741-a34f-aff7-f0e1056c1cf3
└── two
    └── three
Package: bts
=========================bitshares api for python=========================.. image:: https://bitsharestalk.org/BitSharesFinalTM200.png:target: https://bitsharestalk.orgThis project provides bitshares api for python projectand some toolsProject Setup=============Quick Start------------#. Install::$ sudo pip install btsConfiguration------------todoSupported Python Versions=========================supports the following versions out of the box:* CPython 2.6, 2.7, 3.3* PyPy 1.9CPython 3.0-3.2 may also work but are at this point unsupported. PyPy 2.0.2 is known to work but is not run on Travis-CI.Jython_ and IronPython_ may also work, but have not been tested. If there is interest in support for these alternative implementations, please open a feature request!.. _Jython: http://jython.org/.. _IronPython: http://ironpython.net/Licenses========The code which makes up this project is licensed under the MIT/X11 license. Feel free to use it in your free software/open-source or proprietary projects.Issues======Please report any bugs or requests that you have using the GitHub issue tracker!Authors=======* Alt