Saravanan666/pypi-org huggingface dataset:
Package: bitorch
BITorchBITorch is a library currently under development to simplify building quantized and binary neural networks
withPyTorch.
This is an early preview version of the library.
If you wish to use it and encounter any problems, please create an issue.
Our current roadmap contains:Extending the model zoo with pre-trained models of state-of-the-art approachesAdding examples for advanced training methods with multiple stages, knowledge distillation, etc.All changes are tracked in thechangelog.Please refer toour wikifor a comprehensive introduction into
the library or use the introduction notebook inexamples/notebooks.InstallationSimilar to recent versions oftorchvision, you should be using Python 3.8 or newer.
Currently, the only supported installation is pip (a conda package is planned in the future).PipIf you wish to use aspecific versionof PyTorch for compatibility with certain devices or CUDA versions,
we advise on installing the corresponding versions ofpytorchandtorchvisionfirst (or afterwards),
please consultpytorch's getting started guide.Otherwise, simply run:pipinstallbitorchNote, that you can also request a specific PyTorch version directly, e.g. for CUDA 11.3:pipinstallbitorch--extra-index-urlhttps://download.pytorch.org/whl/cu113If you want to run the examples install the optional dependencies as well:pipinstall"bitorch[opt]"Local and Development Install OptionsThe package can also be installed locally for editing and development.
First, clone therepository, then run:pipinstall-e.# without optional dependenciespipinstall-e".[opt]"# with optional dependenciesDali PreprocessingIf you want to use theNvidia dali preprocessing library,
e.g. with CUDA 11.x, (currently only supported for imagenet)
you need to install thenvidia-dali-cuda110package by running the following command:pip install --extra-index-url https://developer.download.nvidia.com/compute/redist --upgrade nvidia-dali-cuda110DevelopmentInstall the package anddevrequirements locally for development:pipinstall-e".[dev]"TestsThe tests can be run withpytest:pytestCode formatting and typingFor conveniently checking whether your code suites the required style (more details below), run./check-codestyle.shNew code should be compatible with Python 3.X versions and be compliant with PEP8. To check the codebase, please runflake8The codebase has type annotations, please make sure to add type hints if required. We usemypyfor type checking:mypy--config-filemypy.iniFor code formatting we useblack:black.--check--verbose--diff--color# check what changes the formatter would doblack.# apply the formatterIn order to automatically apply the code formatting with every commit, you can also install pre-commit
and use the pre-commit hook:pre-commitinstallDocumentationWe useGoogle's Python Docstring Formatto document our code.Documentation can be generated withsphinx-build-bhtmldocs/source/docs/build/-a
Package: bitorch-engine
Bitorch EngineReadme will be extended soon.
This package contains layer to provide fast(er) layer implementations forBITorch.InstallationCurrently, the supported installation method is using pip:Without any special cuda requirements (to hide the build output remove-v):pipinstall-e.-vWith higher CUDA versions you may need to install a torch pre-release and/or add an extra index URL:pipinstall--upgrade--pretorch--extra-index-urlhttps://download.pytorch.org/whl/nightly/cu113For example, for Cuda 11.6.124torch==1.12.0.dev20220324+cu113should work.Cuda Device SelectionTo select a certain CUDA device, set the environment variableBIE_DEVICE, e.g.:exportBIE_DEVICE=1# use 2nd cuda deviceDevelopmentIf building fails, adapt the options incpp_extension.py/cuda_extension.py.While developing, a specific cpp/cuda extension can be (re-)build, by using the environment variableBIE_BUILD_ONLY,
like so:BIE_BUILD_ONLY="bitorch_engine/layers/qconv/binary/cpp"pipinstall-e.-vIt needs to a relative path to one extension directory.To build for a different CUDA Arch, use the environment variableBIE_CUDA_ARCH(e.g. use 'sm_75', 'sm_80', 'sm_86'):BIE_CUDA_ARCH="sm_86"pipinstall-e.-vMacOSYou should install OpenMP (brew install libomp) with homebrew and make sure to add the corresponding environment variables:exportLIBRARY_PATH=$LIBRARY_PATH:"$(brew--prefix)/lib"exportLD_LIBRARY_PATH=$LD_LIBRARY_PATH:"$(brew--prefix)/lib"exportCPATH=$CPATH:"$(brew--prefix)/include"# during libomp installation it should something like this:exportLDFLAGS="-L$(brew--prefix)/opt/libomp/lib"exportCPPFLAGS="-I$(brew--prefix)/opt/libomp/include"
Package: bitorchinfo
bittorchinfoThis project is an extended version oftorchinfo.
However we added support for binary layers, as used inbitorch.
Please check out and use the original project, unless you specifically want to use this package in conjunction withbitorch.Usagepip install torchinfoContributingAll issues and pull requests are much appreciated! If you are wondering how to build the project:torchinfo is actively developed using the lastest version of Python.Changes should be backward compatible with Python 3.6, but this is subject to change in the future.Runpip install -r requirements-dev.txt. We use the latest versions of all dev packages.Runpre-commit install.To use auto-formatting tools, usepre-commit run -a.To run unit tests, runpytest.To update the expected output files, runpytest --overwrite.To skip output file tests, usepytest --no-outputReferencesThanks to @tyleryep for providing thetorchinfopackage.
Package: bitpay
BitPay Python ClientFull implementation of the BitPay Payment Gateway. This library implements BitPay'sCryptographically Secure RESTful API.Supporthttps://github.com/bitpay/python-bitpay-client/issueshttps://support.bitpay.comContributeTo contribute to this project, please fork and submit a pull request.LicenseMIT LicenseCopyright (c) 2021 BitPayPermission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Package: bitpit
Date:2019-10-13Version:1.2.0Authors:Mohammad Alghafli <thebsom@gmail.com>Event driven http download library with automatic resume and other features.
The goal of this module is to ease the process of downloading files and resuming
interrupted downloads. The library is written in an event-driven style similar
to GTK. The module defines the classDownloader. Instances of this class
download a file from an http server and call callback functions whenever an
event happens ralated to this download. Examples of events are download state
change (start, pause, complete, error) and download speed change. The following
is a typical usage example:import bitpit

