Saravanan666/pypi-org huggingface dataset:
Package: aiopypexels
An asynchronous wrapper for Pexels API based on aiohttp, which additionally allows to download photos in any of avaliable resolutions.InstallationInstall aiopypexels with pippipinstallaiopypexelsExamplesSearching photos by queryfromaiopypexelsimportAioPexelsfromaiopypexels.typesimportPhotoSearchResponseapi=AioPexels(API_KEY)asyncdefget_photos_by_query(query:str)->PhotoSearchResponse:response=awaitapi.get_photos_by_query(query)print(response.total_results)# 498Getting photo by IDfromaiopypexelsimportAioPexelsfromaiopypexels.typesimportPhotoapi=AioPexels(API_KEY)asyncdefget_photo_by_id(id:int)->Photo:photo=awaitapi.get_photo_by_id(id)Downloading photo by IDfromaiopypexelsimportAioPexelsapi=AioPexels(API_KEY)asyncdefdownload_photo_by_id(query:str)->PhotoSearchResponse:response=awaitapi.download_photo_by_id(photo_id=9999,destination='./photos/test.jpeg',quality='original')LinksLatest VersionFeedbackI would be very pleased for a star :-)
Package: aiopypiserver
aiopypiserverA basic PyPi server using aiohttp to serve web pages. Intended to work behind
an Apache proxy with relative href accessing. Available here of fromPyPI.MotivationThis is intended to work behind an Apache proxy. This means providing
href links in the pages as relative links. i.e. ./packages/pkg_name.tar.gz
and not /packages... .This is addressed as provided byWSGI.
Looking at the code I liked the idea of implementing withasyncioandaiohttpin preference to forking thepypiservercode.Usageusage: aiopypiserver [-h] [-p port] [-i address] [-u username] [-P password] [-v] [-q] [package_path]
Private PyPi  server.

positional arguments:
  package_path                       path to packages

options:
  -h, --help                         show this help message and exit
  -p port, --port port               Listen on port
  -i address, --interface address    Listen on address
  -u username, --username username   For uploading packages
  -P password, --password password   ...
  -v, --verbose                      set debug level
  -q, --quiet                        turn off access logging

Browse index at http://localhost:8080/.Can also be run as a module aspython -m aiopypiserver -h. Using the internal class is probably a bad idea ATM as the API is likely to change.By default access logs are generated, as I find it useful to see these.ApacheAdd the following to your Apache config. This is the item for pypiserver that required wsgi.ProxyPass /pypi/ http://127.0.0.1:8080/
ProxyPassReverse /pypi/ http://127.0.0.1:8080/ThanksPlease let me know how you get on through the github page.
Package: aiopyql
A fast and easy-to-use asyncio ORM(Object-relational Mapper) for performing C.R.U.D. ops within RBDMS tables using python.Key Featuresasyncio readydatabase / table query cacheSQL-like query syntaxAutomatic schema discovery / migrationsDocumentationhttps://aiopyql.readthedocs.io/Instalation$virtualenv-ppython3.7aiopyql-env

