Saravanan666/pypi-org huggingface dataset:
Package: apu-timetable-telegram
APU-Timetable-TelegramA Telegram bot for students of Asia Pacific University of Technology and Innovation to view their timetable.PrerequisitesPython 2.7+Telegram BotSuggestionsIf you have any suggestions on how we can improve, send an email tolowyiyiu@gmail.com.Built WithPython Telegram Bot- Telegram WrapperAuthorsLow YiyiuAlbert Tan Choo ShengGideon Low Ji DianTeo JackyLicenseThis project is licensed under the MIT License - see theLICENSE.mdfile for details
Package: apwimgr
AP Network ManagerManage your wireless network from an access point. It’s the 21st century.DependenciesNetworkManager
dnsmasq
hostapdInstallationAfter you have installed the dependencies, run./install.sh.Setup### hostapd.confChange your/etc/hostapd/hostapd.conffile to something like:`interface=<INTERFACE-NAME>driver=nl80211 hw_mode=gssid=<MY-SSID/NETWORK-NAME>channel=1 wpa=2wpa_key_mgmt=WPA-PSKwpa_pairwise=CCMPwpa_passphrase=<MY-PASSWWORD>`Replace<INTERFACE-NAME>with your interface name. You can usenetutils.get_interface()to get your interface name. It is usually something likewlan0.Replace<MY-SSID/NETWORK-NAME>with the desired name for your wireless network.Replace<MY-PASSWORD>with the desired password for your wireless network.### dnsmasq.confChange your/etc/dnsmasq.conffile to something like:`no-resolvinterface=<INTERFACE-NAME>dhcp-range=10.0.0.3,10.0.0.10,12hserver=8.8.8.8 server=8.8.4.4 `LicenseAP Network Manger is free–as in BSD. Hack your heart out, hackers.
Package: apx-changelog
apx-changelogPyPI package to generate changelogs from a git repository.For examples, look at changelogs of the following projects:https://github.com/uavos/apx-gcsUsageMust be run in the root of a git repository.usage: changelog.py [-h] --ref REF
                    [--comments]
                    [--out OUT]
                    [--releases RELEASES] 
                    [--log LOG]
                    [--title TITLE]
                    [--ver VER]

Changelog generator for git repository