#will download this
url = 'https://www.python.org/static/img/python-logo.png'
d = bitpit.Downloader(url) #downloader instance

#listen to download events and call a function whenever an event happens
#print state when state changes
d.listen('state-changed', lambda var: print('download state:', var.state))

#print speed in human readable format whenever speed changes
#speed is updated and callback is called every 1 second by default
d.listen('speed-changed', lambda var: print('download speed:', *var.human_speed))

#register another callback function to the speed change signal
#print percentage downloaded whenever speed changes
d.listen('speed-changed', lambda var: print(int(var.percentage), '%'))

#print total file size in human readable format when the downloader knows the file size
d.listen('size-changed', lambda var: print('total file size:', *var.human_size))

#done registering callbacks. lets start our download
#the following call will not block. it will start a new download thread
d.start()

#do some other work while download is taking place...

#wait for download completion or error
d.join()This module can also be run as a main python script to download a file. You can
have a look at the main function for another usage example.commandline syntax:python -m bitpit.py [-r rate_limit] [-m max_running] url [url ...]args:url: one or more urls to download.-r rate_limit: total rate limit for all running downloads.-m max_running: maximum number of running downloads at any single time.TutorialCheck out bitpit tutorial athttp://bitpit.readthedocs.io/
Package: bitprim
bitprimBitcoin, Bitcoin Cash and Litecoin development platform for Python applicationsGetting startedStable version:$pipinstall--upgradebitprimDevelopment version:$pipinstall--upgrade--index-urlhttps://test.pypi.org/pypi/bitprimIf you want a fully optimized binary for a specific microarchitecture, for example:$pipinstall--upgrade--install-option="--microarch=skylake"bitprim(use--index-url https://test.pypi.org/pypi/for Dev version)Reference documentationFor more detailed documentation, please refer tohttps://www.bitprim.org/.
Package: bitproto
Bitproto is a fast, lightweight and easy-to-use bit level data
interchange format for serializing data structures.FeaturesSupports bit level data serialization.Supports protocol extensiblity, for forward-compatibility.Very easy to startProtocol syntax is similar to the well-known protobuf.Generating code with very simple serialization api.Supports the following languagesC - No dynamic memory allocation.Go - No reflection or type assertions.Python - No magic :)Blazing fast encoding/decoding.LinksWebsite:https://bitproto.readthedocs.io中文文档:https://bitproto.readthedocs.io/zh/latestLicenseBSD3.
Package: bitquery-python
bitquery-pythonA simple package to query GraphQL using BitqueryInstallationpip install bitquery-pythonObtaining API KeyYou will need to create an account on theGraphQL IDEto be able to obtain an API key.Running queriesHere is an example code to run a queryfrom bitquery import bitquery

API_KEY = "YOUR API KEY"

query = """
query{
  bitcoin{
    blocks{
      count
    }
   }
}
"""