$sourceaiopyql-env/bin/activate(aiopyql-env)$pipinstallaiopyqlCompatable Databasespostgres - viaasyncpgmysql - viaaiomysqlsqlite - viaaiosqliteGetting Startedimportasynciofromaiopyqlimportdataasyncdefmain():#sqlite connectionsqlite_db=awaitdata.Database.create(database="testdb")# create tableawaitdb.create_table('keystore',[('key',str,'UNIQUE NOT NULL'),('value',str)],'key',cache_enabled=True)# insertawaitdb.tables['keystore'].insert(key='foo',value={'bar':30})# updateawaitdb.tables['keystore'].update(value={'bar':31},where={'key':'foo'})# deleteawaitdb.tables['keystore'].delete(where={'key':'foo'})loop=asyncio.new_event_loop()loop.run_until_complete(main())RecipiesSee other usage examples inrecipies.FastAPIPostgresimportasynciofromaiopyqlimportdataasyncdefmain():mysql_db=awaitdata.Database.create(database='postgres_database',user='postgres',password='my-secret-pw',host='localhost',port=5432,db_type='postgres')loop=asyncio.new_event_loop()loop.run_until_complete(main())Mysqlimportasynciofromaiopyqlimportdataasyncdefmain():mysql_db=awaitdata.Database.create(database='mysql_database',user='mysqluser',password='my-secret-pw',host='localhost',port=3306,db_type='mysql')loop=asyncio.new_event_loop()loop.run_until_complete(main())Idea / Suggestion / IssueSubmit an IssueCreate a Pull request
Package: aiopyrestful
GitHub:aiopyrestfulThis is a Specialized version ofpyrestfulPyRestfulpyRestful is an API to develop restful services with Tornado Web Server.We made changes from the last version to improve it and make it more easy.The last version works with Python 2 and 3.aiopyrestfulSupport asyncio.Installpip install aiopyrestfulExampleimportasynciofromaiopyrestful.restimportget,mediatypes@asyncio.coroutineasyncdefasync_fun():awaitasyncio.sleep(10)return'text'@get(_path='/configure',_produces=mediatypes.APPLICATION_JSON)@asyncio.coroutineasyncdefpost_configure(self):text=awaitasync_fun()return{'text':text}
Package: aiopyupbit
aiopyupbitaiopyupbit is python wrapper for upbit API for asyncio and Python
which is base onpyupbitInstallationInstalling:pip install aiopyupbitUsageaiopyupbit syntax strives to be similar topyupbit.importasyncioimportaiopyupbitasyncdefmain():print(awaitaiopyupbit.get_tickers())print(awaitaiopyupbit.get_current_price("KRW-BTC"))print(awaitaiopyupbit.get_current_price(["KRW-BTC","KRW-XRP"]))print(awaitaiopyupbit.get_ohlcv("KRW-BTC"))...if__name__=="__main__":loop=asyncio.new_event_loop()asyncio.set_event_loop(loop)loop.run_until_complete(main)AboutSome features are not currently implemented:WebSocketManager classIssuesPlease report any issues viagithub issues
Package: aio-q3-rcon
aio-q3-rconAn async Quake 3 RCON implementation for PythonInstallationpip install aio-q3-rconor with the cli extrapip install aio-q3-rcon[cli]CLI UsageUsage: q3rcon [OPTIONS] ADDRESS PASSWORD

Options:
  -p, --port INTEGER RANGE        [1<=x<=65535]
  --timeout FLOAT RANGE           [x>=0.01]
  --fragment-read-timeout, --fr-timeout FLOAT RANGE
                                  [x>=0.01]
  --retries INTEGER RANGE         [x>=1]
  --debug
  --help                          Show this message and exit.API ReferenceExamples FolderclassClient(host:str,port:int,timeout:float,fragment_read_timeout:float,retries:int,logger:Logger | None)Parameters:host:str-the host / IP / domain of the server to connect toport:port-the port of the server to connect todefault value is27960timeout:float-the timeout for network operationsdefault value is2.0for network operations with retries, the timeout applies to the rewrite attempts as a whole, rather than being per retryfragment_read_timeout:float-the timeout for waiting on potentially fragmented responsesdefault value is.25the Quake 3 server can sometimes send fragmented responses, since there is no consistent way to tell if a response is fragmented or not, the best solution is to wait for fragmented responses from the server whether they exist or not. This value is the timeout for waiting for those responses.retries:int-the amount of retries per network operationdefault value is2all network operations except for reads are wrapped in retry logiclogger:Logger | None-the logger instancedefault value isNoneif there is no logger specified, a logger that hasdisabledset toTruewill be used insteadcurrently only some debug information is loggedMethods:connect(verify:bool=True) ->Noneconnects to the serverifverifyisTrue, then theheartbeatRCON command is sent and the password is checked as wellifClientis being used as a context manager, this will be called automatically upon enterclose() ->Nonecloses the connection to the serverifClientis being used as a context manager, this will be called automatically upon exitexceptionRCONErrorBase exception all aio-q3-rcon errors derive fromexceptionIncorrectPasswordErrorRaised when the provided password is incorrect