optional arguments:
  -h, --help           show this help message and exit
  --ref REF            git ref from which to collect changes
  --comments           append comments section
  --out OUT            output filename to store collected changelog markdown text
  --releases RELEASES  releases repository name if different
  --log LOG            filename of changelog file to update
  --title TITLE        project title for changelog file updates
  --ver VER            project version X.Y[.Z] for changelog file updates
  --mkver MKVER        filename to store current version (X.Y.Z)The utility will parse commits and include commit messages starting with the following keywords:feat: New Featuresfix: Bug Fixesrefactor: Refactoringperf: Performance Enhancementsopt: Optimizationsdocs: Documentation Changeschore: Administration and ChoresExample commit message:fix: a fix of a bug (closes user/repo#123)Will produce the following section in the changelog output:# Bug Fixes

* a fix of a bug (closes [`123`](https://github.com/user/repo/issues/123))The issueuser/repocan be omitted, then the link will point to the current repository.A multi-line commit message will addcommentssection in changelog, displaying full text of the commit message.The changelog file specified with the--logoption can have a template header, written in/.changelogfile.Repository tagsThe git repository can have tags in the formatv1.2to simplify versioning (vZ.Y.Z) usinggit.describe('--always', '--tags', '--match=v*.*').Releases must be tagged in the formatrelease-X.Y.Z.
Package: apychal
ApychalWhat?This is the async version ofpychal.Why don't you submit this as a PR?What I did here was very simple. However it breaks compatibility with older versions of Python, which can be an issue. If you're going to use an async version ofpychal, I think you're already aware of the reason why!apychalwas initially made to work withATOS(which is nowhere), a Discord bot relying on asynchronous tasks to be efficient.RequirementsPlease note that it :Only supportsPython 3.6+(modernasyncio, removed legacy code).Replacesrequestswithaiohttp(which makes this module asynchronous).How to useThat's it for the main differences, otherwise it should be the same to use as the original.You can installapychalwith PyPI :pip install apychalGet started (example)importasyncioimportachallongeachallonge.set_credentials("user","my_api_key")asyncdefmain():participants=awaitachallonge.participants.index('mytournament')print(participants)asyncio.run(main())
Package: apyclient
A Python API ClientOverviewAllows you to easily create client APIs in a highly customizable way.InstallationRequires python >= 2.6 and apysigner. Tests require ‘mock’ package.pip install apyclientUsageYou are able to easily create a client Api class. The only requirement of
the API class is that it must have a “HOST_NAME” attribute declared. The API
uses this host name to prepend to the endpoint when building the request.class MyAPIClient(object):
    HOST_NAME = "http://www.example.com"

    @api_request("/api-endpoint/")
    def fetch_some_stuff(some_var):
        return {"the_variable": some_var}

my_client = MyApiClient()
my_client.fetch_some_stuff(3)And that’s it. The client will make an HTTP GET request by default with the
data provided by the decorated method.You can also do a POST request by declaringmethod="POST"in the api_request.@api_request("/api-endpoint/", method="POST")
def fetch_some_stuff(some_var):
    return {"the_variable": some_var}And finally, you are able to return a custom response class if you so desire.
Just either provide aRESPONSE_CLASSon the api client class, or aresponse_classon the api_request decorator. If you have a custom response
class declared both on the API client and on the api_request decorator, the
decorator will win because it is more specific. The response class must take
one argument on initialization, the original response.class MyApiClient(object):
    HOST_NAME = "http://www.example.com/api
    RESPONSE_CLASS = MyDefaultResponseClass

    @api_request("/api-endpoint/")
    def fetch_some_stuff(some_var):
        return {"the_variable": some_var}

    @api_request("/api-endpoint/", response_class=SpecializedResponseClass)
    def fetch_some_stuff(some_var):
        return {"the_variable": some_var}New addition: Signed Requests
This was modeled after Google Maps signed request.
When you have a situation where you want to secure an endpoint without login
you can use the signed request.The concept is the API provider shares a client id and private key with the
client applications. The client applications then “sign” their requests
to the provider using the client id and private key. When the provider
receives the request, it verifies that it can create the same signature
using the given client id.Take a look at the django-request-signer python package for some more information.
Package: apycot
Apycotis an Automated Python Code Testing platform built onnarvalandcubicweb.Installation and configurationApycotis based onnarval, so make sure you have a workingnarvalsetup. Please refer to narval’s documentation for help on installing a
narval setup.Once you have a properly functionning narval setup, you have to
install Apycot elements on both the website part and the narval-bot
side.On the web/data server hostInstall thecubicweb-apycotpackage (more info in thecubicweb book).Modify password for the narval user for better security.On the bot hostInstall thenarval-apycotpackage.Edit/etc/narval/narval.ini, is neccessary (or~/etc/narval.iniwhen running code from hg) to adjust the bot configuration. You can
also generate a stub configuration file usingnarval rcfile >
/etc/narval/narval.ini.Indicate the connection informations for each instance in the/etc/narval/narval-cw-sources.inifile (makesure this file is not
world readable), for instance:[cwo]
url=https://www.cubicweb.org/
token_id=The Token Name
secret=<generated secret>

[elo]
url=https://www.logilab.org/
token_id=The Other Token Name
secret=<generated secret>where each section is the configuration for a cubicweb
application.For those running from source,narval/bin/narvalmustbe inPATH(since thenarvaldaemon spawns subprocess via thenarvalcommand).You may check the bot can connect to the cubicweb instances by
watching the narval bot’s logs (usually in/var/log/narval/).More documentationBeside low-level installation (described here), all the documentation to setup your
continuous integration environment is available online through your instance athttp://<your instance url>/doc/apycotYou should read this documentation in order to be able to create all
the required objects to build your own testing and continuous
integration platform.Feedbacks, bug reportsComments and bug reports are welcome on thepython-projects@list.logilab.orgmailing-list.
Package: apyhgnc
apyhgncAsync pythonic interface to HGNC.Free software: MIT licenseDocumentation:https://apyhgnc.readthedocs.ioGitHub repo:https://github.com/robertopreste/apyhgncFeaturesThis Python package allows to retrieve entries fromHGNCusing
synchronous or asynchronous calls.Return searchable fields and stored fields separately using theinfo()function (or the lower-levelInfoclass).Return all entries of interest limiting results only to hgnc_id, symbol and score fields using thesearch()function for synchronous calls or theasearch()function for asynchronous calls (or the lower-levelSearchclass).Return entries according to the given searchable fields, returning all the available stored fields using thefetch()function for synchronous calls or theafetch()function for asynchronous calls (or the lower-levelFetchclass).Please refer to theUsagesection of the documentation for further
information.Installationapyhgnc only supports Python 3, and can be installed using pip:pip install apyhgncPlease refer to theInstallationsection of the documentation for further
information.CreditsThis package was created withCookiecutterand thecc-pypackageproject
template.History0.1.0 (2019-04-10)First release.0.1.1 (2019-04-18)Add basic classes Info, Search and Fetch;Add tests for Info, Search and Fetch.0.1.2 (2019-04-19)Refactor code and fix tests.0.1.3 (2019-04-21)Update tests;Fix importing issue;Update requirements.0.2.0 (2019-04-24)Setup proper async calls (afetchandasearch);Update tests;Fix documentation.0.2.1 (2019-04-29)Update tests to use latest HGNC data;Add script to automatically create test data.0.2.2 (2019-05-04)Update tests to use latest HGNC data.0.2.3 (2019-05-08)Update documentation;Update testfiles.0.2.4 (2019-05-09)Update testfiles and requirements.0.2.5 (2019-05-11)Update tests;Better requirements handling.0.2.6 (2019-08-31)Update requirements;Change docstrings to Google style;Update documentation;Update testfiles.
Package: apykuma
apykumaSmall library to notify Uptime Kuma that the service is up.
Only async applications are supported.UsageFirstly, install the library:pipinstallapykumaThen include it in your code:importloggingimportapykumaawaitapykuma.start(# Required; Push URL from Kuma GUIurl="https://my-service.com",# Optional; default is 60 secondsinterval=60,# Optional; sleeps for N seconds before pinging Kuma, in case if you run `apykuma` right before starting your service#           (if service fails, `apykuma` won't start as well). The recommended value is 10 secondsdelay=0,# Optional; function that is called when during ping we encourage an error#           it is done to notify you about (e.g.) network errors, and to not#           stop the process of pinging kuma on such errors##           by default, it logs an error using `logging` library (default value is shown below),#           also supports async functionshandle_exception=lambdae:logging.getLogger("apykuma").exception(e),)It is important to startapykumaafter your service starts.Differences frompykumahttps://github.com/oliverstech/pykumaThat library is great, but it has some problems:It uses globals, which I personally don't likeIt blocks the loop every time it sends a request, because it usesrequestslibrary instead ofaiohttp. See alsohttps://github.com/oliverstech/pykuma/issues/2.Installing for local developinggitclonehttps://github.com/PerchunPak/apykuma.gitcdapykumaInstallingpoetryNext we need installpoetrywithrecommended way.If you use Linux, use command:curl-sSLhttps://install.python-poetry.org|python-If you use Windows, open PowerShell with admin privileges and use:(Invoke-WebRequest-Urihttps://install.python-poetry.org-UseBasicParsing).Content|python-Installing dependenciespoetryinstall--no-devConfigurationAll configuration happens inconfig.yml, or with enviroment variables.If something is not clearYou can always write me!ThanksThis project was generated withpython-template.
Package: apylaas
Any Python Library As A Service (apylaas)apylaaslets you host Python libraries behind a web service with a JSON API and a simple web UI. This can be useful for remotely executing Python code with some inputs or debugging code outside of a terminal. Readthis postfor details.InstallationpipinstallapylaasUsageapylaas--help

apylaas--librarysome_moduleDetailscat<<EOF > something.pydef say_hello(name: str) -> str:return f"Hello {name}!"EOFapylaas--librarysomething# Visit http://localhost:5000/say_hello# or use the API directly (both GET and POST are accepted)curl-XPOST-d'{"name": "someone"}'http://localhost:5000/say_hello
curl'http://localhost:5000/say_hello?name=someone'Seeexamples/basic.pyfor a simple demo of hosting a function that takes in and returns strings. Seeexamples/classifier.pyfor a simple PyTorch model server.
Package: apyori
Apyoriis a simple implementation of
Apriori algorithm with Python 2.7 and 3.3 - 3.5,
provided as APIs and as commandline interfaces.Module FeaturesConsisted of only one file and depends on no other libraries,
which enable you to use it portably.Able to used as APIs.Application FeaturesSupports a JSON output format.Supports a TSV output format for 2-items relations.InstallationChoose one from the following.Putapyori.pyinto your project.Runpython setup.py install.API UsageHere is a basic example:fromapyoriimportaprioritransactions=[['beer','nuts'],['beer','cheese'],]results=list(apriori(transactions))For more details, seeapyori.aprioripydoc.CLI UsageFirst, prepare input data as tab-separated transactions.Each item is separated with a tab.Each transactions is separated with a line feed code.Second, run the application.
Input data is given as a standard input or file paths.Run withpython apyori.pycommand.If installed, you can also run withapyori-runcommand.For more details, use ‘-h’ option.SamplesBasic usageapyori-run<data/integration_test_input_1.tsvUse TSV outputapyori-run-ftsv<data/integration_test_input_1.tsvFields of output mean:Base item.Appended item.Support.Confidence.Lift.Specify the minimum supportapyori-run-s0.5<data/integration_test_input_1.tsvSpecify the minimum confidenceapyori-run-c0.5<data/integration_test_input_1.tsv
Package: apyrat
ApyratYet anotherAparatvideo downloader.Getting Startedyou can install Apyrat from PyPi:$ pip install-Uapyratfor example you want to download the video hostedhere. just run:$ apyrathttps://www.aparat.com/v/qur3Iyou can also download playlists:$ apyrathttps://www.aparat.com/playlist/448747ContributingAny contributions are welcome here! To learn how you can contribute, please check thecontributing doc.LicenseThis work is licensed under the terms of theMIT.History0.1.3 (2024-02-25)ci: Add automated testing workflow for pull requests by @CodeWithEmad inhttps://github.com/CodeWithEmad/apyrat/pull/1fix: no prompt with confirmation by @CodeWithEmad inhttps://github.com/CodeWithEmad/apyrat/pull/50.1.2 (2023-08-12)First release on PyPI.
Package: apysignature
ApySignature============Python implementation of the Ruby Signature library(https://github.com/mloughran/signature)Installation------------```pip install apysignature```Examples--------Client example```pythonfrom apysignature import signatureparams       = {'some'='parameters'}token        = signature.Token('my_key', 'my_secret')request      = signature.Request('POST', '/api/thing', params)auth_hash    = request.sign(token)query_params = params.update(auth_hash)requests.post('http://myservice/api/thing', data=query_params)````query_params` looks like:```python{'some'='parameters','auth_timestamp'=1273231888,'auth_signature'='28b6bb0f242f71064916fad6ae463fe91f5adc302222dfc02c348ae1941eaf80','auth_version'='1.0','auth_key'='my_key'}```Server example (Django)```pythonfrom apysignature import signatureauth_request = signature.Request(request.method, str(request.path), params)public_key = params['auth_key']token = signature.Token(public_key, private_key)try:auth_request.authenticate(token)except AuthenticationError as e:return HttpResponse('Unauthorized', status=401)# Do whatever you need to doend```Compatibility---------Version > 0.2 is for Python 3use < 0.2 for Python 2Copyright---------Copyright (c) 2014 Erick Ponce. See LICENSE for details.
Package: apysigner
A very simple library to help generate signed requests.INSTALLATIONpip install apysignerUSAGEFor aGETrequest>>> import apysigner
>>> private_key = 'UHJpdmF0ZSBLZXk='
>>> url = 'http://www.example.com/api-endpoint?q=find+my+thing'
>>> apysigner.get_signature(private_key, url)
'zMxf77eY-xuORInBIA0azhxHPg2bzhsjz-huP-OuYKk='For aPOSTrequest>>> import apysigner
>>> private_key = 'UHJpdmF0ZSBLZXk='
>>> payload = {'do': 'something', 'name': 'Johnny'}
>>> url = 'http://www.example.com/api-endpoint'
>>> apysigner.get_signature(private_key, url, payload)
'CFNmvPrjW_Z1x5XO-tQzJzhs6GjeJH0k0SxOuuhJ3YA='Just the basics to create the HMAC signature. You’ll need combine this with other things
like actually adding the signature on the URL and making the request, but those responsibilities
intentionally live elsewhere.See the django-request-signer project for examples if you need the rest.
Package: apyum
ApyumAdapter for Celery that implements JSON-RPC 2.0 protocol.Key FeaturesTurns existing Celery implementation into a JSON RPC apiSimple to runImplements JSON-RPC 2.0 protocol. (seehttps://www.jsonrpc.org)Support asyncioGetting startedCreate a yml config file (for examplesettings.yaml):celery:broker_url:"amqp://guest:guest@localhost:5672//"result_backend:"rpc://"result_persistent:False...logging:...Thecelerysection is to be written as described by the Celery configuration (seehttps://docs.celeryproject.org/en/stable/userguide/configuration.html).Theloggingsection is optional and can be customized as described by the Python logging manual (seehttps://docs.python.org/3/library/logging.config.html).To start Apyum launch standalone:apyumsettings.ymlThis starts Apyum listening to 8080 port. For change listening port user parameter --port or to listen in a unix socket use parameter --pathOr start with gunicorn:APYUM_SETTINGS=settings.ymlgunicornapyum.main:create--bindlocalhost:5000--worker-classaiohttp.GunicornWebWorker--worker4Calling service exampleSuppose we have defined some Celery tasks asmyapp.taskspython module in a external worker like this:
(tasks.py)@app.taskdefexample_task_x(a,b,c):...@app.taskdefexample_task_y(a,b,c):...For running by JSON-RPC call we must send POST tohttp://localhost:8080/myapp/taskswith body:{"jsonrpc":"2.0","method":"example_task_x","params":{"a":5,"b":3,"c":1},"id":"1"}or{"jsonrpc":"2.0","method":"example_task_x","params":[5,3,1],"id":"1"}or can be called on root by:{"jsonrpc":"2.0","method":"myapp.tasks.example_task_x","params":[5,3,1],"id":"1"}The endpoints return response if have it. Also batch calls are supported:[{"jsonrpc":"2.0","method":"myapp.tasks.example_task_x","params":[5,3,1],"id":"1"},{"jsonrpc":"2.0","method":"myapp.tasks.example_task_y","params":[1,2,1],"id":"2"},{"jsonrpc":"2.0","method":"myapp.tasks.example_task_y","params":[6,1,4],"id":"3"}]See JSON-RPC specification for more details.InstallationIt's very simple to install Apyum:pipinstallapyumTo DoMore testsAutentication requestsInsert an api documentation (likehttps://open-rpc.org)Documentation and examplesRequirementsPython >= 3.8Celery 5Licenseapyumis offered under the Apache 2 license.Source codeThe latest developer version is available in a GitHub repository:https://github.com/aiselis/apyum
Package: apywrapper
apywrapperEasy development of RESTful API wrapperFeatureGet response as dataclass object you definedReturn type can be specified by type annotation of api functionAll parameters (query, path variable, or json data) can be specified at onceinstallpip install apywrapperExamplefromapywrapperimportApy,delete,get,patch,post,putfromtypingimportList,no_type_checkfromdataclassesimportdataclass@dataclassclassUser:name:strid:str@no_type_checkclassApiClient(Apy):def__init__(self,token,host="https://example.com/api":super().__init__(host,headers={"api-token":token})@get("/users/")defget_users(self)->List[User]:return{}@get("/users/{user_id}")defget_user(self,user_id)->User:return{"user_id":user_id}api=ApiClient(token="xxxxxxxxxxxxxxxxxx")sh1ma=api.get_user("sh1ma")# return User object
Package: aqara-capi
Aqara Cloud APIPython SDK for Aqara Cloud API(Functionality is not full, but already has core for futher upgrades)Installpipinstallaqara_capiExample of usagefromaqara_capiimportCloudApiClient,Locality# create clientclient=CloudApiClient(app_id=APP_ID,# your params from https://developer.aqara.com/consoleapp_key=APP_KEY,key_id=KEY_ID,locality=Locality.RU,# for cloud domain)# set access and refresh tokensclient.set_tokens(access_token='...',refresh_token='...')# or generate themclient.get_auth_code(account='my@example.com',account_type=0,access_token_validity='7d',)client.get_access_token(auth_code='secret code from ur email',account='my@example.com',account_type=0,)# print your devicesresponse=client.query_device_info()print(response.result)# print device attributesresponse=client.query_resource_info(model='lumi.light....',)print(response.result)# trigger some action (for example turn on light)client.write_resource_device(subject_id='lumi...',resource_id='4.1.85',value='1',)
Package: aqara-iot-py-sdk
Aqara IoT Python SDKA Python sdk for Aqara home assistant.FeaturesBase APIsAqaraOpenAPIconnectis_connectgetpostputdeleteAqaraOpenMQstartstopadd_message_listenerremove_message_listenerAPIsAqaraDeviceListenerupdate_deviceadd_deviceremove_deviceDevice controlAqaraDeviceManagergenerate_devices_and_update_valueadd_device_listenerremove_device_listenerremove_deviceremove_device_listsend_commandsHomeAqaraHomeDeviceManageupdate_device_cachequery_scenestrigger_scenePossible scenariosHomeAssistant Aqara PluginAqara Connector Python...PrerequisiteRegistrationUsageInstallationpip3 install aqara-iot-py-sdkSample codeAqara Open API referenceIssue feedbackLicenseaqara-iot-py-sdk is available under the MIT license. Please see theLICENSEfile for more info.