Saravanan666/pypi-org huggingface dataset:
Package: apollo-client-py
apollo-client - Python Client for Ctrip's Apollo方便Python接入配置中心框架Apollo所开发的Python版本客户端。
Tested with python 3基于https://github.com/BruceWW/pyapollo, 修复Apollo 1.6.0 之后带来的密钥问题；
同时会提交给BruceWW进行修改Installationpipinstallapollo-client-pyFeatures实时同步配置灰度配置客户端容灾Usage启动客户端长连接监听frompyapolloimportApolloClientclient=ApolloClient(app_id=<appId>,cluster=<clusterName>,config_server_url=<configServerUrl>,secret=<AppSecretKey>)client.start()获取Apollo的配置client.get_value(Key, DefaultValue)ContributionSource Code:https://github.com/BruceWW/pyapolloIssue Tracker:https://github.com/BruceWW/pyapollo/issuesOriginal Source Code:https://github.com/filamoon/pyapolloLicenseThe project is licensed under theApache 2 license.ReferenceApollo :https://github.com/ctripcorp/apolloContributorBruceprchenxhrgVersion log11/24/2019  Bruce  0.8.2   优化本地缓存的存储方式1/4/2020    Bruce  0.8.4   修复文件读取异常的bug3/24/2020prchen0.8.5   修复安装过程中requests模块依赖的问题7/5/2020    Bruce  0.9     主线程退出时，关闭获取配置的子线程25/5/2020xhrg0.9.1   修复文件名称读取异常30/5/2020xhrg0.1.0   修复密钥问题30/5/2020xhrg0.1.1   获取所有的keys
Package: apollo-config-sdk
Apollo-Config-Sdkfromapollo_config_sdk.clientimportApolloClientif__name__=='__main__':client=ApolloClient(app_id="appid",cluster="cluster",config_url='config_url',secret="secret")foriinrange(500):importtimetime.sleep(1)z=client.get_value('key',namespace='namespace')print(z)passFeature Acceptance Test environment 功能验收测试环境，用于软件测试者测试使用
Package: apollogize
ApollogizeApollogize is a command line tool which assists the employers who forgot to check-in and check-out in Apollo HR app.InstallationIt's available on pypi, simply use pip to install Apollogize package.pipinstallapollogizeContributionpython-mvirtualenvvenv
pipinstall--uservirtualenvsourcevenv/bin/activate
pipinstall--upgradepip
pipinstall-rpip-requirements.txtLicenseLicensed under the GPLv3 license.
Package: apollon
ApollonApollon is a Python framework for audio feature extraction and music similarity
estimation. It includes subpackages forAudio feature extractionHidden Markov ModelsSelf-Organizing Map1. Installation1.1 Install from PyPIThe latest version of apollon is available on PyPI. Just open a terminal an run
the following command to download and install apollon:pip install apollonWe currently provide wheels for macOS and Windows; GNU/Linux users have to
build apollon from source.2. DocumentationFulldocumentationis available on readthedocs.
Package: apollopy
apolloapollo is a command line utility which helps you being healthy by reminding you to take breaks at fixed intervals of time.InstallationOn Windows:pipinstallapollopyOn Linux/MacOS:pip3installapollopyOr if you're using pipx:pipxinstallapollopyUsagestartStarts the forever loop, reminds you to take eyes, water and exercise breaks after regular intervals of time.Example:$apollostartconfigConfigures apollo reminder time.On default:eyes timeout = 15 mins
water timeout = 30 mins
exercise timeout = 45 minsHowever, you can configure this behaviour using theconfigcommand.The valid options for theconfigcommand are:eyes-timeoutwater-timeoutexercise-timeoutThe value of all these flags must be in seconds.Example:$apolloconfig--eyes-timeout1000Versioningapollo releases follow semantic versioning, every release is in thex.y.zform, where:x is the MAJOR version and is incremented when a backwards incompatible change to apollo is made.y is the MINOR version and is incremented when a backwards compatible change to apollo is made, like changing dependencies or adding a new function, method, or features.z is the PATCH version and is incremented after making minor changes that don't affect apollo's public API or dependencies, like fixing a bug.LicensingLicense © 2021-Present Shravan AsatiThis repository is licensed under the BSD license. SeeLICENSEfor details.
Package: apollo-python
安装pipinstallapollo-python使用导入包from apollo_python import ApolloClientapp_id = 'demo-service'
config_url = 'http://127.0.0.1:8080'
cluster = 'default'
secret = ''
env = 'DEV'

