Saravanan666/pypi-org huggingface dataset:
Package: elgeql-qb
EdgeQL Query BuilderQuery builder for EdgeDBDescriptionProject currently in pre-alpha status. It is not production-ready yet, and It may be buggy and unstable as well.The project is not affiliated with the official developers of EdgeDB.This project only supports a small part of the EdgeDB syntax.The library does not contain any code to connect to the database or to execute queries.The library does not introspect the database and will not check if you made a typo somewhere in a column name. What you write is what you get.Minimal required version of python is 3.10. Not sure if I'll ever do a backport.There is no external dependencies, even on EdgeDB itself.Usage examplesMany examples of queries are given in thedocumentationdirectory.fromedgeql_qbimportEdgeDBModelfromedgeql_qb.typesimportint16fromedgedb.blocking_clientimportcreate_clientclient=create_client()Movie=EdgeDBModel('Movie')Person=EdgeDBModel('Person')insert=Movie.insert.values(title='Blade Runner 2049',year=int16(2017),director=(Person.select().where(Person.c.id==director_id).limit1),actors=Person.insert.values(first_name='Harrison',last_name='Ford',),).build()select=(Movie.select(Movie.c.title,Movie.c.year,Movie.c.director(Movie.c.director.first_name,Movie.c.director.last_name,),Movie.c.actors(Movie.c.actors.first_name,Movie.c.actors.last_name,),).where(Movie.c.title=='Blade Runner 2049').build())delete=Movie.delete.where(Movie.c.title=='Blade Runner 2049').build()decade=(Movie.c.year//10).label('decade')group=Movie.group().using(decade).by(decade).build()client.query(insert.query,**insert.context)result=client.query(select.query,**select.context)movies_by_decade=client.query(group.query,**group.context)client.query(delete.query,**delete.context)StatusQueries:selectnested shapesfilters for nested shapesorder by for nested shapeslimit/offset for nested shapesaggregations for nested shapesfunction callscomputed fieldsfiltersfilter by nested pathslimit & offsetorder bybacklinkssubqueriespolymorphic fieldslink properties(@notation)detachedgroupcolumnsusingbyfunction callsupdatefunction callsnested queriesdeletedelete without filtersfunction callslimit & offsetorder byinsertnested insertsconditional insertsidempotent insertselect-or-insertfunction callspositional argumentskeyword argumentswith blockwith literalwith subquerywith module + closurewith x := subquery select xwith x := subquery group xwith x := subquery update xwith x := Type.columnif statementsglobalsfor statementsunion statementsqueries without models, like select [1,2,3]Types:type castscal::date_durationcal::relative_durationstd::arraystd::jsonstd::rangestd::setstd::tuplecal::local_datecal::local_datecal::local_datetimecal::local_timestd::bigintstd::boolstd::bytesstd::datetimestd::decimalstd::durationstd::float32std::float64std::int16std::int32std::int64std::strstd::uuidFunctionscalmathstdsys
Package: elgin
Monitoramento ElginBiblioteca criada espeficiamente para ser utilizada para os processos do cliente Elgin.InstalaçãopipinstallelginComo Usar ?Para inicar o processo de monitoramento é preciso importar as seguintes classes:fromelgin.monitoramentoimportMonitoramento,Level,Statusapós importar as classes de Monitoramento , Level e Status, podemos dar inicio monitoramento do processo da seguinte forma:#Definindo variavies inicias.environment='dev'nome_processo='nome_teste_01'grupo_responsavel=1#(1: Deal, 2: Elgin e 3:Ambos)# Instanciando o objeto de monitoramentolog=Monitoramento(environment,processo,grupo_responsavel)try:# Chamando modulo que inicia a execucao.log.inicia_execucao()# Chamada do modulo que registra as etapas do processo.log.log(Level.INFO.value,'Testando Etapa imaginaria 01')log.log(Level.INFO.value,'Testando Etapa imaginaria 02')log.log(Level.INFO.value,'Testando Etapa imaginaria 03')# Forcando um erro para envio de alertas de erro.x=1/0exceptExceptionase:# Chamada do modulo resgistro das etapas e informando o erro utilizando a lib "traceback"log.log(Level.ERROR.value,traceback.format_exc())# Chamando modulo para finalizar o processo.log.finaliza_execucao(Status.ERRO.value,f'Erro no processo{processo}, verificar tabela de log.')# Chamando modulo responsavel por enviar os alertar via Teams e Email para os responsaveis.log.envia_alertas(Status.ERRO.value,Level.WARNING.value,traceback.format_exc())raisee
Package: elhub-python-sdk
Non official Python SDK for ElHub APIWelcome to thenon officialOpen Source Python SDK for ElHub API.The objective is to create an SDK that will improve the speed and quality of the development against the ElHub API,
supported by the community.We are at a very early stage of development, we welcome all the contributions in any kind, please have a look
at the following if you are interested.ContributingDocumentation:https://bkkas.github.io/elhub-python-sdkGitHub:https://github.com/bkkas/elhub-python-sdkGitHub:https://github.com/bkkas/elhub-python-sdk/discussionsPyPI:https://pypi.org/project/elhub-python-sdk/LicenseLGPL-3.0CreditsThis package was created withCookiecutterand
thewaynerv/cookiecutter-pypackageproject template.
Package: eli
eliEmacs Lisp runtime interface for Python.WARNING: This repo is in development. It was automatically generated withmkpylib. If you're reading this message, it means that I use this repo for my own purposes right now. It might not do anything at all; the default functionality isprint('TODO').If you really want to try it out, feel free. I recommend reading through the code and commit history to see if it does what you need, orask mefor status updates.Stay tuned!Quickstartpython3 -m pip install -U eli(That strange-looking setup command is because I've found it to be the most reliable. Thepipcommand often aliases to python 2, andpip3often installs to the wrong Python package directory.)Once it's installed, you can do this:importeliprint('TODO')... which will print this:TODOLicenseMITContactA library byShawn Presser. If you found it useful, please considerjoining my patreon!My Twitter DMs are always open; you shouldsend me one! It's the best way to reach me, and I'm always happy to hear from you.Twitter:@theshawwnPatreon:https://www.patreon.com/shawwnHN:sillysaurusxWebsite:shawwn.com
Package: elia-chat
EliaA terminal ChatGPT client built with TextualNoteElia is still a work in progress. How far will I go with this? I have no idea...QuickstartInstall Elia withpipx, set your OpenAI API key environment variable,
and start the app:pipxinstallgit+https://github.com/darrenburns/eliaexportOPENAI_API_KEY="xxxxxxxxxxxxxx"eliaWiping the Chat HistoryChat history is stored in a SQLite database alongside the Elia application.
To wipe the chat history, simply run the db reset command:eliaresetChanging the Chat DirectiveBy default, Elia's conversations with ChatGPT are primed with a
directive for the GPT model:You are a helpful assistant.This can be changed by setting theELIA_DIRECTIVEenvironment variable before
starting a new conversation. A directive is set for the lifetime of a conversation.exportELIA_DIRECTIVE="You are a helpful assistant who talks like a pirate."eliaLaunching Directly into a ConversationeliachatwritepythoncodetodetectapalindromeProgress updatesJune 2023Messages are now tokenized and you can see how messages are split into tokens using the "Message Details" modal.May 29th 2023SQLite/SQLModel chosen for persistence.
Conversations can be imported from ChatGPT and they'll be displayed in the sidebar.
Selecting a conversation in the sidebar will load it into the main window.
Raw markdown can be displayed.https://github.com/darrenburns/elia/assets/5740731/0a348cc9-4fab-4266-95f6-d04143b70e7bMay 24th 2023Much of the core UI is in place, with some placeholders. No persistence yet, but I've begun to explore it.https://github.com/darrenburns/elia/assets/5740731/bbdbb2b4-f571-40e4-b181-525e8e9de6f3May 4th 2023Initial proof of concept.https://user-images.githubusercontent.com/5740731/236323494-3d3ab56a-673b-45a9-b501-830926ca8fea.mov
Package: elia-py
elia-pySimple Python 3 client for the Elia Open Data API 🤖For more information about the Elia Open Data Platform, please refer tohttps://opendata.elia.be/.Installationpipinstallelia-pyUsageimportdatetimeasdtfromeliaimporteliaconnection=elia.EliaPandasClient()start=dt.datetime(2024,1,1)end=dt.datetime(2024,1,15)df=connection.get_imbalance_prices_per_quarter_hour(start=start,end=end)NotesThis work has been inspired by a similar projectentsoe-pyavailable onGitHub.
Package: elias
Experiment Library and Setup (ELIAS)1. Main functionalitiesConfigclassIntuitive dataclass extension that addresses issues commonly encountered in research projects.
AConfighas the following features:Easilypersistableto a file (JSON or YAML)Stored configs arehuman-readable and editableSpecial support for storingenumsandinheritance structuresBackward compatibilityto allow loading older persisted configsTODO: Overview image of benefits of using Config over regular dataclassPhilosophy for stored config file types:Everything should be human-readableJSON for configs that may be viewed often (statistics, preprocessing/training configs, evaluation results)YAML for configs that have to be edited (run specifications)Experiment Workflow UtilitiesTo speed up the experimentation process with utility classes theeliaslibrary assumes the following workflow:StageInputOutputUtilityData PreprocessingProcessing ConfigurationRaw DataPreprocessed Data (.p, .p.gz, .json, .npy, ...)Data Statistics (stats.json)Preprocessing Config (config.json)DataFolder -> DataManagerTraining/FittingPreprocessed DataHyperparametersModel checkpointsHyperparameter configsModelManager -> RunManagerEvaluationTrained modelEvaluation ConfigEvaluation ConfigEvaluation ResultsRunManager -> EvaluationManagerManual AnalysisAny model/dataPlots, statistics, imagesAnalysisFolder -> AnalysisManager
Package: elias-fano
Python package implementing an educational version of Elias-Fano succint structure. This package is not thought for efficient data storing as the superior and inferior data vectors are implemented as strings to show the results step by step for educational purposes.How do I install this package?As usual, just download it using pip:pipinstallelias_fanoTests CoverageSince some software handling coverages sometime get slightly different results, here’s three of them:Usage examplefromelias_fanoimportEliasFanoef=EliasFano([0,0,0,5,6,8,12])ef.selection(3)# 5ef.rank(6)# 4
Package: eliater
EliaterA high level, end-to-end causal inference workflow.💪 Getting StartedTODO show in a very small amount of space theMOSTuseful thing your package can do.
Make it as short as possible! You have an entire set of docs for later.🚀 InstallationThe most recent release can be installed fromPyPIwith:$pipinstalleliaterThe most recent code and data can be installed directly from GitHub with:$pipinstallgit+https://github.com/y0-causal-inference/eliater.git👐 ContributingContributions, whether filing an issue, making a pull request, or forking, are appreciated. SeeCONTRIBUTING.mdfor more information on getting involved.👋 Attribution⚖️ LicenseThe code in this package is licensed under the MIT License.🍪 CookiecutterThis package was created with@audreyfeldroy'scookiecutterpackage using@cthoyt'scookiecutter-snekpacktemplate.🛠️ For DevelopersSee developer instructionsThe final section of the README is for if you want to get involved by making a code contribution.Development InstallationTo install in development mode, use the following:$gitclonegit+https://github.com/y0-causal-inference/eliater.git
$cdeliater
$pipinstall-e.🥼 TestingAfter cloning the repository and installingtoxwithpip install tox, the unit tests in thetests/folder can be
run reproducibly with:$toxAdditionally, these tests are automatically re-run with each commit in aGitHub Action.📖 Building the DocumentationThe documentation can be built locally using the following:$gitclonegit+https://github.com/y0-causal-inference/eliater.git
$cdeliater
$tox-edocs
$opendocs/build/html/index.htmlThe documentation automatically installs the package as well as thedocsextra specified in thesetup.cfg.sphinxplugins
liketexextcan be added there. Additionally, they need to be added to theextensionslist indocs/source/conf.py.📦 Making a ReleaseAfter installing the package in development mode and installingtoxwithpip install tox, the commands for making a new release are contained within thefinishenvironment
intox.ini. Run the following from the shell:$tox-efinishThis script does the following:UsesBump2Versionto switch the version number in thesetup.cfg,src/eliater/version.py, anddocs/source/conf.pyto not have the-devsuffixPackages the code in both a tar archive and a wheel usingbuildUploads to PyPI usingtwine. Be sure to have a.pypircfile configured to avoid the need for manual input at this
stepPush to GitHub. You'll need to make a release going with the commit where the version was bumped.Bump the version to the next patch. If you made big changes and want to bump the version by minor, you can
usetox -e bumpversion -- minorafter.
Package: elib-config
READMEelib_config[![<3 Open Source](https://badges.frapsoft.com/os/v3/open-source-200x33.png?v=103)](https://github.com/ellerbrock/open-source-badges/)[![Cheese shop](https://img.shields.io/pypi/status/elib_config.svg)](https://pypi.python.org/pypi/elib_config/)
[![License](https://img.shields.io/github/license/etcher-be/elib_config.svg)](https://github.com/etcher-be/elib_config/blob/master/LICENSE)
[![Appveyor build](https://img.shields.io/appveyor/ci/132nd-etcher/elib-config/master.svg?label=master)](https://ci.appveyor.com/project/132nd-etcher/elib-config)
[![Codacy grade](https://img.shields.io/codacy/grade/58cb5d65f3644ac790d8463749a350b6.svg)](https://www.codacy.com/app/etcher-be/elib_config)
[![Codacy coverage](https://img.shields.io/codacy/coverage/58cb5d65f3644ac790d8463749a350b6.svg)](https://www.codacy.com/app/etcher-be/elib_config)
[![Requires.io](https://requires.io/github/etcher-be/elib_config/requirements.svg?branch=master)](https://requires.io/github/etcher-be/elib_config/requirements/?branch=master)
[![CodeClimate maintainability](https://img.shields.io/codeclimate/maintainability/etcher-be/elib_config.svg)](https://codeclimate.com/github/etcher-be/elib_config)
[![BetterCodeHub](https://bettercodehub.com/edge/badge/etcher-be/elib_config?branch=master)](https://bettercodehub.com/results/etcher-be/elib_config)
[![OSI Best Practices](https://bestpractices.coreinfrastructure.org/projects/2145/badge)](https://bestpractices.coreinfrastructure.org/projects/2145)
[![CodeFactor](https://www.codefactor.io/repository/github/etcher-be/elib_config/badge)](https://www.codefactor.io/repository/github/etcher-be/elib_config)[![Throughput Graph](https://graphs.waffle.io/etcher-be/elib_config/throughput.svg)](https://waffle.io/etcher-be/elib_config/metrics/throughput)My own poor little attempt at a config lib.I want configuration to live in a TOML file (maybe PEP518 will take off, and I’d like to give TOML a try anyway).I also want config values set in the OS environment to take precedence.I want config values to exist in a hierarchic tree.I want config values to be type-checked, and casted to the correct type at runtime. Obviously, those types must be
checked.I want config values with default values, and config values without. Those without should be considered “mandatory”
config values.All of those checks must raise corresponding exceptions.Finally, since configuration evolves with the package, it’s hard to keep track of. Therefore, I want the config
package to create an example config file based on the config values that have been declared, and nothing else.This package does about all that, hopefully in a consistent way.
Package: elib-miz
README======elib_miz====MIZ file lib[![<3 Open Source](https://badges.frapsoft.com/os/v3/open-source-200x33.png?v=103)](https://github.com/ellerbrock/open-source-badges/)[![Cheese shop](https://img.shields.io/pypi/status/elib_miz.svg)](https://pypi.python.org/pypi/elib_miz/)[![License](https://img.shields.io/github/license/etcher-be/elib_miz.svg)](https://github.com/etcher-be/elib_miz/blob/master/LICENSE)[![Appveyor build](https://img.shields.io/appveyor/ci/132nd-etcher/elib_miz/master.svg?label=master)](https://ci.appveyor.com/project/132nd-etcher/elib_miz)
Package: elib-run
README======elib_run====Simple wrapper around the Sarge library to run sub-processes[![<3 Open Source](https://badges.frapsoft.com/os/v3/open-source-200x33.png?v=103)](https://github.com/ellerbrock/open-source-badges/)[![Cheese shop](https://img.shields.io/pypi/status/elib_run.svg)](https://pypi.python.org/pypi/elib_run/)[![License](https://img.shields.io/github/license/etcher-be/elib_run.svg)](https://github.com/etcher-be/elib_run/blob/master/LICENSE)[![Appveyor build](https://img.shields.io/appveyor/ci/132nd-etcher/elib_run/master.svg?label=master)](https://ci.appveyor.com/project/132nd-etcher/elib_run)
Package: elibs-epython
EPythonThe purpose of this library is to provide helper abstractions on top of well known libraries.
The idea is to harden existing technologies and build easy-to-use wrappers for incorporation
in test or production python code.OverridesThere are instances when retry logic needs to be tweaked to make tests more performant, or
more hardened. For this purpose, there are environmental variables that can be set to change
the retry behavior.Below are the current overrides that are available:Env VariableDefaultDescriptionEPYTHON_LOG_LEVELINFOControl the epython logging levelEPYTHON_LOG_FILENoneSet this to have all epython output logging to a fileEPYTHON_REQUEST_ID"epython-poke"Set this to control what X-Request-ID is presented using pokeEPYTHON_REQUEST_INTERVAL5The length of time between subsequent request retriesEPYTHON_REQUEST_RETRIES5The number of request retries to makeEPYTHON_SSH_KEYNonePrivate SSH key to useEPYTHON_SSH_RETRIES3The number of times to retry an ssh login operationEPYTHON_SSH_RETRY_INTERVAL5The time to wait before a new ssh attemptRequests Headers:EPYTHON_REQUEST_ID defaults to "epython-poke"POKE_HEADERS = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Request-ID": EPYTHON_REQUEST_ID
}
Package: elib-wx
README======elib_wx====Weather management lib for DCS[![<3 Open Source](https://badges.frapsoft.com/os/v3/open-source-200x33.png?v=103)](https://github.com/ellerbrock/open-source-badges/)[![Cheese shop](https://img.shields.io/pypi/status/elib_wx.svg)](https://pypi.python.org/pypi/elib_wx/)[![License](https://img.shields.io/github/license/etcher-be/elib_wx.svg)](https://github.com/etcher-be/elib_wx/blob/master/LICENSE)[![Appveyor build](https://img.shields.io/appveyor/ci/132nd-etcher/elib_wx/master.svg?label=master)](https://ci.appveyor.com/project/132nd-etcher/elib_wx)
Package: elicited
ElicitedHelper tools to construct probability distributions built from expert elicited data for use in monte carlo simulations.Credit to Brett Hoover, packaging by @magooUsagepipinstallelicitedimportelicitedaseelicitedis just a helper tool when using numpy and scipy, so you'll need these in your code.importnumpyasnpfromscipy.statsimportpoisson,zipf,beta,pareto,lognormLognormalSeeOccurance and Applicationsfor examples of lognormal distributions in nature, andelicited technical docs.Expert: Most customers hold around $20K (mode) but I could imagine a customer with $2.5M (max)mode=20000max=2500000mean,stdv=e.elicitLogNormal(mode,max)asset_values=lognorm(s=stdv,scale=np.exp(mean))asset_values.rvs(100)ParetoThe 80/20 rule. SeeOccurance and Applications, andelicited technical docs.Expert: The legal costs of an incident could be devastating. Typically costs are almost zero (val_min) but a black swan could be $100M (val_max).b=e.elicitPareto(val_min,val_max)p=pareto(b,loc=val_min-1.,scale=1.))PERTSeePERT Distribution, andelicited technical docs.Expert: Our customers have anywhere from $500-$6000 (val_min/val_max), but it's most typically around $4500 (val_mod)PERT_a,PERT_b=e.elicitPERT(val_min,val_mod,val_max)pert=beta(PERT_a,PERT_b,loc=val_min,scale=val_max-val_min)Zipf'sSeeApplications, andelicited technical docs.Expert: If we get sued, there will only be a few litigants (nMin). Very rarely it could be 30 or more litigants (nMax), maybe once every thousand cases (pMax) it would be more.nMin=1nMax=30pMax=1/1000Zs=e.elicitZipf(nMin,nMax,pMax,report=True)litigants=zipf(Zs,nMin-1)litigants.rvs(100)Reference: Other Useful ElicitationsListed as a courtesy, these distributions are simple enough to elicit data into directly without a helper function.UniformA "zero knowledge" distribution where all values within the range have equal probability of appearing. Similar torandom.randint(a, b)Expert: The crowd will be between 50 (min) and 500 (max) due to fire code restrictions and the existing residents in the building.fromscipy.statsimportuniformmin=50max=500range=max-mincrowd_size=uniform(min,range)crowd_size.rvs(100)PoissonExpert: About 3000 Customers (average) add a credit card to their account every quarter.fromscipy.statsimportpoissonaverage=3000upsells=poisson(average)upsells.rvs(100)
Package: elide-text
elide-textA very simple text truncating function.Installpipinstallelide-textUsagefromelidetextimportelide_texttext=elide_text("A brand new tool devoted to complex neuron models",25)print(text)#=> A brand new tool devoted…text=elide_text("🍺📰📚🍮🌵📴🎯🌿👂👓👌",6)print(text)#=> 🍺📰📚🍮🌵…ContributingContributions are always welcome.SeeContributing.DeveloperWilliam BelleLicenseThe MIT License (MIT)
Package: elifecleaner
elife-cleanerClean and transform article submission files into a consistent formatRequirementsInstallimagemagick-devandghostscriptin order forwandPython module to open PDF files. Also, the imagemagickpolicy.xmlfile must be configured to allow reading of PDF files.ConfigurationTo use a YAML file of assessment terms in theasessment_terms.pymodule, set the constantASSESSMENT_TERMS_YAMLin the module to be the path to the YAML file on disk. The sample fileassessment_terms.yamlin the code repository is not distributed as part of the library.LicenseLicensed underMIT.
Package: elifedbtools
elife-db-toolsTools for article and production data storageInstall for usersFor now, install directly from git$pipinstallgit+https://github.com/elifesciences/elife-db-tools.git@masteror you can add it to your project’s requirements.txt filegit+https://github.com/elifesciences/elife-db-tools.git@masterTestingLettucefor testing.$cdelifedbtools/tests$lettuceLicenseThe MIT License
Package: elife-dummy-python-release-project
dummy python release projectThis is adummyproject that exists to test changes to the release process for Python projects at eLife.Itshouldillustrate how to incorporate a Python project into the Jenkins release process.It isnota template for Python projects at eLife. Projects come in all shapes and sizes.usagecreate a new branchbump the version number insetup.pycommit, push, open a PRmerge PRCI will then move the changes intoapproved, thenmaster, then detect that a version change has occured and do a
Pypi release.
Package: elifetools
elife-toolsTools for using article data in PythonSupportsPython >=3.5Non-Python dependencieslibxml2 (Ubuntu, Arch)Install for usersInstall viapip:$pipinstallelifetoolsYou might need to install libxml manually first$sudoSTATIC_DEPS=truepipinstalllxml==3.4.1To install the latest version directly from git$pipinstallgit+https://github.com/elifesciences/elife-tools.git@masteror you can add it to your project’s requirements.txt filegit+https://github.com/elifesciences/elife-tools.git@masterInstall for developersClone the git repoMake a virtualenv (optional)Then$pythonsetup.pyinstallExample usage>>>fromelifetoolsimportparseJATSasparser>>>soup=parser.parse_document('tests/sample-xml/elife-kitchen-sink.xml')>>>print(parser.doi(soup))More code examples can be found intests/basic_usage_test.pyTestingYou can run the full automated test suite from the base folder with:$python-munittestdiscovertestsor you can run tests with coverage:$coveragerun-munittestdiscovertestsand then view the coverage report:$coveragereport-mLicenseThe MIT License