Saravanan666/pypi-org huggingface dataset:
Package: epdx
EPDxEPDx is a library for parsing EPD files into a common exchange format.The library is written in Rust, to allow for cross-language package distribution.
Currently, we support Javascript/Typescript, Python and Rust.EPDx is part of a larger project of making life cycle assessments more accessible and transparent to building
professionals.Read more about ouroverall goalILCD+EPDThe ILCD+EPD format is a digital format for EPDs.
Provided in either XML or JSON.Initially EPDs were provided as PDFs.
That is not very convenient for automation processes and requires large amounts of manual work to process.The ILCD (International Life Cycle Data System) is a data format developed by the European Commission to give LCA
practitioners a common digital format for life cycle assessments.
In order to integrate EPD specific information (e.g. scenarios, modules, type of data), extensions were added to the
ILCD format. The resulting format got named ILCD+EPD format.The ECO Platform and Ökobau uses the format to store and expose EPDs through
thesoda4LCAAPI.
The API makes it possible for everyone to search and download tons of EPDs to be used free of charge.The ILCD+EPD format is a node based format. It means that each EPD consists of several layers of nodes that contain
different information.
The first node contains a summary of the EPD, with references to the nodes.
By drilling down the tree of nodes, you have access to more and more specific information, such as EPD manufacturer,
functional unit(s), etc.Read more about ILCD at theEuropean Platform on Life Cycle AssessmentDocumentationEPDx can have available packages for Javascript, Python and Rust.To get started head over to ourdocumentation.Install NPM PackagenpminstallepdxInstall Python PackagepipinstallepdxInstall Rust CratecargoaddepdxContributeInstall RustHead over to Rust's installationpageRun Testscargotest--packageepdx--targetx86_64-unknown-linux-gnuRun Python Testsmaturindevelop--extrastests--targetx86_64-unknown-linux-gnusource.venv/bin/active.cdpackages/python
pytesttests/Build Documentationmaturindevelop--extrasdoc,code-gen--targetx86_64-unknown-linux-gnu
mkdocsdevelopBuild JS Packagewasm-packbuild--featuresjsbindings
mvpkg/epdx*packages/javascript/src
Package: epeg-cffi
DescriptionAn IMMENSELY FAST JPEG thumbnailer library API.Why write this? It’s a convenience library API to using libjpeg to load
JPEG images destined to be turned into thumbnails of the original, saving
information with these thumbnails, retreiving it and managing to load the
image ready for scaling with the minimum of fuss and CPU overhead.This means it’s insanely fast at loading large JPEG images and scaling them
down to tiny thumbnails. It’s speedup will be proportional to the size
difference between the source image and the output thumbnail size as a
count of their pixels.It makes use of libjpeg features of being able to load an image by only
decoding the DCT coefficients needed to reconstruct an image of the size
desired. This gives a massive speedup. If you do not try and access the
pixels in a format other than YUV (or GRAY8 if the source is grascale) then
it also avoids colorspace conversions as well.epeg source:https://github.com/mattes/epegThis module provides Python bindings via CFFI.UsageIn [1]: import epeg
In [2]: thumbnail_data = epeg.scale_image(
    fname,   # Path to source JPEG image
    width,   # Desired thumbnail width
    height,  # Desired thumbnail height
    quality  # Desired quality, default: 75)BenchmarksWandIn [1]: from wand.image import Image
In [2]: %timeit Image(filename='/tmp/007.jpg'); img.sample(800, 600); _ = img.make_blob('jpeg')
1 loops, best of 3: 264 ms per loopPIL/PillowIn [1]: from PIL import Image
In [2]: %timeit Image.open('/tmp/007.jpg').resize((800, 600)).save('/tmp/foo_thumb.jpg')
1 loops, best of 3: 234 ms per loopepegIn [1]: import epeg
In [2]: %timeit epeg.scale_image('/tmp/007.jpg', 800, 600)
10 loops, best of 3: 101 ms per loop
Package: epflldap
epflldapInstallationpip install dist/epflldap-<version>-py3-none-any.whlBuild new versionMakes changesChange the version in_version.pypython setup.py bdist_wheelBasic usages1. Get and save locally the data of EPFL Ldapimportepflldapdata=epflldap.db()data.to_pickle()This will create locally aldap_epfl.picklefile.To load the local data:importepflldapdata=epflldap.db(read_from_pickle=True)2. Get users data onlyimportepflldapusers=epflldap.db(read_from_pickle=True).get_users()You will get aUsersobject.3. Filter users dataFilter by groupimportepflldapusers=epflldap.db(read_from_pickle=True).get_users()users_filtered=users.filter_by_group('webmasters')You will get an otherUsersobject with only the filtered data. Available
groups are here:https://groups.epfl.ch/Filter by statusimportepflldapusers=epflldap.db(read_from_pickle=True).get_users()users_filtered=users.filter_by_status(['Personnel'])Possible status are:PersonnelEtudiantHÃ´teHors EPFLSeveral entries don't have a status.Filter by unitimportepflldapusers=epflldap.db(read_from_pickle=True).get_users()users_filtered=users.filter_by_unit('SISB')You will get all the users from the SISB team.Filter by schoolimportepflldapusers=epflldap.db(read_from_pickle=True).get_users()users_filtered=users.filter_by_school('CDH')You will get all the users from the CDH school.Filter by sciperimportepflldapusers=epflldap.db(read_from_pickle=True).get_users()users_filtered=users.filter_by_sciper(['sciper1','sciper2'])Filter the list of users with the given list of sciper id.In order to get information about a specific user you can:importepflldapepflldap.db(read_from_pickle=True).get_users().filter_by_sciper(['sciper1']).data[0].get_info()You will get a Pandas Series with information about the person with the
given sciper.Keep only first accredimportepflldapusers=epflldap.db(read_from_pickle=True).get_users()users_filtered=users.filter_by_first_accred()You will get only the main accreditation of each user.4. Get all the email addresses of aUsersobjectimportepflldapusers=epflldap.db(read_from_pickle=True).get_users()users_filtered=users.filter_by_group('webmasters')users_filtered.get_emails()You will get all the email addresses of the group 'webmaster'. If you want a txt
file, you can add an argument:users.get_emails(output='addresses.txt')5. Get Excel file with personal information dataimportepflldapusers=epflldap.db(read_from_pickle=True).get_users()users_filtered=users.filter_by_group('webmasters')users_filtered.to_excel(webmasters.xlsx)This will create a xlsx file with personal information about the users.
Package: epfl-ldap
<!-- markdownlint-disable --><h1 align="center" style="margin:1em">epfl-ldap</h1><h4 align="center">Python toolkit for EPFL</h4><p align="center"><a href="https://travis-ci.org/epfl-idevelop/epfl-ldap"><img src="https://travis-ci.org/epfl-idevelop/epfl-ldap.svg?branch=master"alt="Travis"></a></p><br>## Overviewepfl-ldap is an amazing toolkit that provides basics functionalities to EPFL* LDAP search* LDAP authenticate* etc## License[MIT license - Copyright (c) EPFL](./LICENSE)## RequirementsPython (2.7, 3.5)## Installation```pip install epfl-ldap```## How testTo run tests locally :```pytest```> You must create enviroment variables for authenticate```export EPFL_LDAP_TEST_CORRECT_USERNAME=kermitexport EPFL_LDAP_TEST_CORRECT_PWD=xxxxxx```To run tests with coverage in your current python version :```pytest --cov=epflldap```To run mock tests in all python version :```tox```## How check PEP8To check if the python code is PEP8 compliant :```flake8 --max-line-length=120```## How to publish a new version* Update the CHANGELOG.md file* Update the version of this package. See __init__.py file* Generate a new distribution```python setup.py sdist```a new *.tar.gz file is created in dist/* Test this new version* Push all changes on github (with tests, docs, etc)* Publish this new version on pypi```twine upload dist/*```## TODO- [x] Config flake8 to check PEP8- [x] Config pytest- [x] Config pytest with coverage- [x] Config tox to support many python versions- [x] Config mock tests- [x] Config travis CI- [ ] Write doc and publish it on http://docs.readthedocs.io- [x] LDAP search- [x] Define CONSTANTS- [x] ldap_server = 'ldap.epfl.ch'- [x] ldap_base = "o=epfl,c=ch"- [x] User can define environment variable to override constants- [x] LDAP authenticate
Package: epflpeople
epfl-people-apiThis package provides useful features to access the EPFL People API.This is an unofficial package.ChangelogAll notable changes to this project will be documented in this file.The format is based onKeep a Changelog,
and this project adheres toSemantic Versioning.0.0.7- 2021-11-20ChangedFixed bugged ExceptionExposed Sciper checker function0.0.6- 2021-10-21ChangedFixed search URL0.0.5- 2021-10-01ChangedFixed bug where Accreditations would not display correctly numbers0.0.4- 2021-09-17AddedColoring of the outputNew utility calledepflpeople_prettythat displays the search output with colorsAdded a MANIFEST.in to ensure that the VERSION file is packagedAdded new error classes to deal with different scenariosAdded some information and an input field to make a search on the cliChangedChanged how version is found in deploy.pyChanged long_description to include CHANGELOG on PyPIUpdated project urls to point to useful places (GitHub, Documentation, CHANGELOG)RemovedRemoved command line arguments in __main__.py as they are not supported0.0.1- 2021-09-19AddedAdded deploy.py script to aid deploying on PyPIAdded shebang at beginning of setup.py to enable running on cliChangedChanged project url to point to thegithub repositoryChanged LICENSE to be consistent, now using MIT0.0.0- 2021-09-19AddedAdded epflpeople packageAdded setup.py scriptConfigured repo and projectAdded a LICENSEAdded base information in README.md
Package: epfml-utils
EPFML UtilitiesInternal tools for the MLO lab of EPFL.Installation❯pipinstallepfml-utilsAdd environment variables to your~/.bashrcor equivalent file:exportEPFML_STORE_S3_ACCESS_KEY=""exportEPFML_STORE_S3_SECRET_KEY=""exportEPFML_STORE_S3_BUCKET=""exportEPFML_LDAP=""# (Get those values from a friend.)exportEPFML_STORE_S3_ENDPOINT="https://s3.epfl.ch"and make sure they are loaded:source~/.bashrcecho$EPFML_LDAP# Check if this prints your username.Key-value storeThis key-value store can help to transfer information between machines.
Do not expect this to be fast or high-volume.Don'tuse this 100's of times in a training script.Command-line usageOn one machine:❯epfmlstoresetmy_name"Bob"On any other machine:❯epfmlstoregetmy_name
BobPython usageimporttorchimportepfml.storeepfml.store.set("my_data",{"name":"Bob","lab":"MLO"})epfml.store.set("tensor",torch.zeros(4))print(epfml.store.get("tensor"))epfml.store.unset("tensor")print(epfml.store.pop("my_data"))# get and deleteTransporting code between machinesPackingUpload a copy of the current working directory:❯epfmlbundlepack
📦Packagedandshipped.
⬇️Unpackwith`epfmlbundleunpackmlotools_20230202_a205e830-o.`.To exclude (large / non-code) files from the package, add a config file to the directory❯epfmlbundleinit
📦Defaultconfigfilewrittento`/Users/vogels/epfl/mlotools/.epfml.bundle.toml`.and customize it to your needs.UnpackingYou can download the code into a directory:❯epfmlbundleunpackmlotools_20230202_a205e830-osome_directoryOr you can run a training script, or any other shell command, in a temporary check-out of the package:❯epfmlbundleexecmlotools_20230202_a205e830--du-sh
🏃Runninginsideatmpcloneofpackage`mlotools_20230202_a205e830`.
160K.ContributingThis repository is meant to be a collection of independent tools that each serve a simple well-defined purpose.If you want to improve any of the tools in this repo, or contribute new tools. Take the following steps:Clone this repository.Initialize pre-commit:cd epfml-utils && pre-commit install(pip install pre-commit). This runs a couple of checks before you commit to keep this repo clean.Ask someone else to scrutinize your contributions. They can help you to improve the API and catch bugs. You can also check these very niceAPI design principlesfor tips.To release a new version on PyPi, just increase the version number inpyproject.yomland commit to Github.
Package: epfs
EPFSepfs is a Django sharing file.Quick start1.Add "epfs" to your INSTALLED_APPS in your project setting.py file:INSTALLED_APPS = [
...,
'epfs',
]2.Include the epfs URLconf in your project urls.py like this:path('epfs/', include('epfs.urls')),3.Runpython manage.py makemigrations(optional) andpython manage.py migrateto create the epfs models.4.Visithttp://127.0.0.1:8000/epfs/to share files.
Package: epg-downloader
EPG DownloaderDownload files from EPGStationFree software: GNU General Public License v3Documentation:https://epg-downloader.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2019-06-18)First release on PyPI.
Package: epgsnoop
epgsnoop is a python package which wraps the dvbsnoop program
and generates XMLTV data. The data is usable for MythTV and
other PVR systems which support the XMLTV data format.epgsnoop is only currently known to be in use in New Zealand.
Many of the processors are possibly currently targetted to the
EIT data from there. Corrections and additions are welcome.
Package: eph
ReadmeTheephpackage provides some useful functions, classes and tools
toretrieve,parseandmanipulateephemerides
in anastropy-compatible way.Seeeph-howto(jupyter notebook) for more info.Basic Usageimportephreq=eph.JplReq()# create the requestreq.read('eph.ini',section='jplparams')# read parameters from 'jplparams' section in 'eph.ini'req.set({'COMMAND':'venus','START_TIME':'2007-11-17','STOP_TIME':'2017-4-22''STEP_SIZE':'10d'})# set parameters from dictionaryreq['OBJ_DATA']=False# set parameter dict-likereq.csv=True# set parameter as attributesreq.set(TABLE_TYPE='V',VEC_LABELS=False,VEC_TABLE=1)# set position vectors outputres=req.query()# perform the request obtaining a response from Jpl Horizons servicee=res.parse()# parse the ephemeris in an astropy QTablefromastropy.ioimportasciiascii.write(e,format='csv')# write output dataThe content ofeph.inican be something like this
(seeftp://ssd.jpl_process.nasa.gov/pub/ssd/horizons_batch_example.longfor a complete description of JPL parameters)[jplparams]MAKE_EPHEM=YESREFERENCE_PLANE=ECLIPTICREF_SYSTEM=J2000OUT_UNITS=AU-DShortcutsephpackage defines also some useful shortcut functions to easily access Jpl Horizons data.
Instead of building a JplReq and get back a JplRes to parse, you can get an astropy QTable withfromephimport*fromdatetimeimportdatetimee=get('venus',dates=['2000-1-1',datetime.now()])Shortcut functions accept also one-date queries (non-interval) and multiple target objects.
Behind the scenesephmakes multiple calls to JPL Horizons system and merge the results in one
table. In this case non-key (used to join) columns are renamed with a prefix referring to the object
(e.g. column X for object venus becomes venus_X).
Meta info are listified and collapsed in a single value only if they take the same value for all objects.fromephimport*e=get(['venus','mars'],dates='2017-04-22')Dates has datetime.now() as default value so it can be omitted if you want present data.fromephimport*e=get(['venus','mars'],table_type='V',vec_table=1)# present vector positional data for Venus and MarsThere are other shortcut functions likevec,pos,vel,elem,obs,radec,altaz, etc.. to
simplify parameter settings.For example, if you want vectors, typee=vec('venus',dates=['2018-1-1','2020-1-1']).Command line toolephpackage also provides a command line tool:$ephvenus--dates2007-11-072017-04-22This command gives you an ephemeris table of Venus starting from 2007-11-17 to 2017-4-22.
You can also change the reference frame, the time-step size, the output etc..
through the options provided or setting up a config file. Check available options typing$eph--help
Package: ephemeral
ephemeral - Self-destructing messagesEphemeral is a web application for sharing short messages. Messages can be opened
only once, giving an instant feedback to recipient on whether the message was
compromised(read by someone else) or not. This makes the app a reasonably secure,
and convenient way to share secrets.HighlightsSimple, easy-to-audit codeMessages are encrypted at restInstallingpipinstallephemeralAfter installation you can use theephemeral.shcommand to start the
application (see below).RunningAlways put this application behind an HTTPS-terminating reverse proxy when exposing to
public networks!Ephemeral uses Redis as the data store. Assuming Redis is running onlocalhost,EPHEMERAL_REDIS_HOST=localhostEPHEMERAL_SECRET_KEY=hunter2ephemeral.sh0.0.0.0:8080will start the application listning on port 8080 on all network interfaces.Point your browser athttp://localhost:8080/addto add a message.DevelopingPrerequisites:Python 3PoetryInitialize a virtualenv with dev dependencies installed:makedevelopRunning unit-testsmaketestStarting a development instance of the applicationStart the application in development mode with debugging enabled:makedev-serverStarting/stopping a development Docker stackThe development Docker (Compose) stack includes Redis container and an application
container built from source.Prerequisites:Dockerdocker-composemakecleanbuild

makecontainer-image

makecompose-up

makecompose-psStop and destroy running stack:makecompose-downRunning E2E testsStart a stack and run Behave tests against it:makecompose-up

makee2e-test
Package: ephemeral-port-reserve
ephemeral-port-reserveSometimes you need a networked program to bind to a port that can't be hard-coded.
Generally this is when you want to run several of them in parallel; if they all
bind to port 8080, only one of them can succeed.The usual solution is the "port 0 trick". If you bind to port 0, your kernel will
find some arbitrary high-numbered port that's unused and bind to that. Afterward
you can query the actual port that was bound to if you need to use the port number
elsewhere. However, there are cases where the port 0 trick won't work. For example,
mysqld takes port 0 to mean "the port configured in my.cnf". Docker can bind your
containers to port 0, but uses its own implementation to find a free port which
races and fails in the face of parallelism.ephemeral-port-reserveprovides an implementation of the port 0 trick which
is reliable and race-free. You can use it like so:PORT="$(ephemeral-port-reserve)"
docker run -p 127.0.0.1:$PORT:5000 registry:2ephemeral-port-reserveis a utility to bind to an ephemeral port, force it into
theTIME_WAITstate, and unbind it.This means that further ephemeral port alloctions won't pick this "reserved" port,
but subprocesses can still bind to it explicitly, given that they useSO_REUSEADDR.
By default on linux you have a grace period of 60 seconds to reuse this port.
To check your own particular value:$ cat /proc/sys/net/ipv4/tcp_fin_timeout
60NOTE:By default, the port returned isspecificallyforlocalhost, aka127.0.0.1.
If you bind instead to0.0.0.0, you may encounter a port conflict. If you need to
bind to a non-localhost IP, you can pass it as the first argument.
Package: ephemeral-postgres
ephemeral-postgresephemeral-postgres is a python package for easily setting up, testing, and
finally tearing down postgres instances. It can be easily integrated in most
test suites but has been primarily used with pytest.Installationpipinstallephemeral-postgresExampleimportephemeral_postgresimportpsycopg2withephemeral_postgres.postgres()asuri:con=psycopg2.connect(uri)cur=con.cursor()cur.execute('select * from pg_database')forrowincur.fetchall():print(row)Alternatively, if you would like to run an external Postgres server, you can
override ephemeral_postgres from starting a new instance by setting the
environment variableEPHEMERAL_POSTGRES_URIaccordingly. For example:exportEPHEMERAL_POSTGRES_URI="postgresql://postgres:postgres@localhost:5432/postgres"python"import ephemeral_postgres; print(ephemeral_postgres.postgres()[0])"Developingpipinstall-e.[test]# run unit testspytest
Package: ephemeral-sh
ephemeral-shA one-task tracker in your terminal with a forgetful history.Ephemeral keeps track of a single task, and when it was started. Once you decide to track something new, the old task is forgotten.See your current task:ephemeralComplete your current task:ephemeral completeTrack a new task:ephemeral trackView your history:ephemeral historyClear your history:ephemeral clearAll actions are automatically persisted to the filesystem to keep the CLI and the data in sync.
Package: ephemere
# ephemereGet exoplanet RV signals from known planets using the NASA exoplanet Archive._ephemere_ uses [exofile](https://github.com/AntoineDarveau/exofile) to complement the
[NASA exoplanet Archive](https://exoplanetarchive.ipac.caltech.edu/) table. From
the parameters in this table, it generates RV signals as a function of time. It
can either use the main parameter value or generate random RV signals based on
the parameter uncertainties (assuming Gaussian uncertainties).See the [example script](extras/example.py) for an example of how _ephemere_ can
be used to generate RV signals.## InstallationTo install the latest release, use`shell python-mpip install ephemere `To install the development version, you can clone it from github and
install it with the following commands:`shell git clonehttps://github.com/vandalt/ephemere.gitcd ephemere python-mpip install-U-e".[dev]"`
Package: ephemetoot
🥳 ==> 🧼 ==> 😇Prior workThe initialephemetootscript was based onthis tweet-deleting scriptby@flesueurephemetootrelies heavily on theMastodon.pypackage by@halcyUsageYou can useephemetootto deleteMastodontoots that are older than a certain number of days (default is 365). Toots can optionally be saved from deletion if:they are pinned; orthey include certain hashtags; orthey have certain visibility; orthey are individually listed to be keptThere are various options controlling timing, scheduling, and output.Run from the command line withephemetoot.Runephemetoot --helpor read the docs for all options.Contributingephemetoot is now in maintenance mode, and new features will not be considered.For bugs or other contributions, please check thecontributing guide.
Package: ephios
ephiosephios is a tool to manage shifts for medical services.
Planners can create events for which volunteer help is required (e.g. security/medical services, beach patrols, exercises).
An event can contain multiple shifts for which different processes can be applied for signup
(e.g. a direct confirmation for an event or an "application" that has to be accepted first).
The volunteers can register for the respective shifts via a clearly arranged web interface.
The planners can then assign personnel and have an overview of the current status.
Around this central feature there are further supporting functions like the management of the volunteers and their
qualifications or an overview of the volunteer hours worked. A flexible group systems helps to support complex permission
szenarios. The functionality can be extended using plugins.DocumentationYou can find the documentation for ephios atRead the Docs. This includes
the user guide and installation instructions.ContributingContributions to ephios are very welcome. You can find information about contributing at ourContribution pageWe are using Weblate for translations, you can also contributethere.