client = ApolloClient(app_id=app_id, config_url=config_url, cluster=cluster, secret=secret, env=env)
lm_API_KEY = client.get_value("lm_API_KEY")也默认支持通过环境变量来传递值,基本和 Java 客户端保持一致客户端初始化参数参数说明默认值环境变量app_id应用名无APP_IDconfig_url配置中心地址http://127.0.0.1:8080${ENV}_META or APOLLO_METAcluster集群名defaultIDCsecret访问密钥无APOLLO_ACCESS_KEY_SECRETenv环境DEVENVclient_ip客户端ip获取当前 IPCLIENT_IPcache_path配置缓存路径tmp/apollo/cacheAPOLLO_CACHE_PATHneed_hot_update是否需要热更新True-change_listener配置变更监听器(回调函数)None-log_level日志级别INFOLOG_LEVELnotification_map通知配置 (dict)None-配置变更监听器 change_listener"""接受 4 个参数action：delete \ add  \ updatenamespace：namespacekey：keyold_value：old_value"""defchange_listener(action,namespace,key,old_value):print(f"action:{action}namespace:{namespace}key:{key}old_value:{old_value}")通知配置 notification_mapnotification_map={"application":["application"],"application.yml":["application.yml"]}配置优先级*** 环境变量 > 代码配置 ***如果环境变量存在，则优先使用环境变量的值。如果环境中存在 ENV的环境变量, 如 ENV=DEV。则优先组合出DEV_META这个环境变量名称来获取 config url。 如果该环境变量不存在，则取APOLLO_META环境变量的值。如果APOLLO_META也不存在，则使用代码定义的 config_url 的值。其它环境变量同理，以此类推。热更新默认会启动一个线程来定时更新本地缓存的配置，所以，如果每次用的是 get_value 来获取配置，可以实现配置热更新。本地打包 wheelpython3 -m pip install --user --upgrade setuptools wheel
python3 setup.py sdist bdist_wheel  

