Saravanan666/pypi-org huggingface dataset:
Package: aflow
AFLOWPython APIPython API wrapping the AFLUX API language for AFLOW library.Note:This is not an official repo of the AFLOW consortium and is not
maintained by them.API
Documentation.If you use this package, please cite it:@ARTICLE{2017arXiv171000813R,
   author = {{Rosenbrock}, C.~W.},
    title = "{A Practical Python API for Querying AFLOWLIB}",
  journal = {ArXiv e-prints},
archivePrefix = "arXiv",
   eprint = {1710.00813},
 primaryClass = "cs.DB",
 keywords = {Computer Science - Databases},
     year = 2017,
    month = sep,
   adsurl = {http://adsabs.harvard.edu/abs/2017arXiv171000813R},
  adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}QuickstartInstallaflowfrom the python package index:pip install aflowOr alternatively installaflowfrom conda using:conda install -c conda-forge aflowOpen an ipython notebook or terminal and execute the query from the
paper:fromaflowimport*result=search(batch_size=20).select(K.agl_thermal_conductivity_300K).filter(K.Egap>6).orderby(K.agl_thermal_conductivity_300K,True)# Now, you can just iterate over the results.forentryinresult:print(entry.Egap)aflowsupports lazy evaluation. This means that if you didn’t ask
for a particular property during the initial query, you can just ask for
it later and the request will happen transparently in the background.Python 2 SupportAlthough the package was originally designed to be compatible with both
python 2 and python 3, python 2 has reached the end of its life. As
such, we don’t guarantee anymore that it will work.
Package: aflowey
FeaturesUtilities to describe and execute flow with coroutine functionsEasily launch several flows simultaneouslyStrong focus on readabilityhttps://aflowey.readthedocs.ioRequirementspython 3.7 +This library is easier to use with third party libraries for manipulating function
such asfn(flip function, function composition…), andtenacity(retry library).InstallationYou can installAfloweyviapipfromPyPI:$pipinstallafloweyUsageChain function to execute an async flow !fromafloweyimportaflow,CANCEL_FLOW,aexec,flog,partialdb=...# get client db# add some other libraryfromtenacityimportretryasyncdeffetch_url(url):returnawait...defprocess_data(html):processed_data=...# process dataifprocessed_dataisNone:returnCANCEL_FLOWreturnprocessed_dataasyncdefinsert_into_db(content):returnawaitdb.insert_one(content)defget_url_flow(url):# defining a flow for working with urlreturn(aflow.from_args("http://goole.fr")>>retry(wait=2)(fetch_url)>>flog("url fetched",print_arg=True)>>process_data# this one is synchronous but may included in the flow>>insert_into_db)Execute the flow for one url:result=awaitget_url_flow("http://google.com/...").run()Execute several flows asynchronously:fromfnimportflipname="Marco"user_flow=(aflow.empty()>>partial(db.find_one,search={"username":name})>>User.from_dict# the impure indicate that this step does not return a new result# i.e the result of User.from_dict will be sended>>impure(partial(flip(setattr),datetime.now(),'created_at')))organization_id="Not employed"organization_flow=(aflow.empty()>>partial(db_find_one,search={"organization_id":organization_id})>>Organization.from_dict)urls=["http://google.com/...","http://google.com/...","http://google.com/...","http://google.com/...",]url_flows=[get_url_flow(url)forurlinurls]# execute all flow with asyncio gather methodexecutor=aexec().from_flows(url_flows)|user_flow|organization_flow(url1,url2,url3,url4),user,organization=awaitexecutor.run()It can be boring to create function that exactly matches arity of the flow.
Aflowey provide some higher order functions to help, see:lift: create a new method accepting transformed argumentsF0: from a 0 argument function, create one argument function to fit the arity of the flowF1: create a new function with an extra parameter to process input of the flow stepspread: create a new function which spread an iterable of arguments into the given functionspread_kw: create a new function which spread kw arguments into the given functionThe fn library provide other interesting functions like:flipfirstIf you have any other ideas…ContributingContributions are very welcome.
To learn more, see theContributor Guide.LicenseDistributed under the terms of theMIT license,Afloweyis free and open source software.IssuesIf you encounter any problems,
pleasefile an issuealong with a detailed description.CreditsThis project was generated from@cjolowicz’sHypermodern Python Cookiecuttertemplate.
Package: afmaths
afmathsA simple package of math functions. Many of these will display output to the console to help understand what steps are required.FunctionsGeneraladd(), subtract(), multiply(), divide(), exponentiate(), square_root(), factorial(), euclid()Computer Sciencecs_file_compression_ratio(), cs_compressed_file_size(), cs_diagonal_pixel_length(), cs_travelling_salesman_problem_total_routes(), cs_check_clusters(), cs_ml_precision(), cs_ml_recall(), cs_ml_weighted_inputs()Graphsgraph_gradient(), graph_equation_of_line()Lists (todo: rename to collections?)list_sorted(), list_length(), list_sum(), list_minimum(), list_maximum(), list_range(), list_mean(), list_median(), list_quartiles()Physicsphysics_radiowave_power_distances(), physics_radiowave_recieved_power(), physics_speed_of_light_metres_per_second(), physics_planck_constant(), physics_photon_energy_from_wavelength(), physics_photon_energy_from_frequency(), physics_frequency_to_wavelength(), physics_wavelength_to_frequency()
Package: afmparser
AFM-parserThis is an antlr4 implementation of the old fama plain-text format built from scratch, developed for retrocompatibility purposes.%Relationships
Home : ControlSystemLighting [AntiTheftAlarm] [MoviePlayer] [Internet] [Contents] [ADA] ;ControlSystem:[1,2]CellPhone ControlPanel;MoviePlayer:[1,3]{HDTV42in HDTV32in PCPlayer} ;Internet:[1,4]{EthernetWiFi_n WiFi_bg Mobile3G } ;Contents:[1,2]{VideoOnDemand DMS } ;VideoOnDemand : [Cache] Providers ;Providers : [1,2]ProviderA ProviderB ;%ConstraintsVideoOnDemand REQUIRES Internet ;VideoOnDemand REQUIRES ADA ;Cache REQUIRES DMS ;PCPlayer REQUIRES CellPhone ;AntiTheftAlarm REQUIRES ControlPanel ;Model 1: Feature Model ExampleLoad Model 1 in FAMA console using the load command. In case you need help about the available
commands, use help command or read the reference manual. The following table shows the results of
executing the difeerent operations.Operation ResultValid Yes#Products 4928Commonality(CellPhone) 3696Errors No errorIf you want to see how FAMA behaves when an error is found, introduce at the end of Model 1 the constraint ControlPanel REQUIRES CellPhone;. The result is a model where CellPhone is a false-mandatory
feature. It means that it is mandatory for any product despite of being modelled as optional. When we calculate Its commonality (the number of products where a feature appears in), it is equal to the total number
of products. It is the sign of mandatory features:Operation ResultValid Yes#Products 3696Commonality(CellPhone) 3696Errors False-mandatory: CellPhoneExplanations [CTC-6],[to-CellPhone-ControlPanel-rel]%Relationships
Home : ControlSystemLighting [AntiTheftAlarm] [MoviePlayer] [Internet] [Contents] [ADA] ;ControlSystem:[1,2]CellPhone ControlPanel;MoviePlayer:[1,3]{HDTV42in HDTV32in PCPlayer} ;Internet:[1,4]{EthernetWiFi_n WiFi_bg Mobile3G } ;Contents:[1,2]{VideoOnDemand DMS } ;VideoOnDemand : [Cache] Providers ;Providers : [1,2]ProviderA ProviderB ;%AttributesHDTV42in.ppp : [720,1080],0,0 ;%ConstraintsVideoOnDemand REQUIRES Internet ;VideoOnDemand REQUIRES ADA ;Cache REQUIRES DMS ;PCPlayer REQUIRES CellPhone ;AntiTheftAlarm REQUIRES ControlPanel ;HDTV42in.ppp == 1080 IMPLIES Ethernet ;Model 2: Model 1 extended with quality attributesAll credits to the original design corresponds to Jesús García Galán.
Package: afmt
afmtThis module provides an easy way to format text in CLI environment.
It is designed for use inf-stringsbut regular string formatting withformatmethod is also supported.The module takes care of stripping ANSI escape sequences from piped output
and puts the sequences only if they're supported by the output device.Setup$ pip install afmtUsage and examplesfromafmtimportFormatterf=Formatter()# You can use inline stylingprint(f'{f:bold}bold text{f:e}')# You can define specs outside of an f-stringwarning='bold bg(yellow) fg(black) italic'error='bold bg(red) fg(white) underline'print(f'{f:{warning}}Warning: you shouldn\'t do it{f:e}')print(f'{f:{error}}Error: you can\'t do it{f:e}')# You can define custom styles in the formatter instancef.add_style('important','b fg(red)')print(f'{f:important}important text{f:e}')# Or you can pass a dict of styles in the initializerf=Formatter(styles={'important':'bold fg(255,0,0)','unimporant':'faint'})print(f'{f:important}important text{f:e}')print(f'{f:unimportant}not so important text{f:e}')# Move cursor to 4th row and 6th column and print text in reverse video modeprint(f'{f:reverse goto(4,6)}hello, world{f:e}')# Make text bold and underlined and unset bold in the middleprint(f'{f:bold italic}hello,{f:!bold}world{f:e}')Development statusThis module is in the early stage of development.
More features are coming hopefully soon.
Package: afniRTI
AFNI Real-Time Interface in PythonPython scripts and modules to enable communication with AFNI's real-time data interface to facilitate neuro-feedback experimentsThis project contains both code to communicate with AFNI's real-time interface via network, and example code to do simple
processing and stimulus generation, based on the received data.The code within this package has been derived from python modules in theAFNIsoftware suite,
which were repackaged and modularized to improve portability.The communication is handled by theafniRTImodule, and the shipping demonstration experiment is implemented usingPsychoPy.The experiment can be run by PsychoPy running on Windows, Mac OS X, and Linux - with AFNI running on a Linux or OS X computer
sending the data (via TCP) to the computer running the experiment in PschoPy.Stimulus initialization and experimental setup is done in the 'setupExperiment' routine, processing and modeling of AFNI data
is done in the 'compute_TR_data' routine, and updating of stimuli to deliver feedback is done by the 'runExperiment' module.Code organization and initial version provided by J. Naegele.  Assistance with Windows compatibility provided by S. J. Fede.
Package: afnumpy
afnumpyAims to be a GPU-ready drop-in replacement for numpy. UsesArrayFireto do the actual computing.How to citePlease cite afnumpy as:Filipe R. N. C. Maia. (2017). afnumpy: A GPU-ready drop-in replacement for NumPy,http://doi.org/10.5281/zenodo.262201Git commit4a04c11
Package: afori-utils
Afori UtilsThis package contains an aggregation of tools used by Dor Miron.
Afori is my cat, and he contributed some changes now and then.InstallationRun the following to install:pipinstallafori_utilsUsagefromignore.afori_utilsimportpyplot_utils,sync_utilsfromafori_utilsimportdebug_utils,sync_utils
Package: afp
afpPython package and utilities for reading AFP (Advanced Function Presentation)
files.OverviewAn afp package for Python, allowing the caller to read and decode AFP (Advanced
Function Presentation) print files. For more information on AFP see the website
of the AFP Consortiumhttp://afpcinc.org.The repository also contains two utilities that make use of the library -
dumpafp.py and afp2ascii.py.The code is pure Python 3.
Package: afplay-py
afplay-pyA python wrapper and better CLI for the macOS toolafplay(audio-file player).InstallationFrom pip:pipinstallafplay-pyFrom source (from the root project directory):pipinstall.Quick UsageCLIPlay an audio file using the CLI:afplay-py~/path/to/file.mp3NOTE: The intent is for this CLI to not have some of the problems the regular tool does.PythonPlay an audio file using Python:fromafplayimportafplayafplay("path/to/file.mp3",volume=2,time=100,leaks=True)Check ifafplayis installed:fromafplayimportis_installedprint(is_installed())
Package: afpproxy
AFPproxy is an MIT licensed proxy for an AppleShare file server. You can use it to help debug client/server connections on Mac OS X, but I wrote it to explore the Twisted networking framework.When running, the proxy prints details of the client/server communication to stderr.InstallationRequires Python 2.5 or later and Twisted. AFPproxy does not run on Python 3. Mac OS X 10.5 and later include Python and Twisted by default.You can download and install the source directly:tar -xf afpproxy-0.1.tar.gz
cd afpproxy-0.1
python setup.py installOr install it from PyPI:pip install afpproxyIf you don’t have Twisted installed, install it. For Python 2.5 install it with:pip install 'Twisted<12.2' 'zope.interface<4'UsageOnce installed, start the proxy with theafpproxycommand.By default this proxies your real AFP server on localhost port 548, and accepts connections on port 5548. You then connect to the running afpproxy and will see a description of the commands sent between client and server.To proxy to a different server give its name or IP address:afpproxy --host example.comOr to proxy to a server running on a non-standard port:afpproxy --host example.com --port 1234To start a proxy listening for connections on port 1548:afpproxy --listen 1548By default afpproxy will log (relatively) meaningful information about the requests and responses. If you want to see the bytes of each and every command use the--debugflag:afpproxy --debugDevelopmentThe source for afpproxy is hosted on GitHub:https://github.com/davidwtbuxton/afpproxy
Package: afpy.ldap
afpy.ldapThis module is actively used onhttp://www.afpy.orgto manage the french python comunity members.The following examples show all features of the package. If you just want to
give it a try in a quickest way readInstallation and configurationfrom the Sphinx
documentation.Get a connection (this custom afpy connection get is configuration from a~/.ldap.inifile. SeeInstallation and configuration):>>> from afpy.ldap import custom as ldap
>>> conn = ldap.get_conn()Get a node via is dn:>>> dn = 'uid=gawel,ou=members,dc=afpy,dc=org'
>>> node = conn.get_node(dn)
>>> node
<Node at uid=gawel,ou=members,dc=afpy,dc=org>

