Saravanan666/pypi-org huggingface dataset:
Package: exovetter
This is a Python package for exoplanet vetting.LicenseThis project is Copyright (c) Space Telescope Science Institute and licensed
under the terms of the BSD 3-Clause license. This package is based upon
theAstropy package templatewhich is licensed under the BSD 3-clause license. SeeLICENSE.rstand
the licenses folder for more information.ContributingWe love contributions! exovetter is open source,
built on open source, and we’d love to have you hang out in our community.Imposter syndrome disclaimer: We want your help. No, really.There may be a little voice inside your head that is telling you that you’re not
ready to be an open source contributor; that your skills aren’t nearly good
enough to contribute. What could you possibly offer a project like this one?We assure you - the little voice in your head is wrong. If you can write code at
all, you can contribute code to open source. Contributing to open source
projects is a fantastic way to advance one’s coding skills. Writing perfect code
isn’t the measure of a good developer (that would disqualify all of us!); it’s
trying to create something, making mistakes, and learning from those
mistakes. That’s how we all improve, and we are happy to help others learn.Being an open source contributor doesn’t just mean writing code, either. You can
help out by writing documentation, tests, or even giving feedback about the
project (and yes - that includes giving feedback about the contribution
process). Some of these contributions may be the most valuable to the project as
a whole, because you’re coming to the project with fresh eyes, so you can see
the errors and assumptions that seasoned contributors have glossed over.Note: This disclaimer was originally written byAdrienne Lowefor aPyCon talk, and was adapted by
exovetter based on its use in the README file for theMetPy project.
Package: exowirc
# exowircHere, you’ll find all things for exoplanet observations on Palomar/WIRC, including data reduction software, observing procedures, exposure time calculators, and the current data inventory.To use the data reduction package, simply run pip3 install exowircThis should take care of all package dependencies.To run the sample scripts, first make sure the paths at the top of the script point to where the raw data are stored and where you want the data products to go. Then, run the script, for example:python3 helium_reduction.pyFor more tutorials on running the library or creating a customized sample script, visithttps://exowirc.readthedocs.io/en/addsphinxdoc/Change Log0.0.1 (Aug. 5, 2021)First release
Package: exp100
exp100.py========I'm a small script that help you get express package information use kuaidi100.com api.Install=======..  code:: bash$ pip install expressUsage=====``exp100``: normal use, type code in shell, return info.``exp100 -c code``: ``-c`` means code, specified express code.``exp100 -c code -o filename``: ``-o`` means output, specified output filename.``exp100 -c code -o filename -p company_name``: ``-p`` means company, specified the express company name, useful when auto guess is error.Type ``exp100 -h`` for more help.Example=======..  code:: bashyourname@computer:~$ exp100Input your express code: <Your code>Possible company: zhongtong, kuayue, yuantong, zhaijisong, shengfengwuliuTry zhongtong ...Donecode: <Your  code>         company: zhongtong       is checked: 0=================================================================time         |                  content-----------------------------------------------------------------2015-08-16 17:40:28 | first content-----------------------------------------------------------------2015-08-16 17:02:32 | some content-----------------------------------------------------------------...-----------------------------------------------------------------2015-08-13 20:41:27 | last content=================================================================Changelog=========- v0.0.5- express code should no long be numbers, to support company like APELAX- v0.0.4- remove third party module dependencies.- add ``-p`` option to specified company.- v0.0.2- express webside change the rule, need special header referer when send query- v0.0.1- first version, with base function.LICENSE=======MIT.
Package: exp1572
exp1572Game "1572: The Lost Expedition" (designed byMike Heim).Console game manager written in python. See full description atBoardGameGeek.This is a one page (print-and-play, PnP), ultra-portable, black and white solitaire game. You assume the role of a small party of conquistadors trying to reach the Atlantic Ocean after a failed expedition deep in the New World. This game is limited to 42 turns and each turn consists of phases such as Map Making, Exploring, and Hunting where a handful of dice are allocated in a press-your-luck fashion. For those that enjoy role-playing, there is also an optional Journaling phase where you try to tell a story about what happened on your turn. Can you reach the Atlantic Ocean before time runs out or before you lose all of your Conquistadors?Installpipinstallexp1572Runexp1572Available localizations: ru, en (work continues)
Package: exp4
EXP4A python implementation of Exponential weighting for Exploration and Exploitation with Experts. Based onthis blog post.This algorithm is useful for non-stochastic Contextual Multi Armed Bandits.Table of ContentsInstallationUsageInstallationIf you just need to useexp4, you can just run:$ pip install exp4For developers, note that this project uses thepoetrypython package/dependency
management tool. Please familarize yourself with it and then
run:$ poetry installUsageexp4is centered around theexp4.exp4function which creates a
co-routine for selecting arms given expert advice.The protocol is as follows:The expert constructs an expert advice matrix.Each row contains the corresponding experts advice vector.The advice vector provides probabilities for each arm.The expert sends a tuple of loss and advice.The loss corresponds to the previous round.The first round's loss is ignored.The advice correspond to the current round.An example is given below.fromexp4importexp4player=exp4()loss=None# Will be ignored.advice=[[1/3,1/3,1/3],# Expert 1[2/3,1/3,0],# Expert 2]arm=player.send((loss,advice))assertarminrange(3)loss=1/(1+arm)# Arbitrary loss assigned to arm.advice=[[0,0,1],# Expert 1[0,0,1],# Expert 2]arm=player.send((loss,advice))assertarm==2
Package: exp4-agepy
InstallationInstall withpip install git+https://github.com/exp4-age/agepy.gitThis will create a temporary clone of the repository and build the
package in your environment.If you want to help develop and contribute to the package, first clone
the repository to your PC and install in editable mode (detailed
tutorial in documentation):pip install -e path/to/agepyDocumentationThedocumentationis now onRead the docs.ContributingSeeCONTRIBUTING.rst
Package: expa
eXpaMetric logging and analysis tool for ML experiments.The components are:Scalable data store backed by PostgreSQLREST API for logging and retrieving dataPython client libraryexpafor sending metricsPowerful UI for metric visualizationThis is a pre-release work in progress, expect breaking changes!Getting startedStart development server locallygitclonehttps://github.com/jurgisp/expa.git&&cdexpaPORT=8000docker-composeupUse expa client to push metrics!pipinstallexpaimportexpalogger=expa.Logger('experiment','run',api_url='http://localhost:8000/api')logger.log_params({'param':'value'})forstepinrange(1,101):logger.log({'loss':1/step},step)Visualize metricsOpenlocalhost:8000SecurityThe API does not have any user authentication built-in. Be sure to add an auth layer if you are planning to deploy the service on publicly accessible network.ContributingSeeCONTRIBUTING.mdfor details.LicenseApache 2.0; seeLICENSEfor details.DisclaimerThis project is not an official Google project. It is not supported by Google and Google specifically disclaims all warranties as to its quality, merchantability, or fitness for a particular purpose.This product is not intended or suitable for storing private data.
Package: expak
expakis aGPLv3-licensed tool to extract and optionally process resources
from one or moreQuake-style pak files.The main component delivered by expak installation is a pure Python module,
for programmatically working with pak files. The installation also creates a
command-line utility for simple resource-extraction operations.Currently expak is compatible with Python 2.6, 2.7, 3.2, and later 3.x. It has
no dependencies outside of the standard Python modules.The expak module documentation contains examples of using the module. Those
examples range from a one-liner for listing pak file contents, up to a
complete script for extracting and modifying map files for use on a CTF server.Thequakesoundsapplication makes extensive use of expak.Documentationexpak modulesimple expak utilityChangelog1.1.1(2014-04-30)Explicitly claim support for PyPy and 3.4 (no functional change).Bigger example script included in module docs.Minor improvements to the readme.1.1(2014-02-16)Python 3 support.1.0(2013-11-21)Minor improvements to setup script, comments, and docs.Support for “python -m expak”.Removal of race in subdirectory creation in nop_converter.0.9(2013-11-19)Initial upload to PyPI. No known issues, but starting with a beta classifier
until I’m sure that the packaging is correct.
Package: expander
ExpanderThis is a Karton-based archive extractor, job submitter and tracker as well as
results correlator for use with Peekaboo.Submit jobs e.g. using curl:curl-Ffile=@wheels.ziphttp://127.0.0.1:8200/v1/scanCheck for and retrieve job reports using the job UUID returned by the upload to
the scan endpoint:curlhttp://127.0.0.1:8200/v1/report/c71cda68-6e15-4051-a55e-4ccb93f26329Spinning up all the required components by hand is tedious. Use the supplied
compose file to do that all at once:docker-composeup--buildSee the dev subdirectory on how to get a dummy Peekaboo for testing.
Package: expand-string
expand_stringThis library provides functions that allow you to expand a string
that contains parenthesis with numeric-values, and then expands that
into an actual string value.Installation$pipinstallexpand_stringUsageSimple example:fromexpand_stringimportexpand_stringexpand_string('N3(S)N2(E3(NW))')Would result in the output:NSSSNENWNWNWENWNWNWShell example:python-mexpand_string'N3(S)N2(E3(NW))'Would result in the output:NSSSNENWNWNWENWNWNWFor more details see theexpand_stringdocstring.
Package: expandvars
expandvarsExpand system variables Unix styleInspirationThis module is inspired byGNU bash's variable expansion features. It can be used as an alternative to Python'sos.path.expandvarsfunction.A good use case is reading config files with the flexibility of reading values from environment variables using advanced features like returning a default value if some variable is not defined.
For example:[default]my_secret_access_code="${ACCESS_CODE:-default_access_code}"my_important_variable="${IMPORTANT_VARIABLE:?}"my_updated_path="$PATH:$HOME/.bin"my_process_id="$$"my_nested_variable="${!NESTED}"NOTE: Although this module copies most of the common behaviours of bash,
it doesn't follow bash strictly. For example, it doesn't work with arrays.InstallationPippip install expandvarsCondaconda install -c conda-forge expandvarsUsagefromexpandvarsimportexpandvarsprint(expandvars("$PATH:${HOME:?}/bin:${SOME_UNDEFINED_PATH:-/default/path}"))# /bin:/sbin:/usr/bin:/usr/sbin:/home/you/bin:/default/pathExamplesFor now,refer to the test casesto see how it behaves.TIPsnounset=TrueIf you want to enable strict parsing by default, (similar toset -u/set -o nounsetin bash), passnounset=True.# All the variables must be defined.expandvars("$VAR1:${VAR2}:$VAR3",nounset=True)# Raises UnboundVariable error.NOTE: Another way is to use the${VAR?}or${VAR:?}syntax. See the examples in tests.EXPANDVARS_RECOVER_NULL="foo"If you want to temporarily disable strict parsing both fornounset=Trueand the${VAR:?}syntax, set environment variableEXPANDVARS_RECOVER_NULL=somevalue.
This helps with certain use cases where you need to temporarily disable strict parsing of critical env vars, e.g. in testing environment, without modifying the code.e.g.EXPANDVARS_RECOVER_NULL=foomyapp--configproduction.ini&&echo"All fine."WARNING: Try to avoidexport EXPANDVARS_RECOVER_NULLbecause that will disable strict parsing permanently until you log out.CustomizationYou can customize the variable symbol and data used for the expansion by using the more generalexpandfunction.fromexpandvarsimportexpandprint(expand("%PATH:$HOME/bin:%{SOME_UNDEFINED_PATH:-/default/path}",environ={"PATH":"/example"},var_symbol="%"))# /example:$HOME/bin:/default/pathContributingTo contribute, setup environment following way:Then# Clone repogitclonehttps://github.com/sayanarijit/expandvars&&cdexpandvars# Setup virtualenvpython-mvenv.venvsource./.venv/bin/activate# Install as editable including test dependenciespipinstall-e".[tests]"Followgeneral git guidelines.Keep it simple. Runblack .to auto format the code.Test your changes locally by runningpytest(pass--cov --cov-report htmlfor browsable coverage report).If you are familiar withtox, you may want to use it for testing in different python versions.Alternativesenvirons- simplified environment variable parsing.
Package: expat-fatcat
expat-fatcathelps US taxpayers living abroad file their tax returns to
comply with the IRS and
FATCA (https://en.wikipedia.org/wiki/Foreign_Account_Tax_Compliance_Act).
A significant pain point in this process is that foreign payments (income
or deductions) must sometimes be converted to USD with a valid rate on the date
of payment. This can readily add up to 40+ historical FX-rates to look up and
then paste into the usual Excel accounting madness. Some people may consider a
little copy-paste drudge work once a year a minor annoyance, but what are
programming and APIs for if not injecting some fun into an otherwise dreary
task?The core functionality ofexpat-fatcatis an historical FX-rate lookup with
smoothing in case of a missing exhange rate. Currently, we use the FX-service
Quandl (https://www.quandl.com/) inQuandlRateCoverterToUSD, which is a
sub-class ofAbsRateConverterTo. Other FX-rate services could be readily
integrated as required.
Package: expatriate
expatriateXML parsing and generation library on top of expat with Python object mapping
(ORM). See tests/fixtures for examples of how to use.Install (system-wide):pip install expatriateInstall (using venv):python3 -m venv venv
. venv/bin/activate
pip install –upgrade pip
pip install -r requirements.txt
python3 setup.py installTests:pip install pytest
pytestCHANGELOG0.4Merged in publishsubscribe, added attr_name getters, set loggers to INFO by
default0.3Added documentation, updated meta files0.2Added modeling0.1Initial release
Package: expbackoff
An exponential backoff implementation as described in anAWS architecture post. Uses full jitter.ExamplefromexpbackoffimportBackoffbackoff=Backoff(base_seconds=0.5,max_seconds=120)whileTrue:backoff.sleep()# Depending on previous failures, potentially delay before performing an actionsuccess=do_a_thing()# Perform an action, record whether it succeededbackoff.update(success)# Update the failure countAPIbackoff =expbackoff.Backoff(...)Create a Backoff object. Arguments:base_seconds(required): Part of the backoff calculation, i.ebase_seconds * 2 ^ (failures - 1)max_seconds(required): Max seconds to delay, regardless of
failure count.failures(optional): Number of current failures. Useful if
another service is handling your retries. Defaults to0.random(optional): Arandomobject. Defaults torandom.random.backoff.sleep(): If failures have occurred, sleep forbackoff.get_seconds_with_jitter()backoff.update(success): Update the failure count by passing a
boolean representing success.backoff.get_seconds_with_jitter(): The current backoff time in seconds, with jitter
applied. Zero if there are no recorded failures. Read-only.backoff.get_raw_seconds(): The current backoff time in seconds,withoutjitter
applied. Zero if there are no recorded failures. Read-only.backoff.failures: The current number of failures. Read-only.AlternativesPopular options areretryingandbackoff. These both use a
decorator API so aren’t suitable for all uses - henceexpbackoff.
Package: expcontrol
This package is designed to enable quick and easy development of
experiments in psychology/neuroscience. Most experiment scripts are coded
up with a fairly ad-hocfor t in trialsapproach, which generally leads
to inaccurate timing, accumulation of lag over trials, and in catastrophic
cases, failure to log all the experimental parameters and responses of
interest. It can also be surprisingly difficult to achieve more
sophisticated presentation schemes (e.g., presenting a video while
collecting keyboard responses and monitoring MRI scanner pulses) if you are
coding everything up from scratch.# Install
clone this repo and dopython setup.py install. A reasonably recent
version should also be on [pypi](https://pypi.python.org/pypi/expcontrol)
so trypip install expcontrol.# Do I need [psychopy](http://psychopy.org)?
It’s not a dependency, but at the moment you won’t be able to use the package
for much without it. All the psychopy-dependent code is in the psychopydep
module, so psychopy can be swapped out for another timing/opengl/response
logging solution as desired.# TO DO
* Tests
* Auditory events# License
ISC. See [separate file](LICENSE).
Package: expdb
expdbPython library and CLI for exporting MySQL databasesInstallationPre-requisitesMySQL serverPython 3.9+UsinggitClone the repository to your local machinegit clone https://github.com/Devansh3712/expdb.gitInstallpython setup.py installUsing PyPIWindowspip install expdbLinux/MacOSpip3 install expdbUsageCLIUsage: expdb [OPTIONS] COMMAND [ARGS]...

CLI for exporting MySQL databases in various file formats

Available formats: BIN, CSV, JSON, SQL

Options:
--help  Show this message and exit.

Commands:
exportall   Export all tables from a database
exportdb    Export a whole database in SQL file format
exportmany  Export multiple tables from a database
exportone   Export a single table from a databaseexportallExports all tables in the input databaseexportdbExport a whole database in SQL formatexportmanyExport multiple tables from the input databaseexportoneExport a single table from the input databaseLibraryfromexpdbimportJSONOBJ=JSON(username="root",password="root",database="test")EXPORT=OBJ.exportmany(tables=["users","sales"])
Package: expdf2txt
EXPDF2TXT🤔 OverviewThe expdf2txt is a versatile and efficient package designed for seamless conversion of PDF (Portable Document Format) files into TXT (Plain Text) format.
This package empowers users with a straightforward and reliable method to extract textual content from PDF documents, making it easily accessible and editable."❓ Features1. InvoiceExtractor (Convert Invoice Pdf to Text)Code:fromexpdf2txt.invoice2dataimportInvoiceExtractorFILEPATH="invoice_2001321.pdf"invocie_extractor=InvoiceExtractor(FILEPATH)data=invocie_extractor.openai_extract_data(format_data=True)print(data)2. ImageExtractor (extract image from pdf)Code:fromexpdf2txt.pdf2dataimportPDFExtractorFILEPATH="invoice_2001321.pdf"pdf_obj=PDFExtractor(FILEPATH)pdf_obj.extract_image()🚀 Methods1. InvoiceExtractor methods :openai_extract_data()'This method extracts text from a Invoice Pdf'Parameters:temperature (float, optional):The temperature parameter for the OpenAI LLM.api_key (str, optional):The API key for accessing OpenAI services.
Note: "If the default API key is not functioning, please provide an alternative API key for use."template (str, optional):Custom template string for document extraction.format_data (bool, optional):If True, format the extracted data into a dictionary or list; if False, return raw output.
Note: "If the data is successfully converted into a dictionary, it will be returned as a dictionary. Otherwise, it will be returned as a list."2. PDFExtractor methods:countpages()'Count the number of pages in the document.'extract_string()'Extract the data from the source.'extract_image()'Extract images from the PDF document and saves them as separate files.'DependenciesopenaipytesseractPyPDF2PyMuPDFLicenseThis project is licensed under the MIT License - see the LICENSE file for details.IssuesIf you encounter any issues or have suggestions, please create an issue on the GitHub repository.AcknowledgmentsMention any libraries or tools you used and give credit to their respective authors.
Package: expect
# expectInspired by [RSpec's test doubles][2] and [Expecter Gadget][3].Uses [Mock][1] but provides a terser syntax for expectations.Example:```python>>> def assert_equal(lhs, rhs):...     assert lhs == rhs>>> from expect import new_expect>>> expect = new_expect(__eq__=assert_equal)>>> expect(2) == 2>>> expect(2) == 3Traceback (most recent call last):...AssertionError>>> class MyClass(object):...     @classmethod...     def my_method(cls, arg):...         pass>>> # Stubs don't have to be called.>>> expect(MyClass).stub('my_method').with_(1).and_return(2)>>> MyClass.my_method(1)2>>> expect.reset()>>> # Mocks>>> expect(MyClass).should_receive('my_method').with_(1).and_return(2)>>> expect.verify()Traceback (most recent call last):...AssertionError: Expected to be called once. Called 0 times.```[1]: http://www.voidspace.org.uk/python/mock/[2]: https://github.com/rspec/rspec-mocks[3]: https://github.com/garybernhardt/expecter
Package: expectations
Expectations for PythonAsynchronous expectations (Jobs/tasks) for future events.If client user sends a message to server, a new eid is generated and sent with the message. If server sends back a message
with an eid, the eid is checked against our expectations. If eid matches an expectation, that expectation's callback
will run. If server sends a message without an eid, no expectations will be checked.InstallationPypi package is present.pip install expectationsImplementationImportant steps are marked 1-4.importasyncioimportosimportjsonimportaiohttpfromexpectationsimportExpector,eidgenHOST=os.getenv('HOST','127.0.0.1')PORT=int(os.getenv('PORT',1339))URL=f'http://{HOST}:{PORT}/ws'defmy_expected_proc(data):# Simple function we will use as our expectation callback.print('Processed expectation:',data)asyncdefmain():session=aiohttp.ClientSession()expector=Expector()# 1: Get setup.asyncwithsession.ws_connect(URL)asws:asyncformsginws:try:server_message=msg.data.rstrip()j=json.loads(server_message)if'eid'inj:# 4: See if incoming eid from server matches any of our expectations.expected=awaitexpector.check_expectations(j['eid'],server_message)ifexpected:# Give expected callback a second to process (For demo purposes; so it runs before prompt)awaitasyncio.sleep(1000)else:raiseException(f'Unexpected message from server:{msg}')exceptExceptionasex:print(ex)finally:awaitprompt_and_send(ws,expector)ifmsg.typein(aiohttp.WSMsgType.CLOSED,aiohttp.WSMsgType.ERROR):breakasyncdefprompt_and_send(ws,expector):user_msg=input('Type a message to send to the server: ')ifuser_msg=='exit':print('Exiting!')raiseSystemExit(0)eid=eidgen()# 2: Create new expectation ID (eid).awaitexpector.expect(eid,my_expected_proc)# 3: Create new expectation using eid and any callback function.awaitws.send_str(json.dumps({'method':user_msg,'eid':eid# eid is sent with msg (For demo). If we get this eid back later, the expectation callback will run.}))if__name__=='__main__':print('Type "exit" to quit')loop=asyncio.get_event_loop()loop.run_until_complete(main())MIT License