Saravanan666/pypi-org huggingface dataset:
Package: attune
attuneTools for tuning optical parametric amplifiers and multidimensional spectrometers.Documentation is available athttps://attune.wright.tools/en/latest/.Overviewattunehas three primary jobs:attune parses calibration data to find optimal motor positions# data has scans of a motor position ("OPA1_SHS_crystal") against a signal
# ("signal") for a set of second harmonic signal color setpoints
# ("opa_color")
calibration_data = wt.open(path_to_data.wt5)
calibration_data.transform("opa_color", "motor")
args = {
    "data": calibration_data,
    "channel": "signal",
    "arrangement": "SHS",
    "tune": "SHS_crystal",
    "instrument": "OPA1",
}
tuned_opa1 = attune.intensity(**args)attuneorganizes optimal motor positions.  The motor positions are stored in a hierarchy of mappings.  Beginning at the lowest level:Tune : a map of OPA color (the "independent") to positions of a single motor (the "dependent").my_tune = attune.Tune(
    independent=[450, 600, 700],
    dependent=[3.225, 2.332, 1.987]
)  # relate color to bbo angleArrangement : a collection of Tunes that define a concerted process (e.g. to generate idler photons, one might move several motors (bbo,g1, etc.))idler = attune.Arrangement("idler", dict(bbo=my_tune, g1=my_other_tune))Instrument : a collection of Arrangements (e.g. an OPA may have signal and idler)my_opa = attune.Instrument({"idler": idler, "signal": signal}, name="opa1")Note: arrangements can be called as tunables if they exist in the same instrument.  This can allow nested namingshi = attune.Arrangement(Dict(
    idler = Tune(shi_colors, idler_colors), 
    sh_crystal = Tune(shi_colors, angles)
))attunestores motor mappings and remembers them through version tracking.save a new instrument (or update an existing one)attune.store(my_opa)lookup a saved instrument (by name)attune.catalog()  # lists all saved instruments
my_opa = attune.load("opa1")  # fetches the most recent version of the instrument
my_previous_opa = attune.undo(my_opa) # fetches the previous version of the instrument
my_old_opa = attune.load("opa1", time="yesterday")  # optional kwarg specifies the version by time of usageNotesattuneuses default units of nanometers ("nm") for its independent variables.At this time, units cannot be changed, so alternate units must be handled externally(PRs are welcome!).
WrightTools calibration data is automatically converted into "nm" units for parsing.
Package: atudomain-git
Simple Python wrapper for GitProvides access to Commit objects and easy branch listing.License: 3-Clause BSDPython: Python 3.6+Table of ContentsInstallationQuickstartGetting BranchesGetting CommitsGetting Commit detailsAPI DocumentationInstallationInstall using pip:python3-mpipinstallatudomain-git--userAlternatively, you can just append downloaded repository path to PYTHONPATH.QuickstartImport Git class:fromatudomain.gitimportGitCreate Git object:git=Git('/home/user/example-repo')Getting branchesGet list of remote origin branches:branches=git.get_branches(include='^remotes/origin')Get list of local branches:branches=git.get_branches(exclude='^remotes/')Getting CommitsGet list of Commits for the current branch:commits=git.get_commits()Get list with last Commit for the current branch:commits=git.get_commits('HEAD^..HEAD')Getting Commit detailsGet committer date from Commit:committer_date=commits[0].committer_dateGet commit id from Commit:commit_id=commits[0].commit_idCheck if Commit is a merge:is_merge=commits[0].is_mergeAPI Documentationhttps://atudomain-git.readthedocs.io/en/latest/
Package: atuin-graph
atuin-graphactivity graph foratuinself hosted sync serverIt connects to the PostgreSQL atuin database, using by default thedb_urisetting from atuinserver.tomlconfig fileTwo ways to run it are available, whether in command line or as a flask web applicationRequired Python version: >= 3.11 (uses thetomllib parser)installationpipinstallatuin-graphcli / standalone-atuin-graph: takes a username as input and outputs aatuin-{user}.pngfileThe-untiland--fromparameters allow to query from / up to a specified date, this is useful to create one png per day and create a gif withimagemagickfor example (convert -delay 10 -loop 1 *.png atuin.gif)atuin-graph-h
usage:atuin-graph[-h]--userUSER[--fromFROM][--untilUNTIL][--atuin_server_configATUIN_SERVER_CONFIG]options:-h,--helpshowthishelpmessageandexit--userUSERusertodrawthegraphfor--fromFROMday(yyyy-mm-dd)toqueryfrom--untilUNTILday(yyyy-mm-dd)toqueryuntil--atuin_server_configATUIN_SERVER_CONFIGatuinserverconfigpathweb appThis package also ships a Flask app which dynamically serves a png for a given user and optional dates📅️from a datehttps://my-atuin-server/graph/username/from/yyyy-mm-dduntil a datehttps://my-atuin-server/graph/username/until/yyyy-mm-ddhttps://my-atuin-server/graph/username/yyyy-mm-ddbetween dateshttps://my-atuin-server/graph/username/yyyy-mm-dd/yyyy-mm-ddone way to run it:GUNICORN_CMD_ARGS="--bind=127.0.0.1:8889"SCRIPT_NAME=/graphgunicornatuin_graph.web:appand on nginx sidelocation /graph {

            proxy_bind              $server_addr;
            proxy_pass              http://127.0.0.1:8889;
    }
