Saravanan666/pypi-org huggingface dataset:
Package: alba-client-python
Библиотека для работы c Alba=============Библиотека содержит два базовых класса AlbaService и AlbaCallback предназначенных для наследования.AlbaService - сервис в Alba. Позволяет получить список доступных способов оплаты, инициировать транзакцию, получать информацию о ней. Необходимо создать по экземпляру на каждый существующий сервис.AlbaCallback - обработчик для обратного вызова от Alba. Проверяет подпись и вызывает соответствующий параметру "command" метод.В процессе работы может сработать исключение AlbaException.Пример использования для инициации транзакции:from alba_client import AlbaService, AlbaExceptionservice = AlbaService(<service-id>, '<service-secret>')try:response = service.init_payment('mc', 10, 'Test', 'test@example.com', '71111111111')except AlbaException, e:print eПроверка, требуется ли 3-D secure:card3ds = response.get('3ds')if card3ds:# Требуется 3-D secureЕсли 3-D secure требуется, то необходимо сделать POST запрос на адрес card3ds['ACSUrl'] с параметрами:PaReq - с значением card3ds['PaReq']MD - с значением card3ds['MD']TermUrl - URL обработчика, на вашем сайте. На него будет возвращён пользователь после прохождения3DS авторизации на сайте банка-эмитента карты. Этот URL нужно сформировать так,чтобы в нём передавалась информация о транзакции: рекомендуется передавать service_id, tid и order_id(если транзакция создана с ним).Пример использования для обратного вызова:from alba_client import AlbaCallbackclass MyAlbaCallback(AlbaCallback):def callback_success(self, data):# фиксирование успешной транзакцииservice1 = AlbaService(<service1-id>, '<service1-secret>')service2 = AlbaService(<service2-id>, '<service2-secret>')callback = MyAlbaCallback([service1, service2])callback.handle(<словарь-c-POST-данными>)
Package: albanian-lang
Make sure you have upgraded version of pipWindowspy -m pip install --upgrade pipLinux/MAC OSpython3 -m pip install --upgrade pipCreate a project with the following structurepackaging_tutorial/
├── LICENSE
├── pyproject.toml
├── README.md
├── setup.cfg
├── src/
│   └── example_package/
│       ├── __init__.py
│       └── example.py
└── tests/
touch LICENSE
touch pyproject.toml
touch setup.cfg
mkdir src/mypackage
touch src/mypackage/__init__.py
touch src/mypackage/main.py
mkdir testspyproject.tomlThis file tells tools like pip and build how to create your project[build-system]
requires = [
    "setuptools>=42",
    "wheel"
]
build-backend = "setuptools.build_meta"build-system.requires gives a list of packages that are needed to build your package. Listing something here will only make it available during the build, not after it is installed.build-system.build-backend is the name of Python object that will be used to perform the build. If you were to use a different build system, such as flit or poetry, those would go here, and the configuration details would be completely different than the setuptools configuration described below.Setup.cfg setupUsing setup.cfg is a best practice, but you could have a dynamic setup file using setup.py[metadata]
name = example-pkg-YOUR-USERNAME-HERE
version = 0.0.1
author = Example Author
author_email = author@example.com
description = A small example package
long_description = file: README.md
long_description_content_type = text/markdown
url = https://github.com/pypa/sampleproject
project_urls =
    Bug Tracker = https://github.com/pypa/sampleproject/issues
classifiers =
    Programming Language :: Python :: 3
    License :: OSI Approved :: MIT License
    Operating System :: OS Independent

[options]
package_dir =
    = src
packages = find:
python_requires = >=3.6