# upload
twine upload dist/*LicenseThis is free and unencumbered software released into the public domain.Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any means.
Package: apollo-tylerhm
# ApolloChecker complete with diff, token, and epsilon checking.# Installationpython3 -m pip install apollo-tylerhm –upgrade# Usageusage:apollo [-h] [-t | -e EPS] input user_output judge_outputpositional arguments:input              input file
user_output        user output file
judge_output       judge output fileoptional arguments:-h,--helpshow this help message and exit-t,--tokuse token checker-eEPS,--epsEPSuse epsilon checker
Package: apollov2-football-api-parser
websit:https://rapidapi.com/api-sports/api/api-football[metadata]
name = apollov2_api_parser
version = 0.0.1
author = zhe wang
description = extract data from api and transform it into dataframe
long_description = file: README.md
long_description_content_type = text/markdown
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 = src
Package: apologies
Apologies Python LibraryApologiesis a Python library that implements a game similar to theSorryboard game.  On UNIX-like platforms, it includes a console demo that plays the game with automated players, intended for use by developers and not by end users.  See thedocumentationfor notes about the public interface.It was written as a learning exercise and technology demonstration effort, and
serves as a complete example of how to manage a modern (circa 2020) Python
project, including style checks, code formatting, integration with IntelliJ, CI
builds at GitHub, and integration with PyPI and Read the Docs.
Package: apologiesserver
Apologies ServerApologies Serveris aWebsocketserver interface used to interactively play a multi-player game using theApologieslibrary.  The Apologies library implements a game similar to theSorryboard game.It was written as a learning exercise and technology demonstration effort, and serves as a complete example of how to manage a modern (circa 2020) Python project, including style checks, code formatting, integration with IntelliJ,CI builds at GitHub, and integration withPyPIandRead the Docs.See thedocumentationfor notes about the public interface and the event model.Not MaintainedI developed this code in mid-2020 during COVID-enforced downtime, as part of an effort to write a UI calledApologies UI.  Javascript moves really fast, and by mid-2021, the UI implementation was already partially obsolete.  By late 2022, this server implementation was also partially obsolete.  In particular, theasynctestlibrary I choose for unit testing my asynchronous code hasn't been updated for more than 3 years, and does not support Python 3.11.I don't have the time, or frankly the interest, to rewrite the unit test suite to work with Python 3.11. So, as of November 2022, I have decided to archive this repository and stop maintaining it. It's best to treat this code (in conjunction with Apologies UI itself) as a snapshot of a working design from 2020.  The server code still works fine with earlier versions of Python, and it's still a reasonable example, but it will become less and less relevant as time goes on.
Package: apoor
apoorcreated by Austin PoorA small personal package created to store code and data I often reuse.Inspired by Hillary Parker'sblog postabout personal R packages.I'm also using it toLinksGitHub Repo:https://github.com/a-poor/apoorPyPi Package:https://pypi.org/project/apoorDocumentation:https://apoor.readthedocs.io/en/latestInstallation Instructions$pipinstallapoorI'd love to know if you use this package or have any suggestions for things to add!
Package: apophis
Apophis: A python client for KrakenApophis is a Python client for Kraken's REST API. It provides a common interface
for bothKrakenandKraken Future.You want to say thanks?QuickstartPublic endpoints can be accessed without authentication.fromapophisimportKrakenwithKraken()asexchange:price=exchange.market_price(pair='XXRPZEUR')print(price)# 0.51081For placing orders, authentication is necessary:fromapophisimportKrakenkey=...secret=...withKraken(key,secret)asexchange:order=exchange.buy(pair='XXRPZEUR',volume=1000,price=0.5)# Buying 1000 XXRPZEUR at 0.5 -> 500.0€Alternatively, the low level API can be directly used to perform any kind of
query.fromapophisimportApophiswithApophis()asclient:response=client.query('Ticker',{'pair':'XXRPZEUR'})print(response['result'])# {'XXRPZEUR': {'a': ['0.48683000', '33129', '33129.000'],#               'b': ['0.48659000', '2915', '2915.000'],#               'c': ['0.48719000', '41.55695712'],#               'v': ['13015397.92184023', '46789050.96995769'],#               'p': ['0.48149626', '0.47328592'],#               't': [5110, 19079],#               'l': ['0.45331000', '0.44697000'],#               'h': ['0.49354000', '0.49681000'],#               'o': '0.45730000'}}Last but not least, there is a fully functional CLI:❯apophisqueryTickerpair=XXRPZEUR{'error':[],'result':{'XXRPZEUR':{'a':['0.45586000','6356','6356.000'],'b':['0.45561000','63000','63000.000'],'c':['0.45521000','71.58800000'],'v':['27100060.07361936','45765330.64314690'],'p':['0.43901689','0.45396762'],'t':[11527,19747],'l':['0.41500000','0.41500000'],'h':['0.46588000','0.49300000'],'o':'0.46153000'}}}❯apophisprice"XXRPZEUR"XXRPZEUR:0.45352InstallationThe latest stable release (and older versions) can be installed from PyPI:pip install apophisYou may instead want to use the development version from Github. Poetry is
needed and can be installed either from PyPI or:curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | pythonThen once you cloned the repository, you can install it with:poetry installContributingWant to add a cool logo, more doc, tests or new features? Contributors are more
than welcome! Feel free to open anissueor even better propose changes with aPR.
Have a look at the contributing guide.
Package: apoplan
Bauplan CLIRequirementsdirenvnixdevenvPackage publicationNathan versionCurrently wheel is only supported on OSX with arm64First compile dependency binaries (the actual CLI)$pythonbuild.py
...To build the poetry package:$poetrybuild
...To publish, first bump the version, then runpublish$pythonbuild.py&&poetry-vvvpublish-u__token__-ppypi-blahblahblah--build
...Big versionCreate a.envfile on the root of thecliproject (I have a.env-amarone-devfile) with:POETRY_PYPI_TOKEN_PYPI={{op://BauplanLabs/pypi-github-all-events-publish-bauplan/credential}}Where:BauplanLabsis my Vault namepypi - github-all-events-publish-bauplanis the Key of myAPI Credentialitemcredentialis the field containing the auth token.To build the poetry package:$makebuildTo publish, first bump the version, then runpublish$makepublish
...
Package: apopy
apopy: Simple Apollo Config Client for Python.pipinstallapopyQuick StartNOTE示例里的配置信息仅供测试使用，请勿用于生产环境。具体的配置可能会变动，仅用于说明使用方法，具体的访问方式见https://www.apolloconfig.com/#/zh/READMEfromapopyimportClient,NamespaceTypeclient=Client(config_server_url="http://81.68.181.139:8080",app_id="apollo-common",cluster_name="default",secret="5fdc723621054e0f945cb441561687eb",ip="192.168.1.4",)# 读取 Namespace 为 application 的配置（接口带缓存）print(client.read_namespace_with_cache(namespace="application"))# 读取 Namespace 为 application 的配置（接口无缓存）print(client.read_namespace_without_cache(namespace="application",namespace_type=NamespaceType.PROPERTIES))# 读取配置print(client.get("test"))配置轮训更新Apopy 提供了内置的针对单独 namespace 配置轮训更新功能，可以通过以下方式实现：WARNINGApopy 本身并没有配置单独的线程锁/进程锁，如果真的需要异步订阅更新，
请根据自己的需求在外层加上锁保护。importtimeimportthreadingdefstart_background_update(client:Client):def_update():whileTrue:try:client.read_notification_and_update(namespace="application",namespace_type=NamespaceType.PROPERTIES)exceptException:passfinally:time.sleep(3)t=threading.Thread(target=_update)t.start()start_background_update(client)whileTrue:print(client.read_namespace_with_cache(namespace="application"))time.sleep(5)
Package: aporia
Aporia Python SDKAporia's Python SDK is a powerful tool designed to streamline ML monitoring and observability.Define your models, monitors, dashboards, segments, custom metrics, and other ML Observability resourcesas code, just like in Terraform or Pulumi. The SDK also enables you to query metrics from Aporia to integrate with other platforms.Key FeaturesML Monitoring as Code:Make it easier to manage and track changes by managing your models, dashboards, segments, and other ML Observability resources as code.CI/CD Integration:Integrate with your CI/CD pipeline to automatically monitor all your models with Aporia.Query Metrics:Fetch metrics directly from Aporia's platform to inform decisions or to use in other applications.Data Source Integration:You can define and integrate multiple types of data sources, like S3, Snowflake, Glue Data Catalog, Databricks, and others. This allows your models to leverage a wide range of data for training and inference.Pythonic Interface:Use the familiar Python programming paradigm to interact with Aporia.InstallationYou can install the Aporia SDK using pip:pipinstallaporiaQuickstartDefine models as codeimportdatetimeimportosfromaporiaimportAporia,MetricDataset,MetricParameters,TimeRangeimportaporia.as_codeasaporiaaporia_token=os.environ["APORIA_TOKEN"]aporia_account=os.environ["APORIA_ACCOUNT"]aporia_workspace=os.environ["APORIA_WORKSPACE"]stack=aporia.Stack(token=aporia_token,account=aporia_account,workspace=aporia_workspace,)# Your model definition code goes herestack.apply(yes=True,rollback=False,config_path="config.json")Query Metrics using the SDKThis example shows how you can use the Aporia SDK to query metrics from a model:fromdatetimeimportdatetimefromaporiaimport(Aporia,MetricDataset,MetricParameters,TimeRange,DatasetType,)aporia_token=os.environ["APORIA_TOKEN"]aporia_account=os.environ["APORIA_ACCOUNT"]aporia_workspace=os.environ["APORIA_WORKSPACE"]aporia_client=Aporia(token=aporia_token,account_name=aporia_account,workspace_name=aporia_workspace,)last_week_dataset=MetricDataset(dataset_type=DatasetType.SERVING,time_range=TimeRange(start=datetime.now()-datetime.timedelta(days=7),end=datetime.now(),),)metrics=aporia_client.query_metrics(model_id=model_id,metrics=[MetricParameters(dataset=MetricDataset(dataset_type=DatasetType.SERVING),name="count",),],)print(f"The model had{metrics[0]}predictions last week")Refer to the official Aporia documentation for detailed information on how to use the SDK.DevelopmentThis package uses Poetry for dependency management. To install dependencies, use:poetryinstall
Package: aporia-importer
🏋️‍♀️ Aporia ImporterA small utility to import ML production data from your cloud storage provider and monitor it usingAporia's monitoring platform.Installationpip install aporia-importer[all]If you only wish to install the dependencies for a specific cloud provider, you can usepip install aporia-importer[s3]Usageaporia-importer /path/to/config.yamlaporia-importerrequires a config file as a parameter, seeconfigurationConfigurationaporia-importeruses a YAML configuration file.
There are sample configurations in theexamplesdirectory.Currently, the configuration requires defining a model version schema manually - the schema is a mapping of field names to field types (seehere). You can find more detailsin our docs.The following table describes all of the configuration fields in detail:FieldRequiredDescriptionsourceTrueThe path to the files you wish to upload, e.g. s3://my-bucket/my_file.csv. Glob patterns are supported.formatTrueThe format of the files you wish to upload, seeheretokenTrueYour Aporia authentication tokenenvironmentTrueThe environment in which Aporia will be initialized (e.g production, staging)model_idTrueThe ID of themodelthat the data is associated withmodel_version.nameTrueA name for themodel versionto createmodel_version.typeTrueThetypeof the model (regression, binary, multiclass)predictionsTrueA mapping ofprediction fieldsto their field typesfeaturesTrueA mapping offeature fieldsto their field typesraw_inputsFalseA mapping ofraw inputs fieldsto their field typesaporia_hostFalseAporia server URL. Defaults to app.aporia.comaporia_portFalseAporia server port. Defaults to 443Supported Data SourcesLocal filesS3Supported Data FormatscsvparquetHow does it work?aporia-importerusesdaskto load data from various cloud providers, and theAporia sdkto report the data to Aporia.
Package: apos
aposThe backbone for message-driven applications.SummaryThis Python library is designed to act as a software-level message broker, enabling a lightweight implementation of the publish-subscribe design pattern.apos was born to accomplish two objectives:Decouple the application layer from any interfacesDevelop reactive business functionsWith apos, you can develop a message-driven application. This means that commands, events, and queries are sent to apos, which in return executes the functions that subscribe to these messages. This means that an adapter providing an external interface, may it be a web-API or a CLI, would not directly call application functions, but would rather send a message to apos, which will in return execute the business functions that subscribe to these messages. Equally, a business function would not call any other business function, but rather publishes an event, which other business functions can subscribe to and execute upon, controlled through apos.ContextSee the Medium article linked below to read about why this library was created and how it is intended to be used.https://mkossatz.medium.com/a-backbone-for-message-driven-applications-ffdcef67824cInstallationThe library can be found on PyPi:https://pypi.org/project/apos/pip3installaposGetting StartedThe code below is a very lightweight example of how you can use apos for commands, queries, and events.fromaposimportaposclassRegisterUserCommand:passclassUserRegisteredEvent:passclassNewUserGreetedEvent:passclassRetrieveUserQuery:passclassRetrieveUserResponse:passdefregister_user(command:RegisterUserCommand)->None:# Implementation of user registrationapos.publish_event(UserRegisteredEvent())defgreet_new_user(event:UserRegisteredEvent)->None:# Implementation of user greetingapos.publish_event(NewUserGreetedEvent())defretrieve_user(query:RetrieveUserQuery)->RetrieveUserResponse:# Implementation of user retrievalreturnRetrieveUserResponse()# subscribing to messages (application configuration)apos.subscribe_command(RegisterUserCommand,register_user)apos.subscribe_event(UserRegisteredEvent,[greet_new_user])apos.subscribe_query(RetrieveUserQuery,retrieve_user)# some interface adapterapos.publish_command(RegisterUserCommand())events=apos.get_published_events()print(events)response:RetrieveUserResponse=apos.publish_query(RetrieveUserQuery())print(response)Complete ExamplesYou can find examples in the examples directory of the projects repository.https://github.com/mkossatz/apos/tree/main/examples
Package: apos-cli
APOS CLIA command line interface for APOS the Agile Pizza Ordering Service.UsageAPOS simplifies ordering pizza with many people e.g. at university events.
This simple cli allows you to create group orders or add items (e.g. pizza) to an existing group order.This project is still work in progress and pre alpha.Features change frequently.
Therefore a proper README follow in a later stage of the project.
Package: appall
Appall 😱abridgedprettyprintingapp forlonglinelogging a.k.a oneappto log'emallThis tiny utility allows you tohorizontallyjuxtapose some text in terminalUsageThe tool can be used the following way (seeexamplesfolder):fromappallimportAppallingLoggerlogger=AppallingLogger()logger.log("foo")logger.log("qux")logger.loop()logger.log("bar")logger.log("quux")logger.log("baz")logger.log("quuz")logger.print(column_width=10)This example produces the following output:foobarbazquxquuxquuzInstallationInstall the program using this command:pipinstallappallOr clone the repo and add path to theappallfolder at the end of yourPYTHONPATH. In this caseenvironment.ymlfile will be useful for creating an environment. This can be done using the following command:condaenvcreate-fenvironment.ymlTestingTest the tool using following command:python-munittestdiscovertest
Package: apparat
apparatA meta frameworkDescriptionOO-DrawingAutomationnodesstagesenvironmentcontainermonitoringAudioConceptsFS basedAuto reload with inotifyStrong tool usageFull tool coverageFull paradigm coverage
** async
** multiprocessingpydanticfunctionalopt in profilingon-the fly callstackflexible loggingmypy / mypycplatform independentsupport IDEspyenvpipenvCI integration Gitlab runnerprofilingloggingdoctestdocumentationInstallationUsageTest and DeployUse the built-in continuous integration in GitLab.Get started with GitLab CI/CDAnalyze your code for known vulnerabilities with Static Application Security Testing(SAST)Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto DeployUse pull-based deployments for improved Kubernetes managementSet up protected environmentsSupportRoadmapContributingAuthors and acknowledgmentLicenseProject status
Package: apparel-cli-scaffold
apparel-cli-scaffoldTable of Contentsgenerated withDocTocAboutInstallation QuickstartAboutapparel-cli-scaffoldis a command line entry point for Apparel's machine learning services.
It provides a way to plugin command line tools for Apparel services.Installation QuickstartYou can install from pippipinstallapparel-cli-scaffoldAfter that themlicommand will be available:mli--help

Usage:mli[OPTIONS]COMMAND[ARGS]...

Options:--helpShowthismessageandexit.The package doesn't provide any commands itself. They are added as plugins.