result = bitquery.run_query(API_KEY, query)
print(result)Authorsalb2001More informationGraphQL APIs using PythonGraphQL IDE
Package: bit.recipe.android_ndk
With this package you can add a part like the following to your buildout.[my_android_ndk]
recipe = bit.recipe.android_ndk
version = r7
ndk =http://dl.google.com/android/ndk/android-ndk-r7-linux-x86.tar.bz2This will install the android ndk into the folder parts/my_android_ndk within your buildout
Package: bit.recipe.android_sdk
With this package you can add a part like the following to your buildout.[my_android_sdk]
recipe = bit.recipe.android_sdk
apis = 8
sdk =http://dl.google.com/android/android-sdk_r14-linux.tgzThis will install the android sdk into the folder parts/my_android_sdk within your buildoutIt will also download android platform-tools and the apis listed in the buildout
Package: bit.recipe.python_for_android
bit.recipe.python_for_android=============================This package allows you to build python-based android packages from a buildout environmentYou will need a copy of the android sdk and ndks for your project environmentsThese can be installed using bit.recipe.android_sdk and bit.recipe.android_ndkA complete buildout example might be:[buildout]parts = my_android_sdkmy_android_ndkmy_kivy[my_android_sdk]recipe = bit.recipe.android_sdkapis = 8sdk = http://dl.google.com/android/android-sdk_r14-linux.tgz[my_android_ndk]recipe = bit.recipe.android_ndkversion = r7ndk = http://dl.google.com/android/ndk/android-ndk-r7-linux-x86.tar.bz2[my_kivy]recipe = bit.recipe.python_for_androidpackage = org.bitfoundation.my_kivysrc = git@github.com:kivy/python-for-androidsdk = parts/my_android_sdkndk = parts/my_android_ndkndk_version = ${my_android_ndk:version}api = 8recipes = kivyversion = 0.0.1public = var/my_kivy/publicprivate = var/my_kivy/privateorientation = portraitpermissions = INTERNETThis can then be installed as follows./bin/buildoutOnce you have done this you can create your distribution./bin/my_kivy distYou can do a clean install or pass other arguments to the distribute.sh script, ie:./bin/my_kivy dist -fPlace your public/private resources into the folders specified ie: var/my_kivy/public, and build and install your android package./bin/my_kivy build debug installd
Package: bitrix24-python-sdk
bitrix24-python-sdkDescriptionBitrix24 REST API wrapperbitrix24-python-sdk is a simple API wrapper for working with Bitrix24 REST APIBitrix24 API documentation - English:https://training.bitrix24.com/rest_help/Bitrix24 API documentation - Russian:http://dev.1c-bitrix.ru/rest_help/RequirementsPython 2.6+ or 3.2+requestsmultidimensional_urlencodeInstallationpipinstallbitrix24-python-sdkQuickstartfrombitrix24importBitrix24bx24=Bitrix24('YOUR_THIRD_LEVEL_DOMAIN','YOUR_AUTH_TOKEN')print(bx24.call('app.info'))NotesFor some functions the order of parameters is important.
For example, methods from scope “task”:bx24.call('task.item.list',{'ORDER':{'GROUP_ID':'asc'}},{'FILTER':{'GROUP_ID':1,'REAL_STATUS':{0:STATE_NEW}}},{'PARAMS':{'NAV_PARAMS':{'nPageSize':50,'iNumPage':2}}})TestsPut your access data at tests/testBitrix24.pyRun testspython-munittestdiscoverAuthorVladislav Sikach -github@sijmusic.infoSee also the list ofcontributorswhich participated in this projectNeed custom Bitrix24 application?email:github@sijmusic.infoTODODocumentation
Package: bitrix24-rest
Bitrix24 REST API for PythonEasy way to communicate with bitrix24 portal over REST without OAuth 2.0DescriptionBitrix24 REST is a simple API wrapper for working with Bitrix24
REST API over webhooks.FeaturesWorks both with cloud and on-premises versions of bitrix24, much moreSuper easy for setting up. No OAuth implemetation requiredCompatible with latests Bitrix24 REST APIRequirementsPython 2.6+ or 3.2+requestsInstallationpip install bitrix24-restQuickstartfrombitrix24import*bx24=Bitrix24('https://example.bitrix24.com/rest/1/33olqeits4avuyqu')print(bx24.callMethod('crm.product.list'))Advanced usageYou can define filters and additional parameters in any order:bx24.callMethod('crm.deal.list',order={'STAGE_ID':'ASC'},filter={'>PROBABILITY':50},select=['ID','TITLE','STAGE_ID','PROBABILITY'])Catch the server error with exception:try:bx24.callMethod('tasks.task.add',fields={'TITLE':'task for test','RESPONSIBLE_ID':1})exceptBitrixErrorasmessage:print(message)NotesList methods return all available items at once. For large collections
of data use limits.Testspython -m unittest discoverAuthorAkop Kesheshyan -akop.kesheshyan@icloud.comNew contributers and pull requests are welcome.
Package: bitrix24-rest-motexc
Bitrix24 REST API for PythonEasy way to communicate with bitrix24 portal over REST without OAuth 2.0DescriptionBitrix24 REST is a simple API wrapper for working with Bitrix24
REST API over webhooks.FeaturesWorks both with cloud and on-premises versions of bitrix24, much moreSuper easy for setting up. No OAuth implemetation requiredCompatible with latests Bitrix24 REST APIRequirementsPython 2.6+ or 3.2+requestsInstallationpip install bitrix24-restQuickstartfrombitrix24import*bx24=Bitrix24('https://example.bitrix24.com/rest/1/33olqeits4avuyqu')print(bx24.callMethod('crm.product.list'))Advanced usageYou can define filters and additional parameters in any order:bx24.callMethod('crm.deal.list',order={'STAGE_ID':'ASC'},filter={'>PROBABILITY':50},select=['ID','TITLE','STAGE_ID','PROBABILITY'])Catch the server error with exception:try:bx24.callMethod('tasks.task.add',fields={'TITLE':'task for test','RESPONSIBLE_ID':1})exceptBitrixErrorasmessage:print(message)NotesList methods return all available items at once. For large collections
of data use limits.Testspython -m unittest discover
Package: bitronit
Bitronit PythonPython Client for Bitronit (v2 API)InstallationThebitronitpackage is available onPyPI. Install withpip:pipinstallbitronitGetting StartedTheBitronitClientobject can be created without authentication to make public requests. You can simply create Client object without any arguments.For the private request theBitronitClientneeds to be authenticated with api key and secret that you can create from API Management page in Bitronit dashboard.UsageAfter installing the library, just import the client.frombitronit.clientimportBitronitClientYou can use public endpoints without providing an api key/secret pair.my_client=BitronitClient()my_client.get_assets()If you have an api key/secret pair, you can use private endpointsmy_client=BitronitClient(api_key='<Your Api Key>',api_secret='<Your Api Secret>')my_client.get_wallets()
Package: bitroom
🚩🏠 bitroom (Book an Incongruent Topological Room Or be Out of Mind)BIT 场地预约查询接口。💥 源起场地预约系统（桌面版）的服务器响应太慢了，每次翻页都要十几秒。若并发请求，再缓存到本地，会方便不少。房间资源是时空区间，需求常常是“先时间，后空间”；然而也许为方便调度资源、避免冲突，现有系统全都“先空间，后时间”。例如，你可能会问：“明天下午还有没有房间？没有的话，后天下午也行。就几个人，也不需要投影。”而很少专门针对某一房间问。bitroom 目前已解决登录、包装 API 等底层问题，可供后来者调用。🧪 例子🤖编程 API这是主要支持的接口。fromdatetimeimportdatefromhttpximportAsyncClientfrombitroomimportauth,RoomAPIasyncwithAsyncClient()asclient:awaitauth(client,username,password)# 登录“统一身份认证”api=awaitRoomAPI.build(client)# 获取“可预约”的时空区间bookings=awaitapi.fetch_bookings(date.today())print(bookings[0])# 预约awaitapi.book(bookings[0],tel="13806491023",applicant="Boltzmann",description="Boltzmann 常数是气体的内能与温度的一种比例系数。",remark="一般记作 k_B 或 k。",)# 获取“已预约”的时空区间orders=awaitapi.fetch_orders(bookings[0].room_id,date.today())print(orders[0])⌨️命令行 CLI也提供了基础的命令行接口，支持查询，不支持预约。可结合fzf，搜索日期、时间、房间。（详见wiki）$bitroomshow|fzf详细帮助如下。（要先pipx install bitroom）$bitroom--help
Usage:python-mbitroom[OPTIONS]COMMAND[ARGS]...BIT场地预约查询接口