Package: atum
Atum is a tiny Python library that you can use to emulate the basic
functionality of Erlang’satomin your Python scripts.Status: Beta; this is an experiment.Erlang documentation:3.3 AtomAn atom is a literal, a constant with name. An atom is to be enclosed
in single quotes (’) if it does not begin with a lower-case letter or
if it contains other characters than alphanumeric characters,
underscore (_), or @. Examples:hello
phone_number
'Monday'
'phone number'http://erlang.org/doc/reference_manual/data_types.htmlUnlike Erlang’s atom,atumdoes not impose the same limitations. You
may import any valid Python name from atum - even all uppercase.Install$ pip install atumExamplesInstead of writing:@app.route('/register',methods=['GET','POST'])defregister():passYou could write:fromatumimportGET,POST@app.route('/register',methods=[GET,POST])defregister():passThis might be useful if you use autocompletion. Another benefit is
exceptions occur sooner in case of typos, since the interpreter itself
validates the imported names. Pay attention when importing, simply
tab-to-complete later.You can compare an atum with another atum or a string.fromatumimportmachine,humanasserthuman==humanassertmachine==machineassertmachine=='machine'asserthuman!=machineasserthumanishumanassertmachineismachineAtums also make for readable sentinel values or event-names.fromatumimportuser_is_awakefromqueueimportQueueq=Queue()q.put(user_is_awake)assertq.get()==user_is_awakeTechnical DetailsAtum simply imports Python strings with the same content as their name.Here is the content of atum.py in its entirety:importsysas_sys# intern() is a builtin in Python 2.if_sys.version_info>(3,0):intern=_sys.internclassAtum(object):def__getattr__(self,item):ifitem.startswith('__'):returnself.__getattribute__(item)returnintern(item)def__getitem__(self,item):returnitem_sys.modules[__name__]=Atum()Known IssuesAtum does not support using@in imported names as Python’s
syntax does not allow it.
Package: atup
atupDeveloper GuideSetup# create conda environment$mambaenvcreate-fenv.yml# update conda environment$mambaenvupdate-natup--fileenv.ymlInstallpipinstall-e.# install from pypipipinstallatupnbdev# activate conda environment$condaactivateatup# make sure the atup package is installed in development mode$pipinstall-e.# make changes under nbs/ directory# ...# compile to have changes apply to the atup package$nbdev_preparePublishing# publish to pypi$nbdev_pypi# publish to conda$nbdev_conda--build_args'-c conda-forge'$nbdev_conda--mambabuild--build_args'-c conda-forge -c dsm-72'UsageInstallationInstall latest from the GitHubrepository:$pipinstallgit+https://github.com/dsm-72/atup.gitor fromconda$condainstall-cdsm-72atupor frompypi$pipinstallatupDocumentationDocumentation can be found hosted on GitHubrepositorypages. Additionally you can find
package manager specific guidelines oncondaandpypirespectively.
Package: atuproot
atuprootalphatwirlinterface to process and readROOTTTreeswithuproot.How to useCan be installed via pippip install atuprootor for developing:git clone git@github.com:shane-breeze/atuproot.git
cd atuproot
python setup.py installBinder tutorialAn example of how to use this is shown in a binder tutorial linked below.
Package: aturan-calendar
Converts Western/Gregorian dates into Aturan dates. From the wonderful world of Patrick Rothfuss in The Kingkiller Chronicles.copyright:2016-2017 Christian Erick Sauer.license:MIT, see LICENSE for more details.All rights regarding The Kingkiller Chronicles are reserved by Patrick Rothfuss.–Things we know for sure:11 Days in a Span.4 Spans in a Month.44 Days in a Month.8 Months in a Year.7 Holy Days after the eight Month and before the first Month of the new Year.The last Holy Day, and therefore the last Day of the Year, is Winter’s Solstice.The names of the Days of the Span.The names of the Months of the Year.The Name of the Wind’s first sentence tells us it was Felling Night.The Name of the Wind was published on 27-Mar-2007Things we don’t know but can make reasonable guesses:The Month in which present day is taking place. But we know neighboring farms are harvesting, so that would suggestReaping.Things we don’t know AT ALL.The Span of the Month in which present day is taking place. Assumed it was the first Span ofReapingThe Year in which present day is taking place. We have NO SENSE of actual years, just relative mentions. Since this would be a totally wild guess, just made it the same as The Name of the Wind’s published Year.Given everything above, that would make 27-Mar-2007 line up with Felling Night in the first Span of Reaping 2007 which is the 228th day of the Aturan Year.  Walking backwards, the first Day of Aturan Year 2007 is 11-Aug-2006. We can use thispoint of originto calculate any other date.As mentioned above, some of this is just guesswork. IfDay 3gives better insight, this will be updated.
Package: aturtle
Python A-Trutle is a library that implements Turtle Graphics withasynciosupport.A short capability summary:Supports both sync and asyncio compatible coroutine API.Multiple turtle support with either vector or bitmap shapes.Concurrent animation support via the coroutine API.Built on top of the Standard Library’stkintermodule.Sprite support (essentially turtles that don’t draw lines)More.InstallationPython A-Turtle is a pure Python package distributed viaPyPI. Install it with:$pipinstallaturtleFor improved bitmap image rotation speed and quality, install the optionalPillowextra with:$pipinstallaturtle[pillow]Quick Startimportaturtlew=aturtle.Window()sh=aturtle.shapes.vector.Triangle(radius=20,angle=0)s=aturtle.create_sprite(w,sh,update=True)t=aturtle.turtle.Turtle(s)t.sync_forward(100)ThanksTo the creators and maintainers ofTcl/Tk, a programming language I used for a while in the late 1990’s, in particular for the seriously under-appreciatedCanvas widgetwhich is amazingly powerful. Python embeds the Tcl/Tk interpreter in the form of thetkinterStandard Library module. Long live Tcl/Tk andtkinter!To whoeverQuarksis, for sharing an effective technique for debouncing TkKeyPress/KeyReleaseevents in towards the end ofthis thread.ToTerry Pratchet, for hisDiscworldnovels and, in particular, forGreat A’Tuin, the“Giant Star Turtle (…) who travels through the Discworld universe’s space, carrying four giant elephants (…) who in turn carry the Discworld.”, which has come to my mind often while creating this.AboutPython A-Turtle is being created by Tiago Montes.
Package: atus
OAnalysisTool forUndergradStudents é uma ferramenta desenvolvida por estudantes daUniversidade de São Paulo, com o objetivo de facilitar a análise de dados feita por estudantes de física experimental.DocumentaçãoInstruções para instalação e tutoriais de uso do ATUS podem ser encontradas na nossapágina.FeedbackPara qualquer crítica construtiva, sugestões, reportes de bugs etc, por favor, nos envie um e-mail -atusdevs@gmail.comAutores@GuiiFerrari@LeoEiji@imscl_
Package: atw
ATWATW is a simple tool to check if a work schedule is complaint with the dutch working hours law (arbeidstijdenwet)Copyright (C) 2022 Arvid HahnéThis program is free software: you can redistribute it and/or modify
it under the terms of the GNU 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 General Public License for more details.You should have received a copy of the GNU General Public License
along with this program.  If not, seehttps://www.gnu.org/licenses/.
Package: atwc
aTWC - Python interface to Teamwork CloudPython interface to NoMagic/CATIA Teamwork Cloud Server.Teamwork Cloudserver is a central
repository service to store and retrieveCameoandMagicDrawmodels.TWC exposes a REST API that allows interaction with the stored models.This library has been primarily written as interface abstraction for
Archimedes Exhibitions GmbH's Cameo Collaborator Publisher service, hence it's
not intended as a general-purpose solution.aTWC is developed and maintained byArchimedes Exhibitions GmbH.Installation$pip3installatwcUsage exampleimportasyncioimportatwcasyncdefmain():client=atwc.client.Client('https://twc.local:8111/osmc/','user','password')asyncwithclient.create_session():browser=atwc.browsers.ResourceBrowser(client)awaitbrowser.fetch()print('MagicDraw resources:')forresourceinbrowser.md_resources:print(f'{awaitbrowser.get_category_path(resource)}/'f'{resource["dcterms:title"]}')asyncio.run(main())Running the examplesCopy the fileconfig.py.distintoconfig.pyin theexamplesfolder:$cdexamples
$cpconfig.py.distconfig.pyEdit the fileconfig.pyand replace the placeholders for all the entries.More information can be found in the docstring of each script.
Package: atwiki-python
atwiki-pythonatwiki-pythonis a client library to access@wikifrom Python.This package also includesatwiki-dumpcommand to dump source from @wiki wiki site.Installpip install atwiki-pythonRequirementsPython 2.7 / 3.7 / 3.8 / 3.9 / 3.10 / 3.11Usageatwiki-dumpCommandDump source and page name for each page in the wiki site.atwiki-dump -o /tmp/dump_dir https://w.atwiki.jp/python-client/Python APIPython API provides access to @wiki features.fromatwikiimport*api=AtWikiAPI(AtWikiURI('https://w.atwiki.jp/python-client/'))# Show list of tags.fortaginapi.get_tags():print(tag)# Show list of pages.forpageinapi.get_list():print(page)# Show list of pages tagged with 'tag01'.forpageinapi.get_list('tag01'):print(page)# Show source of page ID 14.print(api.get_source(14))# Show results of wiki search.forresultinapi.search('test'):print(result)HintsAlways use an appropraite interval between requests, or your IP address may get banned.
Empirically, 10 seconds of sleep between API call is sufficient.
EachAtWikiAPIinstance automatically injects a delay between requests.Your application must expect that entries returned from APIs may be duplicate/missing when pages/tags are added/removed during API call.
This is because listing requests are internally pagerized and it is costly to guarantee consistency.AtWiki’s specification may change anytime.
If you are going to build an automated system, it is encouraged to run test suites included with the installation of this library (python-munittest discover atwiki) everytime before running your application.LicenseMIT License
Package: atws
Python AutoTask Web Servicesatws is a wrapper for the AutoTask SOAP webservices APIFree software: MIT licenseDocumentation:https://atws.readthedocs.io.FeaturesPy2 and Py3 supportEasy, programmatic query writing (no XML required)Query result generator retrieves all entities, not just 500Zone discovery (you only need a username and password)Picklist python module creator (IDE autofill your picklist IDs)Support for API v1.5 and v1.6CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.5.5fix for integer reverse picklist lookupsfix for invoice markupfix for picklists that do not have parents0.5.3support API version 1.6 with addition of connect params (defaults to v1.5)0.5.2removed picklist module and documentation references updated to us picklists0.5.0 (2017-10-24)bugfixes0.4.9 (2017-05-08)url lookup using get_zone_info is now completed using the requests transport0.4.1 (2016-12-18)currency symbol picklist on currency entity was causing create_picklist_module
to fail to complete.  Currency entity is now excluded from default entity set.0.4.0 (2016-11-04)at.picklists module addedpicklists module with child field picklistssupport files debug feature (saves XML sent and received)query now builds XML closer to the API example documentationquery supports special chars like @ in condition values0.3.4 (2016-07-07)Py3 marshallable no longer failing due to unicode conversion0.3.3 (2016-07-07)Py3 marshallable no longer failing due to basestring comparison0.3.2 (2016-07-07)Py3 queries no longer failing due to encoding with BOM0.3.0 (2016-07-06)PyPI install missing requirements “future” fixed0.2.0 (2016-07-01)Python 3 support0.1.8 (2016-06-28)First proper release on PyPI.
Package: atxm
Automatic Tx Machine 🏧An async EVM transaction retry machine.
Programmatically queue, broadcast, and retrying (speedup) transactions.
Transactions are queued and broadcasted in a first-in-first-out (FIFO) order.InstallationpipinstallatxmUsagefrometh_account.localimportLocalAccountfromweb3importWeb3,HTTPProviderfromatxmimportAutomaticTxMachinefromtwisted.internetimportreactoraccount=LocalAccount.from_keyfile('path/to/keyfile','password')w3=Web3(HTTPProvider("http://localhost:8545"))transaction={'chainId':80001,'to':'0x1234567890123456789012345678901234567890','nonce':0,'value':0,'gas':21000,'maxFeePerGas':'1','maxPriorityFeePerGas':'1',}machine=AutomaticTxMachine(w3=w3)future_tx=machine.queue_transaction(signer=account,params=transaction,)reactor.start()FeaturesFuturesThe tracker returns aFutureTxinstance when a transaction is queued.
The FutureTx instance can be used to track the transaction's lifecycle and
to retrieve the transaction's receipt when it is finalized.Retry StrategiesThe tracker supports a generic configurable interface for retry strategies (AsynxTxStrategy).
These strategies are used to determine when to retry a transaction and how to do so.
They can be configured to use any kind of custom context, like gas oracles.Lifecycle HooksHooks are fired in a dedicated thread for lifecycle events.on_broadcast: When a transaction is broadcasted.on_finalized: When a transaction is finalized.on_pause: When a transaction is halted by the strategy.on_fault: When a transaction reverted or another error occurred.Crash-ToleranceInternal state is written to a file to help recover from crashes
and restarts. Internally caches LocalAccount instances in-memory which in
combination with disk i/o is used to recover from async task restarts.ThrottleThere are three rates, work (fast scan), idle (slow scan) and sleep (zero activity).
This reduces the use of resources when there are no transactions to track.
When a transaction is queued, the machine wakes up and goes to work.
When all work is complete it eases into idle mode and eventually goes to sleep.Event Loop SupportCurrently, the machine is designed to work with the Twisted reactor.
However, it can be adapted to work with any event loop.
Package: atxpdf
This is a structure template for Python command line applications, ready to be
released and distributed via setuptools/PyPI/pip for Python 2 and 3.Please have a look at the corresponding article:http://gehrcke.de/2014/02/distributing-a-python-command-line-application/UsageClone this repository and adopt the bootstrap structure for your own project.
This is just a starting point, but I hope a good one. From there on, you should
read and followhttp://python-packaging-user-guide.readthedocs.org/en/latest/,
the definite resource on Python packaging.BehaviorFlexible invocationThe application can be run right from the source directory, in two different
ways:Treating the bootstrap directory as a packageandas the main script:$ python -m bootstrap arg1 arg2
Executing bootstrap version 0.2.0.
List of argument strings: ['arg1', 'arg2']
Stuff and Boo():
<class 'bootstrap.stuff.Stuff'>
<bootstrap.bootstrap.Boo object at 0x7f43d9f65a90>Using the bootstrap-runner.py wrapper:$ ./bootstrap-runner.py arg1 arg2
Executing bootstrap version 0.2.0.
List of argument strings: ['arg1', 'arg2']
Stuff and Boo():
<class 'bootstrap.stuff.Stuff'>
<bootstrap.bootstrap.Boo object at 0x7f149554ead0>Installation sets up bootstrap commandSituation before installation:$ bootstrap
bash: bootstrap: command not foundInstallation right from the source tree (or via pip from PyPI):$ python setup.py installNow, thebootstrapcommand is available:$ bootstrap arg1 arg2
Executing bootstrap version 0.2.0.
List of argument strings: ['arg1', 'arg2']
Stuff and Boo():
<class 'bootstrap.stuff.Stuff'>
<bootstrap.bootstrap.Boo object at 0x7f366749a190>On Unix-like systems, the installation places abootstrapscript into a
centralizedbindirectory, which should be in yourPATH. On Windows,bootstrap.exeis placed into a centralizedScriptsdirectory which
should also be in yourPATH.
Package: aTXT
aTXTExtract text from files. Text mining tool.UsageYou can use aTXT with his name package or with 2txt in your console. For
example, if you want to show the help usage:aTXT -h2txt -hAlso, you can run the graphical interface (with PySide):aTXT -iYou should something like this:Note: aTXT will always generate a FILE for each file path.Examples: :$ 2txt prueba.html
$ 2txt prueba.html -o
$ 2txt --file ~/Documents/prueba.html
$ 2txt --file ~/Documents/prueba.html --to ~/htmlsSearching all textable files in a level-2 of depth over ~: :$ 2txt ~ -d 2
$ 2txt --path ~ -d 2 --format 'txt,html'Installationpip install atxtCheck dependencies for avoiding surprises:aTXT --checkRequirementsThis software is available thanks to others open sources projects. The
following list itemizes some of those more hard to install:PySide (GUI lib)Tessaract OCRXpdfscandir (trasversal folders fast)MetaAuthor: Jonathan S. Prieto C.Email:prieto.jona@gmail.comNotes: Have feedback? Please send me an email.Free software: BSD licenseIssuesPlease be free to comment whatever issue or problem with the
installation.http://github.com/d555/python-atxt/issues
Package: atyp
atypPackages that useatypDeveloper GuideSetup# create conda environment$mambaenvcreate-fenv.yml# update conda environment$mambaenvupdate-natyp--fileenv.ymlInstallpipinstall-e.# install from pypipipinstallatypnbdev# activate conda environment$condaactivateatyp# make sure the atyp package is installed in development mode$pipinstall-e.# make changes under nbs/ directory# ...# compile to have changes apply to the atyp package$nbdev_preparePublishing# publish to pypi$nbdev_pypi# publish to conda$nbdev_conda--build_args'-c conda-forge'$nbdev_conda--mambabuild--build_args'-c conda-forge -c dsm-72'UsageInstallationInstall latest from the GitHubrepository:$pipinstallgit+https://github.com/dsm-72/atyp.gitor fromconda$condainstall-cdsm-72atypor frompypi$pipinstallatypDocumentationDocumentation can be found hosted on GitHubrepositorypages. Additionally you can find
package manager specific guidelines oncondaandpypirespectively.A = AliasC = ClassVarQ = OptionalE = (Over)-EngineeredZ = CustomR = RichP = PlotD = DataB = BioM = Machine Learning