Saravanan666/pypi-org huggingface dataset:
Package: africunia
# Python Library for AfrIcunia![](https://img.shields.io/pypi/v/africunia.svg?style=for-the-badge)
![](https://img.shields.io/github/release/africunia/python-africunia.svg?style=for-the-badge)
![](https://img.shields.io/github/downloads/africunia/python-africunia/total.svg?style=for-the-badge)
![](https://img.shields.io/pypi/pyversions/africunia.svg?style=for-the-badge)
![](https://img.shields.io/pypi/l/africunia.svg?style=for-the-badge)
![](https://cla-assistant.io/readme/badge/africunia/python-africunia)Stable[![docs master](https://readthedocs.org/projects/python-africunia/badge/?version=latest)](http://python-africunia.readthedocs.io/en/latest/)
[![Travis master](https://travis-ci.org/africunia/python-africunia.png?branch=master)](https://travis-ci.org/africunia/python-africunia)
[![codecov](https://codecov.io/gh/africunia/python-africunia/branch/master/graph/badge.svg)](https://codecov.io/gh/africunia/python-africunia)Develop[![docs develop](https://readthedocs.org/projects/python-africunia/badge/?version=develop)](http://python-africunia.readthedocs.io/en/develop/)
[![Travis develop](https://travis-ci.org/africunia/python-africunia.png?branch=develop)](https://travis-ci.org/africunia/python-africunia)
[![codecov develop](https://codecov.io/gh/africunia/python-africunia/branch/develop/graph/badge.svg)](https://codecov.io/gh/africunia/python-africunia)—## DocumentationVisit the [pybitshares website](http://docs.pybitshares.com/en/latest/) for in depth documentation on this Python library.## Installation### Install with pip3:$ sudo apt-get install libffi-dev libssl-dev python-dev python3-dev python3-pip
$ pip3 install africunia### Manual installation:$ git clonehttps://github.com/africunia/python-africunia/$ cd python-africunia
$ python3 setup.py install –user### Upgrade$ pip3 install –user –upgrade africunia## Contributingpython-africunia welcomes contributions from anyone and everyone. Please
see our [guidelines for contributing](CONTRIBUTING.md) and the [code of
conduct](CODE_OF_CONDUCT.md).### Discussion and DevelopersDiscussions around development and use of this library can be found in a
[dedicated Telegram Channel](https://t.me/pybitshares)### LicenseA copy of the license is available in the repository’s
[LICENSE](LICENSE.txt) file.### BountiesAs part of [HackTheDex](https://hackthedex.io), security issues found in this
library are potentially eligible for a bounty.
Package: afrigis
# Afrigis Python Library[![Maintainability](https://api.codeclimate.com/v1/badges/ecd8973da991fa593b82/maintainability)](https://codeclimate.com/github/chris-cmsoft/python-afrigis/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/ecd8973da991fa593b82/test_coverage)](https://codeclimate.com/github/chris-cmsoft/python-afrigis/test_coverage)
[![Build Status](https://travis-ci.org/chris-cmsoft/python-afrigis.svg?branch=master)](https://travis-ci.org/chris-cmsoft/python-afrigis)### Installation`bash $ pip install afrigis `### Services:#### GeocodeExample on using the Geocode service`python from afrigis.services import geocode result =geocode('AFRIGIS_KEY','AFRIGIS_SECRET', 'NADID | SEOID') print(result) # {'number_of_records': 4,...}`### Running tests`bash $ py.test `### Building and pushing to pypi> In order to di this please make sure you are authenticated against Pypi first :).
> You ca do this with the following method:https://docs.python.org/3/distutils/packageindex.html#the-pypirc-file`bash $ python setup.py sdist upload `
Package: afrodite
pacotepypiExample of PyPI package.Getting StartedDependenciesYou need Python 3.7 or later to usepacotepypi. You can find it atpython.org.
You also need setuptools, wheel and twine packages, which is available fromPyPI. If you have pip, just run:pip install setuptools
pip install wheel
pip install twineInstallationClone this repo to your local machine using:git clone https://github.com/caiocarneloz/pacotepypi.gitFeaturesFile structure for PyPI packagesSetup with package informationsLicense example
Package: afrolid
AfroLID, a neural LID toolkit for 517 African languages and varieties. AfroLID exploits a multi-domain web dataset manually curated from across 14 language families utilizing five orthographic systemsGitHub link:https://github.com/UBC-NLP/afrolidOnline demo link:https://demos.dlnlp.ai/afrolidGetting StartedThefull documentationcontains instructions for getting started, translation using diffrent methods, intergrate AfroLID with your code, and provides more examples.Licenseafrolid(-py) is Apache-2.0 licensed. The license applies to the pre-trained models as well.CitationIf you use AfroLID toolkit or the pre-trained models for your
scientific publication, or if you find the resources in this repository
useful, please cite our paper as follows:useful, please cite our paper as follows:@article{adebara2022afrolid,
  title={AfroLID: A Neural Language Identification Tool for African Languages},
  author={Adebara, Ife and Elmadany, AbdelRahim and Abdul-Mageed, Muhammad and Inciarte, Alcides Alcoba},
  booktitle = "Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing (EMNLP)",
  month = December,
  year = "2022",
}AcknowledgmentsWe gratefully acknowledge support from the Natural Sciences and Engineering Research Council of Canada (NSERC; RGPIN-2018-04267), the Social Sciences and Humanities Research Council of Canada (SSHRC; 435-2018-0576; 895-2020-1004; 895-2021-1008),The Digital Research Alliance of Canada (the Alliance)andUBC
ARC-Sockeyeand Advanced Micro Devices, Inc. (AMD). Any opinions, conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of NSERC, SSHRC, CFI, CC, AMD, or UBC ARC-Sockeye.
Package: afroy
Type 'afro.help()' for help
Type 'afro.' followed by one of the folloing colors [green, red, yellow, cyan, magenta] then ("the text to add color to here") without spaces for eg. print(afro.red("This Text Is Red"))
Type 'afro.' followed by 'diflet()' which will find the amount of different letters in a string.            (string, starting_value) so afro.diflet("hellllllllllo", 1) would return 5 because 4 different letters are in that string and the second parameter would be the added value.
username and password account integration to programs!!!
Package: afroz-bitcoin-price
BITCOIN NOTIFICATION ALERT APPThis is a python script package, bitcoin price notification to get notified for the regular updates of bitcoin price on slack, gmail and telegram.
The aim is to push notifications when the price of bitcoin changes at certain time interval, user can specify the time interval. By default time interval and threshold are set to 0.1 in minutes and $10000 respectively.
When the conditions in the program are satisfied the trigger is fired and user will recieve notifications on slack, gmail and telegram.DESCRIPTIONBitcoin price is a fickle thing. You never really know where it’s going to be at the end of the day. So, instead of constantly checking various sites for the latest updates, let’s make a Python app to do the work for you.We’re going to use the popular automation website IFTTT.We’re going to create there IFTTT applets:One for emergency notification when Bitcoin price falls under a certain threshold and
one for regular Telegram and one for Slack updates on the Bitcoin price.These will be triggered by our Python app which will consume the data from the Coindesk API.An IFTTT applet is composed of two parts: a trigger and an action.Trigger will be a webhook service provided by IFTTT.Our Python app will make an HTTP request to the webhook URL which will trigger an action. Now, this is the fun part—the action could be almost anything you want. IFTTT offers a multitude of actions like sending an email, updating a Google Spreadsheet and even calling your phone.INSTALLATIONYou might need to do these installationsInstall python version 3This website will help you find all the versions available as per your system requirments.Install python3.https://www.python.org/downloads/Installation for PIP for windowspip installRefer this website for further readhttps://pip.pypa.io/en/stable/installing/DependenciesThe only dependency is on the requests library.pip install requests==2.18.4Install bitcoin-notifier package/module from PIP (on terminal)pip install afroz-bitcoin-priceUSAGEFollowing query on terminal will provide you with all the help optionsINPUTafroz-bitcoin-price -hOUTPUTusage: afroz-bitcoin-price [-h] [--d decision] [--i interval]
[--u upper threshold]Bitcoin Notification Alertoptional arguments:
-h, --help           show this help message and exit
--d decision         Enter (Yes/No) - Yes will run the program
--i interval         Enter time interval
--u upper threshold  Set upper threshold limit in USD for notificationafroz-bitcoin-price --d=Yes --i=0.1 --u=10000This will provide 5 prices of Bitcoin, at the specified time interval according to the code.TELEGRAM GROUP INVITE LINK -YOU ARE MOST WELCOME! SEE YOU THERE!https://t.me/joinchat/L5pJsBmFWhCQwtKVye4oDwCONTRIBUTIONSUpdates are always welcome, feel free to drop your suggestions!
Looking forward for your contribution. ❤️
Package: afrr-remuneration
aFRR remunerationA tool to calculate the aFRR remuneration for the european energy market.AboutThis project was initiated with the start of aFRR remuneration in temporal resolution of seconds on October 1st 2021
which is one further step to fulfill the EU target market design.
The motivation for creating this python package is to provide a tool for evaluating remuneration of aFRR activation
events by TSOs.
Therefore, it provides an implementation of the calculation procedure described in themodel descriptionas
python code.InstallationWe aim to release a package on PyPi soonish. Until then, please see indevelopment installationhow to install the package from sources.UsageHere is some example code that shows how use functionality of this package.
Make sure you have a file at hand with data about setpoints and actual values of an aFRR activation event. See the
example files fromregelleistung.netto
understand the required file format.
Note, you have to make sure that data starts at the beginning of an aFRR activation event.fromafrr_renumeration.aFRRimportcalc_acceptance_tolerance_band,calc_underfulfillment_and_accountfromafrr_renumeration.dataimportparse_tso_data# load the setpoint and the measured value for example by reading the tso datafile="20211231_aFRR_XXXXXXXXXXXXXXXX_XXX_PT1S_043_V01.csv"tso_df=parse_tso_data(file)# calculate the tolerance bandband_df=calc_acceptance_tolerance_band(setpoint=tso_df["setpoint"],measured=tso_df["measured"])# calculate acceptance values and other relevant serieses like the under-/overfulfillmentunderful_df=calc_underfulfillment_and_account(setpoint=band_df.setpoint,measured=band_df.measured,upper_acceptance_limit=band_df.upper_acceptance_limit,lower_acceptance_limit=band_df.lower_acceptance_limit,lower_tolerance_limit=band_df.lower_tolerance_limit,upper_tolerance_limit=band_df.upper_tolerance_limit,)Next StepsWe plan toAdd a testfile with artificial dataAdd an example with a valid MOLFeel free to help us here!ContributingContributions are highly welcome. For more details, please have a look in tocontribution guidelines.Development installationFor installing the package from sources, please clone the repository withgitclonegit@github.com:energy2market/afrr-remuneration.gitThen, in the directoryafrr-remuneration(the one the source code was cloned to), executepoetryinstallwhich creates a virtual environment under./venvand installs required package and the package itself to this virtual environment.
Read here for more information aboutpoetry.
Package: afs
AFSAFS is a Python based library, that helps Deep / Machine Learning specialists to track their models during
training without accessing server, and getting notifications full of their desired information via beloved
Social Media platforms.PROSBuilt as lightweight as possibleTakes 14 arguments, therefore users can check almost everything while their model is trainingBack-End is built on Flask framework, and open-sourced. You can contribute to implement more
Social Media platforms' APIs.TODOFinish working on Back-End for Facebook Messenger.Used Frameworks & LibrariesAFS is built totally on Python & Node.JS.Python 3- for library buildingNode.JS- for Back-EndInstallationPython 3.6+ required to use.Get the package fromPyPi$pipinstallAFSUsageImport the AFS and reach 'teller' function.
Define the AFS.teller function inside the training loop, and pass the arguments.$importAFSasafs
$afs.teller(arg1,arg2)Then, reach uID function, and pass the 'yes' string, that will basically create unique id for you, by which you'll then verify your session with the chatbot.$afs.uID("yes")After the execution of the training loop, this line will print unique ID for you that is generated super randomly to minimize the similarities.It'll look like this:$YouruniqueIDis---231409296064663:68137457840134:27374860406350Copy the unique ID, and text the AFS bot the plain text to verify your session.
And, it's all done.Arguments'teller'functiontakesmaximumof14arguments.Defaultvaluesare0s.$iterationargumentisforcountingiterations.type=number.$distributionargumentisbasicallyadivider,foreveryhowmanyiterationsdoyouneedtosendtheGETrequest.type=number.$maxiterisamaximumofiterations,afterwhichthemodelfinishestraining.type=number.$epochdistributionisthesameas'distribution'argument,butforepochs.type=number.$epochcountsepochs.type=number.$testlosstakestestlossasaninformation.type=number.$vallosstakesvalidationlossasaninformation.type=number.JSON InstanceThe API sends the JSON array, that is basically stringified version of combination of dictionaries.ImplementationsThe Flask server is deployed on Heroku, and implemented only in Facebook Messenger for now.
Next Social Media Platforms:SlackDiscordLicenseBSD 3-Clause Licence
Package: afs2-model
AFS2-MODEL SDKDocumentsReference documentsReadthedocsInstallationSupport python version 3.6 or laterpip install on AFS notebookAFS provides the release version SDK on private pypi server. Run the following command on notebook cell to install SDK:!pip install afs2-modelList the installed packages.Develop(For SDK developer) From sourcesClone the repository to local.To build the library run:$ python setup.py install(For SDK developer) Build from sourceClone the repository to local.To build the wheel package:$ python setup.py bdist_wheel.whl will be in dist/
Package: afsapi
python-afsapiAsynchronous Python implementation of the Frontier Silicon APIThis project was started in order to embed Frontier Silicon devices in Home Assistant (https://home-assistant.io/)Inspired by:https://github.com/flammy/fsapi/https://github.com/tiwilliam/fsapihttps://github.com/p2baron/fsapiRequired python libs:requestsUsageimportasynciofromafsapiimportAFSAPIURL='http://192.168.1.XYZ:80/device'PIN=1234TIMEOUT=1# in secondsasyncdeftest():afsapi=awaitAFSAPI.create(URL,PIN,TIMEOUT)print(f'Set power succeeded? -{awaitafsapi.set_power(True)}')print(f'Power on:{awaitafsapi.get_power()}')print(f'Friendly name:{awaitafsapi.get_friendly_name()}')formodeinawaitafsapi.get_modes():print(f'Available Mode:{mode}')print(f'Current Mode:{awaitafsapi.get_mode()}')forequaliserinawaitafsapi.get_equalisers():print(f'Equaliser:{equaliser}')print(f'EQ Preset:{awaitafsapi.get_eq_preset()}')forpresetinawaitafsapi.get_presets():print(f"Preset:{preset}")print(f'Set power succeeded? -{awaitafsapi.set_power(False)}')print(f'Set sleep succeeded? -{awaitafsapi.set_sleep(10)}')print(f'Sleep:{awaitafsapi.get_sleep()}')print(f'Get power{awaitafsapi.get_power()}')loop=asyncio.new_event_loop()loop.run_until_complete(test())
Package: afsk
Library to generate Bell 202 AFSK audio samples and
AFSK encoded APRS/AX.25 packets.Theaprscommand line program encodes APRS packets
as AFSK audio data.e.g.:$ aprs -c <your callsign> ":EMAIL    :test@example.com Test email"InstallationInstall withpip:$ pip install afsk
$ pip install --allow-external PyAudio --allow-unverified PyAudio PyAudioPyAudio is optional, so must be installed separately.If you want to use the CLI program to play APRS packets via your
soundcard, install PyAudio. Otherwise, if you just want to generate
Wave files of AFSK data, you can skip it.Note that installing PyAudio will require a C compiler and PyAudio’s various
C dependencies, in addition to the--allow-externaland--allow-unverifiedpipflags.For development, change to the afsk directory and install with:$ pip install -r requirements.txt
$ python setup.py developRequires Python 2.6 or 2.7.Command Line InterfaceGenerate APRS messages with theaprsCLI program:$ aprs --callsign <your callsign> ":EMAIL    :test@example.com Test email"Specify your message body with INFO command line argument. Be sure to wrap the message in
quotes so it’s passed as one argument, spaces includd.At the moment, no message formats are implemented in theaprsprogram; you must
construct the body string yourself. For instance, in the example above, the string
passed as an argument toaprsfollows the email messsage format specified for APRS.Youmustspecify your amateur radio callsign with the--callsignor-cflags.Use the--outputoption to write audio to a Wave file (use ‘-’ for STDOUT) rather
than play over the soundcard.Get a listing of other options withaprs--help.ExamplesPlayback with PyAudio and short options:$ aprs --callsign <your callsign> ":EMAIL    :test@example.com Test email"Playback withsox:$ aprs --callsign <your callsign> --output - ":EMAIL    :test@example.com Test email" |\
      play -t wav -Save to a wave file with using short options:$ aprs -c <your callsign> -o packet.wav ":EMAIL    :test@example.com Test email"ContributingGet the source and report any bugs on Github:https://github.com/casebeer/afskVersion History0.0.3 – Pin dependency versions, fix bug with STDOUT playback, verbosity CLI option.
Package: afsmon
Python library and utilities for monitoring AFS file-systems usingOpenAFStools.Many of the details are inspired byhttps://github.com/openafs-contrib/afs-toolsCommand-lineTheafsmontool providesshow: produce tabular output of key statistics for a cell,
such as threads on file-servers, partition usage, volume usage and
quotas.statsd: report similar results to astatsdhost.Configuration is minimal, see thesample.cfg.LibraryThe core ofafsmonshould suitable for use in other contexts.importafsmonfs=afsmon.FileServerStats('hostname')fs.get_stats()Thefsobject now contains aFileServerStatswith all
available information for the server, partitions and volumes.
Package: afterburner
Afterburner: Python Web Framework build for learning purposesAfterburner is a Python web framework built for learning purposes.It's a WSGI framework and can be used with any WSGI application server.InstallationpipinstallafterburnerHow to use itBasic usage:fromafterburner.apiimportAPIapp=API()@app.route("/home")defhome(request,response):response.text="Hello from the HOME page"@app.route("/hello/{name}")defgreeting(request,response,name):response.text=f"Hello,{name}"@app.route("/book")classBooksResource:defget(self,req,resp):resp.text="Books Page"defpost(self,req,resp):resp.text="Endpoint to create a book"@app.route("/template")deftemplate_handler(req,resp):resp.body=app.template("index.html",context={"name":"Afterburner","title":"Best Framework"}).encode()Unit TestsThe recommended way of writing unit tests is withpytest. There are two built in fixtures
that you may want to use when writing unit tests with Afterburner. The first one isappwhich is an instance of the mainAPIclass:deftest_route_overlap_throws_exception(app):@app.route("/")defhome(req,resp):resp.text="Welcome Home."withpytest.raises(AssertionError):@app.route("/")defhome2(req,resp):resp.text="Welcome Home2."The other one isclientthat you can use to send HTTP requests to your handlers. It is based on the famousrequestsand it should feel very familiar:deftest_parameterized_route(app,client):@app.route("/{name}")defhello(req,resp,name):resp.text=f"hey{name}"assertclient.get("http://testserver/matthew").text=="hey matthew"TemplatesThe default folder for templates istemplates. You can change it when initializing the mainAPI()class:app=API(templates_dir="templates_dir_name")Then you can use HTML files in that folder like so in a handler:@app.route("/show/template")defhandler_with_template(req,resp):resp.html=app.template("example.html",context={"title":"Awesome Framework","body":"welcome to the future!"})Static FilesJust like templates, the default folder for static files isstaticand you can override it:app=API(static_dir="static_dir_name")Then you can use the files inside this folder in HTML files:<!DOCTYPE html><htmllang="en"><head><metacharset="UTF-8"><title>{{title}}</title><linkhref="/static/main.css"rel="stylesheet"type="text/css"></head><body><h1>{{body}}</h1><p>This is a paragraph</p></body></html>MiddlewareYou can create custom middleware classes by inheriting from theafterburner.middleware.Middlewareclass and overriding its two methods
that are called before and after each request:fromafterburner.apiimportAPIfromafterburner.middlewareimportMiddlewareapp=API()classSimpleCustomMiddleware(Middleware):defprocess_request(self,req):print("Before dispatch",req.url)defprocess_response(self,req,res):print("After dispatch",req.url)app.add_middleware(SimpleCustomMiddleware)
Package: aftercopy
AfterCopy有时候需要从 PDF、CAJ 等文件的阅读器窗口中复制出大段文字，但是这样得到的文字粘贴到 Word 里往往不尽人意：原排版的每一行都会被“另起一段”，有些中文标点变成了带有空格的英文标点……手动调整比较烦琐，因此我写了一个简单的脚本来处理这件事。Quick Startpip install aftercopy
aftercopy -v然后去阅读器中复制文字，再粘贴时得到的已经是处理好（去掉换行、替换标点）的结果了。由于无法识别分段，段落之间需要使用者手动分开。使用完毕后请记得关闭，避免影响常规的复制粘贴的使用。用法aftercopy --help
Usage: aftercopy [OPTIONS]

Options:
  -p, --passive       Disable active reading from clipboard. Instead you can
                      paste into and copy from terminal. End your input with
                      Ctrl-Z + Enter (Windows) or Ctrl-D + Enter.

  -v, --verbose       Display the concrete re-copied text and more info.
  -l, --lang [cn|en]  Switch type of language in text. This will influence the
                      rule set used. (Chinese by default)

  --help              Show this message and exit.原理每隔 0.01 秒读一次剪贴板（性能影响可忽略不计），若发生改变则对新读入的文字作相应的处理，将结果重新写入剪贴板。TODO替换规则。目前对于标点的替换规则是硬编码的，显然这种做法大大降低了使用的灵活性。但是我还没有想到在每次运行 / 在安装时指定规则文件的较好办法。错别字识别。没找到这方面便捷的库。One more thing...请勿用于抄袭等侵犯他人著作权的用途。
Package: aftercovid
documentationTools, tries about COVID epidemics.
The module must be compiled to be used inplace:python setup.py build_ext --inplaceGenerate the setup in subfolderdist:python setup.py sdistGenerate the documentation in folderdist/html:python -m sphinx -T -b html doc dist/htmlRun the unit tests:python -m unittest discover testsOr:python -m pytestTo check style:python -m flake8 aftercovid tests examplesThe functioncheckor the command linepython-maftercovid checkchecks the module is properly installed and returns processing
time for a couple of functions or simply:import aftercovid
aftercovid.check()