[options.packages.find]
where = srcRunning the buildMake sure your build tool is up to dateWindowspy -m pip install --upgrade buildLinux/MAC OSpython3 -m pip install --upgrade buildCreate the buildpy -m buildReferenceshttps://packaging.python.org/tutorials/packaging-projects/
Package: albatross3
AlbatrossA modern, fast, simple, natively-async web framework. (Python3.5 only)fromalbatrossimportServerimportasyncioclassHandler:asyncdefon_get(self,req,res):awaitasyncio.sleep(0.1)res.write('Hello,%s'%req.args['name'])app=Server()app.add_route('/{name})',Handler())app.serve()Notes for UsageFor now (pre 1.0.0), I’m making no claims about API stability (but will
try to avoid changes). That said, I’m using this framework for some
small projects, and it is a joy to work in! Reach out if you want to use
this, as I’m happy to incorporate your feedback!Installpip3 install albatross3FeaturesYou can read the entire codebase in about 30 minutes.It’s natively async. Doingawaitdatabase calls or controller
calls in your views just works!This works with theuvloopproject, to make your server fast!BenchmarksMy benchmarks indicate that albatross is as fast as aiohttp, both of
which are twice as fast as tornado. You can run the benchmarks by
poking around in thebench/folder.
Package: albatross_extras
HandlerThere are handlers for:static filesstatic directoriesserver health & profilingjinja2 templatingMiddlewareThere is middleware for:authenticationloggingstatsdcors cross-browser authorizationExamplefromalbatrossimportServerfromalbatross_extras.handlerimportHealthHandlerfromalbatross_extras.middlewareimport(StatsdMiddleware,LoggingMiddleware,)fromalbatross_extras.libimportloggingimportasyncioclassHandler:asyncdefon_get(self,req,res):awaitasyncio.sleep(0.1)res.write('Hello,%s'%req.args['name'])app=Server()logger=logging.get_logger('my-app.web')app.add_middleware(LoggingMiddleware(logger)app.add_middleware(StatsdMiddleware())app.add_route('/health',HealthHandler())app.serve()# You'll now emit stats to statsd and log in JSON format to stdout
Package: albatros-uav
Albatros UAVA python library that provides high-level functions for UAVs based on MAVLink. It allows to easily handle communication with the flight controller to create friendly mission management systems. Albatros supports direct communication with UAVs as well as via Redis (WIP)Supported functionalitiesPlane:arming vehicle,setting flight mode,setting servos positions,flying inGUIDEDmode,uploading mission and flying inAUTOmode,param protocol.Copter:arming vehicle,setting flight mode,setting servos positions,flying inGUIDEDmode,param protocol,comming soon:uploading mission and flying inAUTOmode.Access to UAV telemetry viaUAV.dataSupported MAVLink telemetry messagesAttitudeGlobalPositionIntGPSRawIntGPSStatusHeartbeatCommandACKMissionACKMissionRequestIntRadioStatusRcChannelsRawServoOutputRawSysStatusMissionItemReachedParamValuePositionTargetLocalNEDHomePositionLocalPositionNEDNavControllerOutputExamplesCreating connectionfromalbatrosimportPlane,ConnectionTypefromalbatros.telemimportComponentAddress# SITL connection is defaultplane=Plane()# Direct connection to the flight controllerplane=Plane(device="/dev/tty/USB0/",baud_rate=57600)# You can also specify the ID of the vehicle you want to connect to and the ID of your system# read more about MAVLink Routing in ArduPilot: https://ardupilot.org/dev/docs/mavlink-routing-in-ardupilot.htmlplane_addr=ComponentAddress(system_id=1,component_id=1)gcs_addr=ComponentAddress(system_id=255,component_id=1)plane=Plane(uav_addr=plane_addr,my_addr=gcs_addr)Arming vehicle (SITL simulation)$python-mexamples.arming_vehiclefromalbatrosimportUAVvehicle=UAV()whilenotvehicle.arm():print("Waiting vehicle to arm")print("Vehicle armed")ifnotvehicle.disarm():print("Disarm vehicle failed")print("Vehicle disarmed")
Package: albert
Albert Heijn (unofficial) REST interfaceNew features are being addedInstallationpip install albertUsageInitalize APIimport albert
ah = albert.Api("username","password")Make an account on ah.nl.Add product to cartah.add("wi386562",amount=30)You can find products onwww.albertheijn.nl. I.e.,https://www.ah.nl/producten2/product/wi383655/ah-conference-perenBy default, one item is added to cart if you dont pass the second parameter.Items in cartah.cart()Empty cartah.empty()Save cart to listah.shopping_list_add("Name of List", empty_card=False)Standard after calling shopping_list_add method, by Default, the items in your cart will remain. When passing the second argument as True, the items will get removed from your cart after saving the cart items to list.Product Informationah_product = albert.Product('wi60539/ah-scharrelei-advocaat')
print(ah_product.id)pass the query without producten/product/ from a product as string argument to retrieve information from the product. Several items can be accessed:idnamebranddescriptionsummaryunit_sizecategoryis_availablepriceLabelprice_currentprice_previousis_discounted
Package: albert_pytorch
这是一个包
albert_pytorch# fix
修正提交错误版本更新日志
0.0.2.1.3
修复了cpu运行时候错误0.0.1.9
训练加入自动随机屏蔽数据15%
适用于所有数据
0.0.1.7
版本之前的请勿使用
0.0.2.1
加入处理两句话的判断操作
分类示例
from albert_pytorch import classify
tclass = classify(model_name_or_path=’outputs/terry_r_rank/’,num_labels=1,device=’cuda’)
p=tclass.pre(text)
Package: albert-tensorflow
ALBERT for TensorFlowThis is a fork of the originalALBERT repositorythat adds package configuration so that it can be easily installed and used.
The purpose is to remove the need of cloning the repository and modifying it
locally which can be quite dirty for common tasks (e.g. training a new classifier).
A lot of code could be shared (e.g.modeling.py,optimization.py) and this
fork is exactly for that.All the credit goes togoogle-research/albert.Please refer to the official repository for details on how to use the modules
contained in this package. Useful information can also be found
in theALBERT paper.Release NotesNovember 5, 2019: Initial version -v1.0.November 15, 2019: version 1.1 -v1.1.
Package: albhed
Al BhedSimple CLI and Library that translates Text into Al BhedPython:>>>fromalbhedimportAlBhed>>>>>>albhed=AlBhed("Hello, World!")>>>albhed.translate()'Rammu, Funmt!'>>>>>>albhed=AlBhed("Rammu, Funmt!")>>>albhed.revert()'Hello, World!'Shell:$albhedHello,World!
Rammu,Funmt!

$albhed-rRammu,Funmt!
Hello,World!
Package: albion-data
A simple wrapper for theAlbion Data ProjectAPIInstallInstall using pippython3-mpipinstallalbion-dataFeaturescheck price of items# price of t4 and t5 bag at lymhurst quality 1fromalbion_dataimportget_priceget_price(["T4_BAG","T5_BAG"],"Lymhurst",1)check history of item#get daily history of t4 bag at lymhurst of quality 1fromalbion_dataimportget_historyget_history("T4_BAG","Lymhurst",1,time_scale=24)System for making arithemetic expressionsThe values are lazy loaded.#check if t4 leather refining is profitable in fort sterling without focusfromalbion_dataimportVart4leather=Var("T4_LEATHER","Fort Sterling","sell_price_min")t4hide=Var("T4_HIDE","Fort Sterling","sell_price_min")t3leather=Var("T3_LEATHER","Fort Sterling","sell_price_min")if(2*t4hide+t3leather)<t4leather:#triggers a single API callprint("refine t4hide")else:print("not worth it")NOTESThe item ids and market names can be foundhereUse &,|,~ for logical and,or,not when making arithemetic expressions
with Var.why not
and,or,not?the PYPI name of package and all API might change until v1
Package: albion-similog
Albion SimilogThis project is dedicated to the generation of possible edges within theAlbionframework, through the way ofFAMSAalgorithm.albion_similogworks with Python3.8.InstallationDependenciesThis package works with a few dependencies from the biology ecosystem, likebiopythonorscikit-bio. They are installable easily throughpip.There is a notable exception withFAMSA, that should be patched for specific Albion purpose, and
compiled. Everything is managed through theMakefile.Debian/Ubuntu$ virtualenv .venv
$ source .venv/bin/activate
(.venv) $ make installWindowsTODO
Package: alb-response
AWS ALB Response CreatorThe AWS announcement ofApplication Load Balancers supporting Lambda functionsmade my reInvent experience!PurposeIn doing a PoC however, I found that thestatusDescriptionelement was somewhat of an annoyance to code. This package provides a method to return the appropriate format of this field without copy/paste response data and allowing a strategy to implement this to swap out response formats for API Gateway or ALB as needed.InstallationRunpip install alb-responseUsagefromalb_responseimportalb_responsedeflambda_handler(event,context):response_dict=process_the_event(event)returnalb_response(http_status=200,json=response_dict,is_base64_encoded=False,)ArchitectureSetup an Application Load Balancer (ALB)Create a target group for the LambdaAssign appropriate permissions to your Lambda functionAttach the target group to the ALB with a ruleContributingContributions are welcome! Please open an issue or make a pull request.If making a pull request, please run the tests and ensure that you maintain or increase code coverage.DependenciesTo make this project more portable and keep environments organized, this project leveragespipenv. To install deterministic dependencies, runpipenv sync.Run TestsTo run the tests, install the dependencies and runbehave.To get code coverage as well, runcoverage run --source='.' -m behavefollowed bycoverage report.Release Log0.1.0Initial Release0.1.1Dependency update to resolveCVE-2019-11324.0.1.2Patch to support null json responses without sending an empty json object
Package: albula
AlbulaA minimalist self-hosted music server.Install withpip install albula.Current statusThe library build is still wonky, I need to untangle scanning, metadata extraction etc and clean up. For now, complete rebuild is often the better option.Why not Plex / Subsonic / Airsonic / ...?I just made Albula for myself because I disliked several things about the other options. Most likely, it will not be better than them for you. Some features to note though:Support for multiple artists per track / album artists per album / albums per trackLess crowded interfaceDirect server-side scrobbling toMaloja, removing the need for individual solutions for each clientNo Javascript-bloated web interfaceNo central authentication / phone-homeRequirementsPython 3.5 or higherLibrary guidelinesAlbula is fairly good at filling in missing metadata from folder structure. Generally, if you follow the default pattern with folders for each album artist that contain folders for each album, you can have pictures namedalbum.extandartist.extin the appropriate folders and they should be correctly assigned.
Package: album
albumIntroduction:https://album.solutions/Documentation:https://docs.album.solutions/CitationAlbrecht, J.P.*, Schmidt, D.*, and Harrington, K., 2021. Album: a
framework for scientific data processing with software solutions of
heterogeneous tools. arXiv preprint arXiv:2110.00601.https://arxiv.org/abs/2110.00601DevelopersKyle Harrington, Max Delbrueck Center for Molecular Medicine in the
Helmholtz AssociationJan Philipp Albrecht, Max Delbrueck Center for Molecular Medicine in
the Helmholtz AssociationDeborah Schmidt, Max Delbrueck Center for Molecular Medicine in
the Helmholtz Association
Package: album2video
receives tracks and img and outputs albumvideo with tracknames subtitle & timestamps.txtDescriptionalbum2videois a CLI to create album videos with img as bg & tracknames subtitles (useful for uploading albumvideos to yt)Python 3.9InstallationFrom PyPIpip3 install album2videoOR w/ pipx (recommended)pipx install album2videoFrom SourceClone the project ordownload and extract the zipcdto the project directory containing thesetup.pypython setup.py installorpipx install .DetailsUsage:
album2video [options] [URL...]

Arguments:
    URL                     Path to folder w/ tracks & img
                                        or
                                folderpath + img path
                                        or
                            individual trackpaths + img path

Examples:
    album2video --help
    album2video path/to/folder
    album2video --title TheAlbumTitle path/to/mp3 path/to/mp3 path/to/imgRequires path to img or path to folder with img(Needs ImageMagick installed)
Windows users will have to define magick.exe filepath with album2video –imgmagick path/to/magick.exeOptionsOptions:
    -h --help               Show this screen
    -v --version            Show version
    -d --debug              Verbose logging
    -n --notxt              Don't output timestamps.txt
    -t --test               Run program without writing videofile (for test purposes)
    --title=TITLE           Set title beforehand
    --imgmagick=PATH        Set path to ImageMagick & exit
Package: album-client
album-clientCitationAlbrecht, J.P.*, Schmidt, D.*, and Harrington, K., 2021. Album: a
framework for scientific data processing with software solutions of
heterogeneous tools. arXiv preprint arXiv:2110.00601.https://arxiv.org/abs/2110.00601DevelopersKyle Harrington, Max Delbrueck Center for Molecular Medicine in the
Helmholtz AssociationJan Philipp Albrecht, Max Delbrueck Center for Molecular Medicine in
the Helmholtz AssociationDeborah Schmidt, Max Delbrueck Center for Molecular Medicine in
the Helmholtz Association
Package: albumentations-experimental
Albumentations ExperimentalThe Albumentations Experimental library provides experimental and cutting edge augmentation techniques on topAlbumentations.Why a separate libraryAlbumentations provides stable and well-tested interfaces for performing augmentations. We don't want to pollute the library with features that may be prone to rapid changes in interfaces and behavior since they could break users' pipelines. But we also want to implement new, experimental features and see whether they will be useful.So we created Albumentations Experimental, a library that will help us to iterate faster and remove the need for striving for backward compatibility and rigorous testing.Beware, that each new version of Albumentations Experimental may contain backward-incompatible changes both in interfaces and behavior.When features in Albumentations Experimental are mature enough, we will port them to the main library with all our usual policies such as rigorous testing, extensive documentation, and stable behavior.InstallationAlbumentations Experimental requires Python 3.5 or higher.Install the latest stable version from PyPIpipinstall-Ualbumentations_experimentalInstall the latest version from the master's branch on GitHubpipinstall-Ugit+https://github.com/albumentations-team/albumentations-experimentalUsageImport augmentations from the library:fromalbumentations_experimentalimportFlipSymmetricKeypointsDocumentationDocumentation is available athttps://albumentations.ai/docs/experimental/overview/List of augmentations and their supported targetsSpatial-level transformsTransformImageMasksBBoxesKeypointsFlipSymmetricKeypoints✓✓✓✓HorizontalFlipSymmetricKeypoints✓✓✓✓TransposeSymmetricKeypoints✓✓✓✓VerticalFlipSymmetricKeypoints✓✓✓✓
Package: album-image-util
Album image utilℹ Note:This project is onpipso I can use it on other machines, you'll probably not find a
use case for as it is ultra-specific️
This is a project for my Album of the day website, which is a website where I post my writing about albums:
one every day. The album of the days were initially written in image form. To get them on the website, I had to do some OCR-reading of previous album
image files. This library can extract different parts of these images (because I used the same template for all of them).
It can also create new album of the day images.
Package: album-of-the-year-api
AlbumOfTheYearWrapperA light weight python library that acts as an API forhttps://www.albumoftheyear.org/DescriptionGets data fromhttps://www.albumoftheyear.org/. The website doesn't currently provide API support so web parsing is required to obtain data. Because of this,
and according tohttps://www.albumoftheyear.org/robots.txt, searching and POST requests are not allowed.Installationpip install album-of-the-year-apior upgradepip install album-of-the-year-api --upgradeUsageExamplesHere's a quick example of getting a specific users follower countfrom albumoftheyearapi import AOTY

client = AOTY()
print(client.user_follower_count('jahsias'))If you don't need the full functionality, you can also import only the neccesary filesfrom albumoftheyearapi.artist import ArtistMethods

client = ArtistMethods()
print(client.artist_albums('183-kanye-west'))Notice artists also need their unique id along with their nameMethodsArtist Methodsartist_albums(artist)Returns a list of all albums by an artistParameters:artist - artist id and nameartist_mixtapes(artist)Returns a list of all mixtapes by an artistParameters:artist - artist id and nameartist_eps(artist)Returns a list of all eps by an artistParameters:artist - artist id and nameartist_singles(artist)Returns a list of all singles by an artistParameters:artist - artist id and nameartist_name(artist)Returns the name of the artistParameters:artist - artist id and nameartist_critic_score(artist)Returns the critic score of the artistParameters:artist - artist id and nameartist_user_score(artist)Returns the user score of the artistParameters:artist - artist id and nameartist_total_score(artist)Returns the average of the critic and users score of the artistParameters:artist - artist id and nameartist_follower_count(artist)Returns the follower count of the artistParameters:artist - artist id and nameartist_details(artist)Returns the detials of the artistParameters:artist - artist id and nameartist_top_songs(artist)Returns a list of the top songs of the artistParameters:artist - artist id and namesimilar_artists(artist)Returns a list of similar artists to the given artistParameters:artist - artist id and nameUser Methodsuser_rating_count(user)Returns the number of ratings by a userParameters:user - usernameuser_review_count(user)Returns the number of reviews by a userParameters:user - usernameuser_list_count(user)Returns the number of lists by a userParameters:user - usernameuser_follower_count(user)Returns the number of followers a user hasParameters:user - usernameuser_about(user)Returns the about page of a userParameters:user - usernameuser_rating_distribution(user)Returns a list of a users rating distributionParameters:user - username
Package: album-package
Album plugin for packaging solutions into executablesThis plugin is used to create installation executables for Album and Album solutions, so Album and a solution can be
installed with a simple double click. The executable creates a shortcut for running Albums UI on the desktop of the
user. The executables can be distributed to a different system running the same operating system. To create executables
for different operating systems, run this plugin on a system running the target operating system. If the the target
system runs Windows or MacOS it doesn't need to have anything preinstalled, the executable will install every needed
component (Micromamba and album) into the ~/.album directory if they are not already installed in this location. Linux users
need to have the binutils package installed.Installation:Install AlbumActivate the album environment:conda activate albumInstall the album package plugin:pip install album-packageIf you are using a linux system, make sure the source and the target system got the binutils package installed. For
example on ubuntu it can be installed with the following command:apt-get update && apt-get install binutilsUsage:To create an executable which installs Album run following command:album package --output_path /your/output/pathTo create an executable which installs Album and a solution in one go run following command:album package --solution /path/to/your/solution.py --output_path /your/output/pathInput parameter:solution: The album solution.py file which should be packed into an executable.
If you provide the path to a directory containing a solution.py all files in the directory will be packaged into the
solution executable. If you provide the direct path to a solution.py only the solution will packaged. If your solution
contains local imports, make sure all imported files lie in the same directory as the solution and you provide the
path containing the solution.py. If this parameter is not set, the resulting executable will only install Album without
a solution.output_path: The path where the executable should be saved