Options:--versionShowtheversionandexit.--helpShowthismessageandexit.

Commands:config-paths列出配置文件可能的位置show显示所有可预约的时空区间$bitroomshow--help
Usage:python-mbitroomshow[OPTIONS]显示所有可预约的时空区间默认从API爬取，因服务器响应慢，大约需10s。$bitroomshow也可直接从stdin提供之前的结果。$bitroomshow--json>./bookings.json$cat./bookings.json|bitroomshow

Options:--json/--no-json按JSON格式输出--authTEXT认证信息，形如“1120771210:cyberpunk”（<学号>:<密码>）；不建议使用，请改用配置文件--helpShowthismessageandexit.$bitroomshow
<Booking[【睿信书院】静c-鸿远报告厅]2023-05-0716:00–16:45>
<Booking[【睿信书院】静c-鸿远报告厅]2023-05-0719:20–20:05>
<Booking[【精工书院】研讨室1]2023-05-0412:15–13:20>
<Booking[【睿信书院】静c-自控会议室]2023-05-0413:20–14:05>
<Booking[甘棠社区-102春·事定（Multi-functionRoom）]2023-05-0521:00–22:00>
<Booking[甘棠社区-102春·事定（Multi-functionRoom）]2023-05-0613:20–14:05>
<Booking[甘棠社区-102春·事定（Multi-functionRoom）]2023-05-0614:10–14:55>
<Booking[甘棠社区-102春·事定（Multi-functionRoom）]2023-05-0715:10–15:55>
……🎨图形终端 TUI目前还在早期测试阶段，仅仅能用而已。支持查询、搜索、预约。$pipxinstallbitroom[tui]⚙️ 配置（仅用于 CLI、TUI）编辑config.toml，写入学号、密码，用于登录“统一身份认证”。# 仅作示例，非真实信息username="1120771210"password="cyberpunk"配置文件的位置遵循各操作系统惯例，可通过bitroom config-paths列出。另外，您也可用环境变量$BITROOM_CONFIG_PATH指定位置。🌟 致谢YoungKlaus/BIT_Auto_Leave: 北京理工大学自动请假BITNP/bitsrun: 北京理工大学 10.0.0.55 校园网登录登出的 Python 实现
Package: bits3
bits3Upload Backintime snapshots to AWS S3.DescriptionBack In Timeis a simple backup tool for Linux, which saves your backups as normal directories on external disks or remote servers.
Withbits3you can save Back In Time backups as archive on AWS S3.The Back In Time backup directory will be packed as a tar, encrypted with a password via the Linux toolGnuPGand uploaded to AWS S3 via the official AWS SDK for Python (boto3).This process will take a few hours for large backup directories. Thusbits3is not for daily backup purpose, rather for creating emergency backups every few months, which can be used, if all other backups are lost.InstallationPython3.6 or greate is required.pip install bits3UsageAWS ConfigYou have to create a new AWS bucket first. For each backup directory you have to use a dedicated bucket!The handling of the AWS credential is the same as in the official AWS CLI. You can use environment variables or a credentials file. Check the official documentation for more information (https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html).Run bits3bits3 --progress --bucket <AWS_BUCKET_NAME> --secret <PASWORD_FOR_ENCRYPTION> <BACKINTIME_BACKUP_DIR><AWS_BUCKET_NAME>and<PASWORD_FOR_ENCRYPTION>can also be provided via environment variables:export BITS3_BUCKET=<AWS_BUCKET_NAME>
export BITS3_SECRET=<PASWORD_FOR_ENCRYPTION>
bits3 <BACKINTIME_BACKUP_DIR>HelpThere are some more options avaialbe, check the help to get more information:bits3--helpAll the options can also be defined as environment variables in the formatBITS3_OPTIONNAME
Package: bits-appengine
bits-pypi-templateBITS pypi package templateTo start a new BITS pypi package, create a new repo based off of this template. Then:Renamebits/exampledirectory tobits/<packagename>Inpackage.sh, changebits_exampletobits_<packagename>Inbits/<packagename>/__init__.py, change mentions ofExampletoPackageNameIntest.py, changebits.exampletobits.<packagename>Also intest.py, change mentions ofExampletoPackageNameRun./test.pyto make sure everything is working
Package: bit-saver
Bit-SaverBit-Saver is a Python library for fetching and saving OHLCV (Open, High, Low, Close, Volume) data from Upbit exchange to local storage.InstallationYou need to have Python 3 or higher installed. Installation of the library can be done simply with pip:pip install bit-saverUsageHere's a basic example of how to use Bit-Saver:frombit_saverimportBitSaverbit_saver=BitSaver()bit_saver.save_all_data('your_directory_path')FeaturesFetches OHLCV data for all coins from Upbit on a daily basis.Saves the data locally in CSV format.LicenseThis project is distributed under the MIT license. For more information, see the LICENSE file.ContactIf you encounter any problems or have any questions, please open an issue on our Github issues page.