Package: aioqb
✨ aioqb ✨The asyncioQbittorrent ClientThe asyncio Qbittorrent Clientimportasyncioimportaioqbasyncdefmain():client=aioqb.QbittorrentClient()awaitclient.torrents_add(torrents=[open("xxx.torrent","rb")])print(awaitclient.transfer_info())print(awaitclient.torrents_info())asyncio.run(main())Auto ban thunder"""Copyright (c) 2008-2022 synodriver <synodriver@gmail.com>"""# Auto ban xunlei without qbeeimportasynciofrompprintimportpprintfromaioqbimportClientblock_list=["xl","xunlei"]asyncdefmain():asyncwithClient()asclient:pprint(awaitclient.auth_login())whileTrue:d=awaitclient.sync_maindata()# pprint(d)torrent_hashs=d['torrents'].keys()rid=d['rid']fortintorrent_hashs:data=awaitclient.sync_torrentPeers(hash=t,rid=0)# filter(lambda x: for ip, peer in data["peers"].items() if , block_list)forip,peerindata["peers"].items():# print(ip)# pprint(v)forbinblock_list:ifbinpeer['client'].lower():awaitclient.transfer_banPeers(ip)print(f"ban peer{ip}{peer['client']}")breakawaitasyncio.sleep(1)asyncio.run(main())
Package: aioqbt
aioqbtPython library for qBittorrent WebAPI with asyncio.Features:Async typed interfaces.Complete qBittorrent WebAPI.Tested with qBittorrent v4.1.5 to v4.6.0 on Debian/Ubuntu.Documentationhttps://aioqbt.readthedocs.io/en/latest/Quick StartInstall withpip$pipinstallaioqbtimportasynciofromaioqbt.apiimportInfoFilterfromaioqbt.clientimportcreate_clientasyncdefmain():client=awaitcreate_client("http://localhost:8080/api/v2/",username="admin",password="adminadmin",)asyncwithclient:# print client and API versionsprint(awaitclient.app.version())# v4.6.1print(awaitclient.app.webapi_version())# 2.9.3# print torrents in downloadingforinfoinawaitclient.torrents.info(filter=InfoFilter.DOWNLOADING):print(f"{info.added_on.isoformat()}added{info.name!r}")# 2023-11-06T17:59:00 added 'ubuntu-22.04.3-desktop-amd64.iso'if__name__=='__main__':asyncio.run(main())Seedetailed usage on Read the Docs.
Package: aio-quakeml-ingv-centro-nazionale-terremoti-client
python-quakeml-ingv-centro-nazionale-terremoti-clientThis library provides convenient async access to the INGV Centro Nazionale Terremoti (Earthquakes) QuakeML feeds.ExamplesRetrieve all events from the last 24 hours (default timeframe):importasynciofromaiohttpimportClientSessionfromaio_quakeml_ingv_centro_nazionale_terremoti_clientimportIngvCentroNazionaleTerremotiQuakeMLFeedasyncdefmain()->None:asyncwithClientSession()aswebsession:# Home Coordinates: Latitude: 43.7, Longitude: 11.2feed=IngvCentroNazionaleTerremotiQuakeMLFeed(websession,(43.7,11.2))status,entries=awaitfeed.update()print(status)ifentries:forentryinentries:print(f"- ID:{entry.external_id}- Magnitude:{entry.magnitude.mag}- Distance:{entry.distance_to_home:.2f}")asyncio.get_event_loop().run_until_complete(main())Retrieve all events from the last 24 hours (default timeframe) and within a radius of
100km around the provided home coordinates:importasynciofromaiohttpimportClientSessionfromaio_quakeml_ingv_centro_nazionale_terremoti_clientimportIngvCentroNazionaleTerremotiQuakeMLFeedasyncdefmain()->None:asyncwithClientSession()aswebsession:# Home Coordinates: Latitude: 43.7, Longitude: 11.2# Filter radius: 100 kmfeed=IngvCentroNazionaleTerremotiQuakeMLFeed(websession,(43.7,11.2),filter_radius=100)status,entries=awaitfeed.update()print(status)ifentries:forentryinentries:print(f"- ID:{entry.external_id}- Magnitude:{entry.magnitude.mag}- Distance:{entry.distance_to_home:.2f}")asyncio.get_event_loop().run_until_complete(main())Retrieve all events from the last 24 hours (default timeframe), within a radius of
100km around the provided home coordinates, and with a magnitude of 2.0 or higher:importasynciofromaiohttpimportClientSessionfromaio_quakeml_ingv_centro_nazionale_terremoti_clientimportIngvCentroNazionaleTerremotiQuakeMLFeedasyncdefmain()->None:asyncwithClientSession()aswebsession:# Home Coordinates: Latitude: 43.7, Longitude: 11.2# Filter radius: 100 km# Filter minimum magnitude: 2.0feed=IngvCentroNazionaleTerremotiQuakeMLFeed(websession,(43.7,11.2),filter_radius=100,filter_minimum_magnitude=2.0)status,entries=awaitfeed.update()print(status)ifentries:forentryinentries:print(f"- ID:{entry.external_id}- Magnitude:{entry.magnitude.mag}- Distance:{entry.distance_to_home:.2f}")asyncio.get_event_loop().run_until_complete(main())
Package: aioqueueext
aioqueueextA package that provides asyncio Queues with additional functionality.Work-in-ProgressThe repository contains modules extracted from my other project and was refactored as a separate package.In the current version, I have not verified all of the functions.Additional functions I plan to implement are:return_when_*()- async functions to ease synchronization tasksset_on_get_callback()set_on_put_callback()peek_nowait()- returns the "up-next" item without removing it from the queuepeek_and_get()- async peek and conditionally get (pop) an item from the queueExamplesSync Peekingasync def sync_peeking_example() -> None:
    queue1 = QueueExt()

    await queue1.put("apple")

    item = queue1.peek_nowait()
    print(f"first peek: {item}")  # "apple"

    await queue1.put("banana")

    item = queue1.peek_nowait()
    print(f"second peek: {item}")  # "apple"

    item = await queue1.get()  # popped "apple"

    item = queue1.peek_nowait()
    print(f"third peek: {item}")  # "banana"

    item = await queue1.get()  # popped "banana"

    # the next peek raises the QueueEmpty exception
    try:
        print(f"fourth peek: {queue1.peek_nowait()}")
    except asyncio.QueueEmpty:
        print("fourth peek failed: QueueEmpty")