>>> print node.birthDate
19750410000000ZYou can also define your own node class with a schema:>>> from afpy.ldap.node import Node
>>> from afpy.ldap import schema
>>> class User(Node):
...     uid=schema.StringProperty('uid')
...     birthDate = schema.DateProperty('birthDate', title='Date de naissance')
>>> node = conn.get_node(dn, node_class=User)
>>> node
<User at uid=gawel,ou=members,dc=afpy,dc=org>Then data is converted to a python object:>>> node.birthDate
datetime.date(1975, 4, 10)This also allow to generate forms withFormAlchemy:>>> from afpy.ldap import forms
>>> fs = forms.FieldSet(User)
>>> user = User()
>>> fs.rebind(user)
>>> print fs.render().strip() # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
<div>
  <label class="field_opt" for="User--uid">Uid</label>
  <input id="User--uid" name="User--uid" type="text" />
</div>
...
<div>
  <label class="field_opt" for="User--birthDate">Date de naissance</label>
...The source code can be find on theAFPy repositoryGot a bug, feature request ? Want to send beer because you love it ? Send an
email atgawel@afpy.orgor join us on the #afpy channel on freenode.News0.8.2Add ListOfGroups and ListOfPerms attributes. Allow to set user.groups = []0.8.1fix authentification failure when uid does not exist0.8small fixesadd GroupOfUniqueNames0.7Add repoze.what pluginsAllow to set node classes via config filefix compat with latest python-ldap0.5require dataflake.ldapconnection>=1.0b1, python-ldap>=2.3.100.1initial version
Package: afpy.xap
<tarek@ziade.org>
website:http://programmation-python.orgHelpers to work with Xapian. see doc/You need xapian-core and xapian-bindings:http://www.xapian.org/download.phpHistory0.1 (2008-09-27)refactoring of ‘xap’ from Tarek Ziadéinitial version created by IngeniSkel
Package: afqinsight
AFQ-InsightPython based statistical learning for tractometrySeehttps://yeatmanlab.github.io/AFQ-Browser/for documentation of the AFQ data formatThis is a work in progress.ContributingWe love contributions!AFQ-Insightis open source, built on open source,
and we'd love to have you hang out in our community.We have developed someguidelinesfor contributing toAFQ-Insight.CitingAFQ-InsightIf you useAFQ-Insightin a scientific publication, please see cite us:Richie-Halford, A., Yeatman, J., Simon, N., and Rokem, A.Multidimensional analysis and detection of informative features in diffusion MRI measurements of human white matter.
DOI:10.1101/2019.12.19.882928@article {Richie-Halford2019.12.19.882928,
	author = {{R}ichie-{H}alford, {A}dam and {Y}eatman, {J}ason and {S}imon, {N}oah and {R}okem, {A}riel},
	title = {{M}ultidimensional analysis and detection of informative features in diffusion {MRI} measurements of human white matter},
	elocation-id = {2019.12.19.882928},
	year = {2019},
	doi = {10.1101/2019.12.19.882928},
	publisher = {Cold Spring Harbor Laboratory},
	URL = {https://www.biorxiv.org/content/early/2019/12/20/2019.12.19.882928},
	eprint = {https://www.biorxiv.org/content/early/2019/12/20/2019.12.19.882928.full.pdf},
	journal = {bioRxiv}
}AcknowledgementsAFQ-Insightdevelopment is supported through a grant from theGordon
and Betty Moore Foundationand from theAlfred P. Sloan Foundationto theUniversity of
Washington eScience Institute, as
well asNIMH BRAIN Initiative grant 1RF1MH121868-01to Ariel Rokem (University of Washington).
Package: aframe
A-FRAMEAn easy-to-use python wrapper for the A-Frame web framework.pip install aframeWhat is A-Frame?A-Frame is a web framework for building virtual reality (VR) experiences. A-Frame is based on top of HTML, making it simple to get started. But A-Frame is not just a 3D scene graph or a markup language; the core is a powerful entity-component framework that provides a declarative, extensible, and composable structure tothree.js.Originally conceived within Mozilla and now maintained by the co-creators of A-Frame withinSupermedium, A-Frame was developed to be an easy yet powerful way to develop VR content. As anindependent open source project, A-Frame has grown to be one of thelargest VR communities.A-Frame supports most VR headsets such as Vive, Rift, Windows Mixed Reality, Daydream, GearVR, Cardboard, Oculus Go, and can even be used for augmented reality. Although A-Frame supports the whole spectrum, A-Frame aims to define fully immersive interactive VR experiences that go beyond basic 360° content, making full use of positional tracking and controllers.ExampleHere is an example using the Aframe library with FastAPI to create a VR Hello World:from aframe import Aframe, xyz
from fastapi import FastAPI
from fastapi.responses import HTMLResponse
import uvicorn

app = FastAPI()

@app.get('/')
def hello_world():
    a = Aframe()
    a.set_scene(background="color: #ECECEC")
    a.box(position=xyz(-1, 0.5, -3), rotation=xyz(0, 45, 0), 
          color="#4CC3D9", shadow=True)
    a.sphere(position=xyz(0, 1.25, -5), radius=1.25, 
             color="#EF2D5E", shadow=True)
    a.cylinder(position=xyz(1, 0.75, -3), radius=0.5, 
               height=1.5, color="#FFC65D", shadow=True)
    a.plane(position=xyz(0, 0.1, -4), rotation=xyz(-90, 0, 0), 
            width=4, height=4, color="#7BC8A4")
    return HTMLResponse(a.generate())

if __name__ == '__main__':
    uvicorn.run("main:app", port=8000, log_level="info", reload=True)For a more involved example, run the following in a script file:from aframe.templates import fastapi
fastapi()
Package: afreeca
AfreecaAfreecaTV API WrapperInstallpipinstallafreecaUsageimportasynciofromafreecaimportAfreecaTV,Chat,UserCredentialasyncdefcallback(chat:Chat):print(f"{chat.nickname}:{chat.message}")asyncdefmain():cred=awaitUserCredential.login("ID","PW")afreeca=AfreecaTV(credential=cred)chat=awaitafreeca.create_chat("BJ")chat.add_callback(callback)awaitchat.start()asyncio.run(main())Referencehttps://github.com/ha1fstack/aftv-ws
Package: afreeze
afreezeFreeze ALSA configuration settings.Getting Startedafreeze may be installed via PyPi via:pipinstallafreeze[daemon]--userOr afreeze may be installed via git:gitclonehttps://github.com/Alexhuszagh/afreezecdafreeze
pythonsetup.pyinstall--userOnce installed, you can freeze various alsa configuration settings via various commands. For example, to force the audio to stay at 75%, you may use:afreeze--command"'Master' 75%"To list all controls available and current content settings, use:afreeze--list-controls
afreeze--list-contentsafreeze supports custom devices and sound cards. To specify a custom device, use:afreeze--devicedefault...To specify a custom sound card, use:afreeze--card0...To enable auto-mute mode (muting speakers when headphones are plugged in), use:afreeze--card0"'Auto-Mute Mode' Enabled"DaemonThis script may also be run as a daemon, requiringpython-daemon. To launch afreeze as a daemon, use:afreeze--daemon...LicenseThis is free and unencumbered software released into the public domain.ContributingUnless you explicitly state otherwise, any contribution intentionally submitted for inclusion in afreeze by you, will be unlicensed (free and unencumbered software released into the public domain).
Package: africamonitor
Africa Macroeconomic Monitor Database APIA python API providing access to a relational database with macroeconomic data for Africa.
The database contains >700 macroeconomic time series from mostly international sources,
grouped into 50 macroeconomic and development-related topics. Series are carefully selected
on the basis of data coverage for Africa and relevance to the macro-development context.
The project is part of theKiel Institute Africa Initiative,
which, amongst other things, aims to develop a parsimonious database with highly relevant indicators
to monitor macroeconomic developments in Africa, accessible through a fast API and a web-based platform
athttps://africamonitor.ifw-kiel.de/.
Package: africanelephantdatabasedatadownloader
Download data from the African Elephant DatabaseThe African Elephant Database (http://africanelephantdatabase.org/) is an online effort by theIUCN SSC African Elephant Specialist Group (AfESG)to gather data from different surveys and combine it with past African Elephant Status Reports (published by the same group).The database is freely accessible online via a web user interface, and released under aCreative Commons Attribution-NonCommercial-ShareAlike license. Unfortunately, at the time of this writing, the AfESG did not have means to access the backend and retrieve raw data.This script swifts through the online user interface and downloads all data contained in the  “Elephant Estimates” columns as well as the spatial geometry of eachstratum(the smallest area reported). It retains the hierarchy of spatial units by referencing to the higher-order units in attributes in order to allow the reconstruction of data on the level ofinput systems,countries,regionsand the entirecontinent.If you usepython-africanelephantdatadownloaderfor scientific research, please cite it in your publication:Fink, C. (2019):python-africanelephantdatabasedatadownloader: a Python utility to download the most up-to-date data from the African Elephant Database.doi:10.5281/zenodo.3243872DependenciesThe script is written in Python 3 and depends on the Python modulesBeautifulSoup4,GeoPandas,Shapelyandrequests.To install all dependencies on a Debian-based system, run:apt-getupdate-y&&apt-getinstall-ypython3-devpython3-pippython3-virtualenv\python3-bs4python3-geopandaspython3-requestspython3-shapely(There’s an Archlinux AUR package pulling in all dependencies, see further down)Installationusingpipor similar:pip3install-uafricanelephantdatabasedatadownloaderOR: manually:Clone this repositorygitclonehttps://gitlab.com/helics-lab/python-africanelephantdatabasedatadownloader.gitChange to the cloned directoryUse the Pythonsetuptoolsto install the package:cdpython-africanelephantdatabasedatadownloader
python3./setup.pyinstallOR: (Arch Linux only) fromAUR:# e.g. using yaourtyaourtpython-africanelephantdatabasedatadownloaderUsageRunaed-downloader [outputFile]. It will download all data (be patient) and save it inGeoPackageformat tooutputFile(default isoutput.gpkgin the current working directory).