Package: aioquic
What isaioquic?aioquicis a library for the QUIC network protocol in Python. It features
a minimal TLS 1.3 implementation, a QUIC stack and an HTTP/3 stack.QUIC was standardised inRFC 9000and HTTP/3 inRFC 9114.aioquicis regularly tested for interoperability against otherQUIC implementations.To learn more aboutaioquicpleaseread the documentation.Why should I useaioquic?aioquichas been designed to be embedded into Python client and server
libraries wishing to support QUIC and / or HTTP/3. The goal is to provide a
common codebase for Python libraries in the hope of avoiding duplicated effort.Both the QUIC and the HTTP/3 APIs follow the “bring your own I/O” pattern,
leaving actual I/O operations to the API user. This approach has a number of
advantages including making the code testable and allowing integration with
different concurrency models.Featuresminimal TLS 1.3 implementation conforming withRFC 8446QUIC stack conforming withRFC 9000IPv4 and IPv6 supportconnection migration and NAT rebindinglogging TLS traffic secretslogging QUIC events in QLOG formatHTTP/3 stack conforming withRFC 9114server push supportWebSocket bootstrapping conforming withRFC 9220datagram support conforming withRFC 9297InstallingThe easiest way to installaioquicis to run:pipinstallaioquicBuilding from sourceIf there are no wheels for your system or if you wish to buildaioquicfrom source you will need the OpenSSL development headers.LinuxOn Debian/Ubuntu run:sudo apt install libssl-dev python3-devOn Alpine Linux run:sudo apk add openssl-dev python3-dev bsd-compat-headers libffi-devOS XOn OS X run:brew install opensslYou will need to set some environment variables to link against OpenSSL:export CFLAGS=-I/usr/local/opt/openssl/include
export LDFLAGS=-L/usr/local/opt/openssl/libWindowsOn Windows the easiest way to install OpenSSL is to useChocolatey.choco install opensslYou will need to set some environment variables to link against OpenSSL:$Env:INCLUDE="C:\Progra~1\OpenSSL\include"$Env:LIB="C:\Progra~1\OpenSSL\lib"Running the examplesaioquiccomes with a number of examples illustrating various QUIC usecases.You can browse these examples here:https://github.com/aiortc/aioquic/tree/main/examplesLicenseaioquicis released under theBSD license.
Package: aioquic-gcc49
What isaioquic?aioquicis a library for the QUIC network protocol in Python. It features
a minimal TLS 1.3 implementation, a QUIC stack and an HTTP/3 stack.QUIC standardisation is not finalised yet, butaioquicclosely tracks the
specification drafts and is regularly tested for interoperability against otherQUIC implementations.To learn more aboutaioquicpleaseread the documentation.Why should I useaioquic?aioquichas been designed to be embedded into Python client and server
libraries wishing to support QUIC and / or HTTP/3. The goal is to provide a
common codebase for Python libraries in the hope of avoiding duplicated effort.Both the QUIC and the HTTP/3 APIs follow the “bring your own I/O” pattern,
leaving actual I/O operations to the API user. This approach has a number of
advantages including making the code testable and allowing integration with
different concurrency models.FeaturesQUIC stack conforming with draft-23HTTP/3 stack conforming with draft-23minimal TLS 1.3 implementationIPv4 and IPv6 supportconnection migration and NAT rebindinglogging TLS traffic secretslogging QUIC events in QLOG formatHTTP/3 server push supportRunning the examplesaioquicrequires Python 3.6 or better, and the OpenSSL development headers.$sudoaptinstalllibssl-devpython3-devAfter checking out the code using git you can run:$pipinstall-e.$pipinstallaiofilesasgirefhttpbinstarlettewsprotoHTTP/3 serverYou can run the example server, which handles both HTTP/0.9 and HTTP/3:$pythonexamples/http3_server.py--certificatetests/ssl_cert.pem--private-keytests/ssl_key.pemHTTP/3 clientYou can run the example client to perform an HTTP/3 request:$pythonexamples/http3_client.py--ca-certstests/pycacert.pemhttps://localhost:4433/Alternatively you can perform an HTTP/0.9 request:$pythonexamples/http3_client.py--ca-certstests/pycacert.pem--legacy-httphttps://localhost:4433/You can also open a WebSocket over HTTP/3:$pythonexamples/http3_client.py--ca-certstests/pycacert.pemwss://localhost:4433/wsLicenseaioquicis released under theBSD license.
Package: aioquic-mitmproxy
What isaioquic_mitmproxy?aioquic_mitmproxyis a fork ofaioquic, that is specifically targeted
towardsmitmproxy.If you want to use QUIC and/or HTTP/3 in your Python project, you should useaioquicinstead:https://pypi.org/project/aioquic/Any code contributions toaioquicshould also be submitted directly to
upstream:https://github.com/aiortc/aioquicWhat isaioquic?aioquicis a library for the QUIC network protocol in Python. It features
a minimal TLS 1.3 implementation, a QUIC stack and an HTTP/3 stack.QUIC was standardised inRFC 9000and HTTP/3 inRFC 9114.aioquicis regularly tested for interoperability against otherQUIC implementations.To learn more aboutaioquicpleaseread the documentation.Why should I useaioquic?aioquichas been designed to be embedded into Python client and server
libraries wishing to support QUIC and / or HTTP/3. The goal is to provide a
common codebase for Python libraries in the hope of avoiding duplicated effort.Both the QUIC and the HTTP/3 APIs follow the “bring your own I/O” pattern,
leaving actual I/O operations to the API user. This approach has a number of
advantages including making the code testable and allowing integration with
different concurrency models.FeaturesQUIC stack conforming withRFC 9000HTTP/3 stack conforming withRFC 9114minimal TLS 1.3 implementation conforming withRFC 8446IPv4 and IPv6 supportconnection migration and NAT rebindinglogging TLS traffic secretslogging QUIC events in QLOG formatHTTP/3 server push supportRequirementsaioquicrequires Python 3.8 or better.Running the examplesaioquiccomes with a number of examples illustrating various QUIC usecases.You can browse these examples here:https://github.com/aiortc/aioquic/tree/main/examplesLicenseaioquicis released under theBSD license.
Package: aioqvapay
QvaPay client for Python (Deprecated!!!)IMPORTANT: Deprecated, we recommend usinghttps://pypi.org/project/qvapayAsynchronousand also synchronousnon-officialQvaPayclient forasyncioandPython language. This library is still under development, the interface could be changed.FeaturesResponse models with type hints annotated fully (Also internal code have type hints annotated fully) thank you to  Python's type hints (or annotations) andpydanticAsynchronous and synchronous behavior thank you tohttpxCoverage 100%Project collaborative and open sourceAlternativeshttps://pypi.org/project/qvapayFor more information aboutQvaPay API, read theQvaPay docs.Contributors ✨Thanks goes to these wonderful people (emoji key):Leynier Gutiérrez González💻🚧⚠️This project follows theall-contributorsspecification. Contributions of any kind welcome!
Package: aioqzone
aioqzoneaioqzone封装了一些Qzone接口。English| 简体中文[!WARNING]
aioqzone 仍在开发阶段，任何功能和接口都有可能在未来的版本中发生变化。[!IMPORTANT]欢迎有意协助开发/维护的中文开发者。不仅限于本仓库，aioqzone所属的任何仓库都需要您的帮助。功能和特点Qzone 功能二维码登录密码登录(受限)通过滑动验证码解析图片选择验证码通过网络环境检测爬取HTML说说爬取说说详细内容点赞/取消赞发布(仅文字)/修改/删除说说发评论为什么选择 aioqzone完整的 IDE 类型支持 (typing)API 类型验证 (pydantic)异步设计易于二次开发文档支持在做了:完善的测试覆盖包描述包名简述aioqzoneQzone APIqqqrQzone 登录例子这些仓库提供了一些 aioqzone 的实际使用示例。aioqzone 的插件们aioqzone-feed: 提供了操作 feed 的简单接口许可证Copyright (C) 2022-2023 aioqzone.

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.aioqzone 以AGPL-3.0开源.免责声明