Saravanan666/pypi-org huggingface dataset:
Package: euring
euring-cli=========*A skeleton command line program in Python.*Purpose-------This is a skeleton application which demonstrates how to properly structure aPython CLI application.I've done my best to structure this in a way that makes sense for *most* users,but if you have any feedback, please open a Github issue and I'll take a look.The idea with this project is that you should be able to use this as a templatefor building new CLI apps.You can fork this project and customize it to your liking, or just use it as areference.Usage-----If you've cloned this project, and want to install the library (*and alldevelopment dependencies*), the command you'll want to run is::$ pip install -e .[test]If you'd like to run all tests for this project (*assuming you've writtensome*), you would run the following command::$ python setup.py testThis will trigger `py.test <http://pytest.org/latest/>`_, along with its popular`coverage <https://pypi.python.org/pypi/pytest-cov>`_ plugin.Lastly, if you'd like to cut a new release of this CLI tool, and publish it tothe Python Package Index (`PyPI <https://pypi.python.org/pypi>`_), you can do soby running::$ python setup.py sdist bdist_wheel$ twine upload dist/*This will build both a source tarball of your CLI tool, as well as a newer wheelbuild (*and this will, by default, run on all platforms*).The ``twine upload`` command (which requires you to install the `twine<https://pypi.python.org/pypi/twine>`_ tool) will then securely upload yournew package to PyPI so everyone in the world can use it!Thanks------This project owes thanks to- The `skele-cli` example at https://github.com/rdegges/skele-cli
Package: eurlex
EUR-Lex ParserAn EUR-Lex parser for Python.UsageYou can install this package as follows:pipinstall-UeurlexAfter installing this package, you can download and parse any document from EUR-Lex. For example, the32019R0947 regulation:fromeurleximportget_html_by_celex_id,parse_html# Retrieve and parse the document with CELEX ID "32019R0947" into a Pandas DataFramecelex_id="32019R0947"html=get_html_by_celex_id(celex_id)df=parse_html(html)# Get the first line of Article 1df_article_1=df[df.article=="1"]df_article_1_line_1=df_article_1.iloc[0]# Display the subtitle of Article 1print(df_article_1_line_1.article_subtitle)>>>"Subject matter"# Display the corresponding textprint(df_article_1_line_1.text)>>>"This Regulation lays down detailed provisions for the operation of unmanned aircraft systems as well as for personnel, including remote pilots and organisations involved in those operations."Every document on EUR-Lex displays a CELEX number at the top of the page. More information on CELEX numbers can be found on theEUR-Lex website.For more information about the methods in this package, see theunit testsanddoctests.Data StructureThe following columns are available in the parsed dataframe:text: The texttype: The type of the datadocument: The document in which the text is foundarticle: The article in which the text is foundarticle_subtitle: The subtitle of the article (when available)ref: The indentation level of the text within the article (e.g.["(1)", "(a)"]when the text is found under paragraph(1), subparagraph(a))In some cases, additional fields are available. For example, thegroupfield which contains the bold text under which a text is found.Code ContributionFeel free to send any issues, ideas or pull requests.
Package: eurlex2lexparency
eurlex2lexparencyTransforming documents from Eur-Lex to LexparencyInstallationpip install eurlex2lexparencyUsageUsing this package requires a settings-module on first level,
featuring the definition of the following variables.NameDescriptionLEXPATHFilesystem path to store the transformed documents.CELEX_CONNECT_STRINGTo be used bysqlalchemy.create_engineLANG_2_ADDRESSDictionary, language code to corresponding Lexparency URL
Package: eurocodepy
eurocodepy v0.2.1EurocodePy is a Python package for calculating structures according to Eurocodes. It provides a collection of functions that enable engineers to design and analyze structures based on the Eurocode standards. In addition, it includes a database of structural materials and steel profiles, making it easy to design and analyze structures according to Eurocode standards.There are also some functions to work with material properties:creep_coefshrink_strainTheutilspackage has some functions that can be useful:stress: calculate the principal stresses and vectors, and the stress inavariants (I1, J2, J3, ...)InstallationYou can install EurocodePy using pip by running the following command:pipinstalleurocodepyToo upgrade to the latest version use:pipinstalleurocodepy--upgradeUsageEurocodePy provides a range of functions for designing and analyzing structures according to Eurocodes. Here are some examples:from eurocodepy import ec2Materials and Profiles DatabaseEurocodePy includes a database of structural materials and steel profiles. The database is stored in a JSON file and can be easily updated or extended. The materials database includes properties such as the density, modulus of elasticity, and Poisson's ratio, while the steel profiles database includes properties such as the cross-sectional area, moment of inertia, and section modulus.The database is stored in a JSON file 'eurocodes.json'. This file is loaded when the package is impoorted, soo you can modified it to include you own properties. If you have some suggestions or materials to add to the database and want them to be included for all the coommunity, please contribute as described below in thecontributionssection. Steel profiles arre stored in a separate file 'prof_euro.json'The database can be accessed through a dictionary. There are also some aliases to easily access the database. The following code gives examples on how to use it.importeurocodepyasec# To access the entire databasedb=ec.db# To access concrete class C30/37conc=ec.db["Materials"]["Concrete"]["Classes"]["C30/37"]# Alternative 1conc=ec.Materials["Concrete"]["Classes"]["C30/37"]# Alternative 2conc=ec.Concrete["Classes"]["C30/37"]# Alternative 3conc=ec.ConcreteClasses["C30/37"]# Alternative 4# to access a steel profileipe200=ec.SteelProfiles["I_SECTION"]["IPE200]Current materials in the database are:concrete (C20/25 to C90/105)timber (C14 to C24, D18, GL24 to 36)reinforcement - general (B400, B450, B500, B550, B600, B700, classes A, B and C: B400A etc.)reinforcement - portuguese (A400NR, A400NRSD, A500NR, A500NRSD, A500ER, A500EL)structural steel (S235, S275, S355, S450)Available european steel profiles are:I sections (IPE, HEA, HEB, HEM)L sectionsC sectionsT sectionsPipe sectionsBox sectionsDouble L sectionsDouble C sectionsDocumentationA more or less complete description of existing packages and modules can be found oneurocodepy.readthedocs.ioLicenseThis project is licensed under the MIT License. See theLICENSEfile for details.ContributingWe welcome contributions from everyone. Before getting started, please read ourCode of ConductandContributing Guidelines.
Package: eurodb
EuroDB LibTLDRGenerate/Fill your config file and use :importeurodbimportpandasaspddb=connect()data:pandas.Dataframe=db.query("select stuff from somewhere")SetupInstall it with :pip install eurodbInput your credentials into a JSON file of your choosing with the given format (default name isdblogs.json) :>dblogs.json[{"name":"Thefirstone","server":"tcp:somefunnyurl.windows.net","username":"johndoofus","database":"veryprivatedata","password":"dontsharethisplz"},{"name":"thecorrectone","server":"tcp:somefunnyurl.windows.net","username":"notjohndoofus","database":"notveryprivatedata","password":"sharethisplz"}]Yes it has to be an array even if it's only one entry.Now you can connect to the DB and query stuff easily like so :importeurodbdb=eurodb.connect()# If you don't have a file containing the login credentials ready, it will generate one for you# else, you can specify it's namedb=eurodb.connect("connectionFile.json")# By default, it will connect using the first entry but,# If you have multiple connections in the file, you can specify which one to use.# With the example file displayed above, you could use the second entry as so :db=eurodb.connect("dblogs.json",connName="thecorrectone")# Carefull, the `.query` function will be using the last called/loaded entry :data=db.query("SELECT * from stuff")#would be using "thecorrectone"db.__loadConnection__("Thefirstone")data=db.query("SELECT * from stuff")#would be using "Thefirstone"The return variable will be a pandas dataframe with the desired output.The underlying library used for the SQL results isPYODBC.
Running a query will create a new Connection and a Cursor, returning both objects at once.If you wish to collect your results manually, use the engine method :importeurodbdb=connect("dblogs.json",connName="reader")eg=db.getEngine()witheg.begin()asconn:cursor=conn.execute(stx("SELECT * from res.allRegions where country = 'FR' and geocode like '10%'"))data=cursor.fetchall()print(data)conn.execute requires special formatting provided by thesqlalchemy.text()function, shortened tostx()
Package: eurodem2km
eurodem2kmImport the DemAPI class as follows:from eurodem2km.api import DemAPIand use its method "getAltitude(lat: float, lon: float)" to get the location altitude'altitude = DemAPI.getAltitude(44.159,10.386)DEVELOPMENTClone the code and install as an editable install using:python -m pip install -e .PACKAGINGFollow this fine tutorial:https://realpython.com/pypi-publish-python-package/Install in virtual environment the build and twine tools:python -m pip install build twine keyrings.altBuild:python -m buildCheck output:twine check dist/*Upload to PyPI:twine upload dist/*
Package: euroleague-api
Euroleague APIThis is a python package of the Euroleague API. The API endpoints were found on theswagger platform, with the addition of a few more API endpoints (e.g. shot data) found on blogs and discussions. More endpoints will be added.Installationpip install euroleague-apiExamplefromeuroleague_apiimportshot_dataseason=2022game_code=1df=shot_data.get_game_shot_data(season,game_code)DocumentationGame statsgame_stats.pyPlayer statsplayer_stats.pyTeam statsteam_stats.pyStandingsstandings.pyShot datashot_data.pyPlay-by-play dataplay_by_play_data.pyBoxscore databoxscore_data.pyAuxiliary functionsutils.pyTODOAdd more endpoints from various sourcesAdd Eurocup API supportAdd tests
Package: euroleague-scrapping
Euroleague and Eurocup ScrapperWelcome tonewstats.euEuroleague
and Eurocup scrapper!This is a simple project to help you download basketball data fromeuroleagueandeurocupYou need to havepython>=3.6installed in order to use the library.Installation and usageInstall it using:pip install euroleague_scrappingIf you want to download Euroleague data for season 2019-2020 try:scrapper = Euroscrapper(years=[2019])
scrapper.start()It will create adata/euroleaguefolder in your current path.
If you prefer a different path to store the data (lets say/tmp/data), try:scrapper = Euroscrapper(datadir="/tmp/data",years=[2019])
scrapper.start()If you want to download Eurocup data for season 2019-2020 try:scrapper = Euroscrapper(league="eurocup",years=[2019])
scrapper.start()If you want to download Euroleague data for all the seasons try (it will take a while):scrapper = Euroscrapper()
scrapper.start()If you want to download Euroleague data for the last 3 seasons try:scrapper = Euroscrapper(years=[2017,2018,2019])
scrapper.start()Hopefully you can adopt the calls to fit your needs.If you enjoyed the library and found it useful give us a shout in
Twitter@newstatseu
Package: europa-1400-tools
Python Tools for Europa 1400: The Guild / Die GildeSetupWindows (using PowerShell)Install VS Codewinget install Microsoft.VisualStudioCodeInstall pythonwinget install Python.Python.3.11Install ffmpegwinget install "FFmpeg (Shared)"Install poetry(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | py -Open this project in VS Code and run the following commands in the integrated terminal:poetry config virtualenvs.in-project truepoetry installYou're good to go!
Package: europarl-amendment-extract
EuroParl-Amendment-ExtractThis is a simple script to convert the amendments from the EP to JSON.
It follow the format define in that datasethttps://zenodo.org/record/4709248#.YXesJS8itqsfor the article War Of Wordhttps://github.com/indy-lab/war-of-wordsprerequisitesBuild the MEPs dataset with the scriptpython3 meps.pyDebuggerTo run the debugger we simply need to run 'streamlit run diff_visualizer.py', it will run the am labeler on the ep8 dataset and visualize the first error that it comes across.Sequence matcher updateIn diff.py there is now a extract_opcodes and extract_opcodes_v2. The v2 takes into account to merge consecutive 'replace' operations as well as 'delete' operations followed by a replace. We also display now at the end an accuracy metric that sort of roughly sketches the am labeler's performance. The accuracy is calculated by penalizing the algorithm for each edit that it gets wrong relative to the size / length of text that was attributed to the edit in question. With this evaluation metric we observed a high accuracy (99+ %) on the ep8 dataset.Usagefromep_amendment_extractimportextract_amendmentsextract_amendments('file.docx')
Package: europe-pmc
Open Access PDF Downloader with EuropePMCInstallationpython3-mpipinstalleurope_pmcUsageCMDepmc--help# single downloadepmc30003000# PMIDepmcPMC6039336# PMCIDepmc10.1007/s13205-018-1330-z# DOIepmc"Identification of miRNAs and their targets in regulating tuberous root development"# Title# batch downloadepmc300030003000300130003002# batch download from a fileepmcpmid.list# specific outputepmcpmid.list--outdirpaper--outfile{pubYear}.{pmid}.{title}.pdf# multithreads downloadepmcpmid.list--threads4# list onlyepmcpmid.list--list# show information onlyepmcpmid.list--infoPythonfromepmcimportEuropePMCpmc=EuropePMC()r=pmc.fetch('30003000')r=pmc.fetch('PMC6039336')r=pmc.fetch('10.1007/s13205-018-1330-z')print(r.pmid,r.pmcid,r.title)print(r.data)r.save()r.save(outfile='output.pdf')
Package: euros
eurosConverts any amount of euros from numbers into letters, using Python.Languages available :french (fr)italian (it)english UK (en)Installation :pipinstalleurosExamples:fromeurosimportfr,it,enfr.conv(120.99)#'cent vingt euros et quatre-vingt-dix-neuf centimes'it.conv(23.81)#'ventitré euro e ottantuno centesimi'en.conv(1215.55)#'one thousand, two hundred and fifteen euros and fifty-five cents'
Package: eurosat-dataset
EUROSAT deel dataset pluginThis project implements the EUROSAT dataset plugin for the DEEL dataset manager.A deel dataset plugin is an extension of the Dataset class defined in theDEEL dataset manager project.
It allows to access to specific dataset files using theloadmethod and other defined modes.EUROSAT dataset plugin use the default modepathto loadEuroSAT.zipusing the http protocol.InstallationThe latest release can be installed from pypi. All needed python packages will also be installed as a dependency.pipinstalleurosat-datasetOtherwize the ssh or HTTPS version should work but you will have to enter your credentials manually:# SSH version (with proper SSH key setup):pipinstallgit+ssh://git@github.com:deel-ai/eurosat_dataset.git# HTTPS version:pipinstallgit+https://github.com/deel-ai/eurosat_dataset.gitNote:EUROSAT dataset loading name iseurosat.Examples of usageBasic usageTo load EUROSAT dataset, you can simply do:importdeel.datasets# Load the default mode of eurosat dataset:eurosat_data_path=deel.datasets.load("eurosat")Thedeel.datasets.loadfunction is the basic entry to access the datasets.
By passingwith_info=True, extra information can be retrieved as a python
dictionary. Information are not standardized, so each dataset may provide
different ones:
Themodeargument can be used to load different "version" of the dataset. By default,
only thepathmode is available and will return the path to the local folder
containing the dataset.Command line utilitiesThedeel-datasetspackage comes with some command line utilities that can be accessed using:python -m deel.datasets ARGS...The--helpoption can be used to view the full capabilities of the command line program.
By default, the program uses the configuration at$HOME/.deel/config.yml, but the-cargument can be used to specified a custom configuration file.The following commands are available (not exhaustive):list— List the available datasets. If the configuration specify a remote provider
(e.g., WebDAV), this will list the datasets available remotely. To list the dataset already
downloaded, you can use the--localoption.$python-mdeel.datasetslist
Listingdatasetsathttps://datasets.deel.ai:dataset-a:3.0.1[latest],3.0.0dataset-b:1.0[latest]dataset-c:1.0[latest]$python-mdeel.datasetslist--local
Listingdatasetsat/local_path_to/datasets:dataset-a:3.0.1[latest],3.0.0eurosat:1.0.0[latest]download NAME[:VERSION]— Download the specified dataset. If the configuration
does not specify a remote provider, this does nothing except outputing some information.
The:VERSIONcan be omitted, in which case:latestis implied. To force the re-download
of a dataset, the--forceoption can be used.Example$python-mdeel.datasetsdownloadeurosat
Fetchingeurosat...
EuroSAT.zip:100%|██████████████████████████████████████████████████|89.9M/89.9M[00:56<00:00,1.67Mbytes/s]Dataseteurosatloadedandstoredat'/home/justin.plakoo/.deel/datasets/eurosat/1.0.0'.
Package: eurostatapiclient
Eurostat API Client (Python)Use the Eurostat API Client to quickly retrieve json data from Eurostat REST service and convert it to a pandas DataFrame. A simple description of the service can be foundhereInstallationInstall Eurostat API Client using pip.pipinstalleurostatapiclientQuick startThis example shows how to retrieve a dataset and a pandas dataframe from it.fromeurostatapiclientimportEurostatAPIClient# Choose service version : only 1.0 is currently availableVERSION='1.0'# Only json is currently availableFORMAT='json'# Specify language : en, fr, deLANGUAGE='en'client=EurostatAPIClient(VERSION,FORMAT,LANGUAGE)# Optionnal : working behing a proxy :# client.set_proxy({'http':'my.proxy.com/8080', 'https':'my.proxy.com/8080'})dataset=client.get_dataset('tps00001')print(dataset.label)dataframe=dataset.to_dataframe()print(dataframe.head())# Add some filters (only mono-filtering is available for now)params={'geo':'DE',}# Note that some keys may be repeated in eurostat's api# In that case, you will want to pass params as a list of tuples# ex. :# params = [#  ('siec', 'TOTAL'),#  ('precision', '1'),#  ('unit', 'KTOE'),#  ('nrg_bal', 'AFC'),#  ('nrg_bal', 'DL'),#  ('nrg_bal', 'EXP'),#  ('nrg_bal', 'FC_E'),#  ('nrg_bal', 'FEC2020-2030')]# filtered_dataset = client.get_dataset('nrg_bal_c', params=params)filtered_dataset=client.get_dataset('tps00001',params=params)filtered_dataframe=filtered_dataset.to_dataframe()print(filtered_dataframe.head())ContributionsContributions are welcome !Feel free to suggest modifications/enhancements in the "issues" section, or to create a pull request
Package: eurostat-deaths
EurostatPackage is a simple interface for parsing data from Eurostat:deaths countspopulation sizesDownload the package withpip3installeurostat_deathsTo import and fetch data, simply writeimporteurostat_deathsaseurostatFunctiondeaths()fetches the deaths, functionpopulations()fetches the populations.
Their description is in following sections below.Package is regularly updated. Upgrade your local version typingpip3installeurostat_deaths--upgradeDeathsfromdatetimeimportdatetimeimporteurostat_deathsaseurostatdata=eurostat.deaths(start=datetime(2019,1,1))Parameterstartsets the start of the data. The end is alwaysnow().You receive per-week data of deaths. Since the total size of the data frame is about 218 MB, call takes more than 15 minutes. The usage of memory is significant.In the future, module will be reimplemented to use Big Data framework, such as PySpark.The pandas dataframe is returned.fromdatetimeimportdatetimeimporteurostat_deathsaseurostat# does not return, create a file with resulteurostat.deaths(output="deaths.csv",start=datetime(2019,1,1))Parameteroutput = "deaths.csv"causes that the output is saved into filedeaths.csvbefore returning.One additional setting ischunksizeto set the size of chunk, that is processed at a time. The unit used is thousands of rows.PopulationPopulations in years for NUTS-2 and NUTS-3 regions can be fetched such asimporteurostat_deathsaseurostatdata=eurostat.populations()Similarly as indeaths()call,populations()can be parametrized withchunksize(in thousands of lines) andoutput, forwarding the output to file rather than returning and hence saving time allocating a big data frame in main memory.importeurostat_deathsaseurostat# does not return, create a file with resulteurostat.populations(output=True)Here the data volume is incomparably lower and hence the regular usage to return the data frame is possible.CreditsAuthor:Martin Benes.
Package: eurotools
*************eurotools*************.. image:: http://gitlab.stonework.net/stoneworksolutions/eurotools/badges/master/build.svg:target: http://gitlab.stonework.net/stoneworksolutions/eurotools/.. image:: http://gitlab.stonework.net/stoneworksolutions/eurotools/badges/master/coverage.svg:target: http://gitlab.stonework.net/stoneworksolutions/eurotools/Comienzo rapido---------------1. Agregar la aplicacion deseada a INSTALLED_APPS::INSTALLED_APPS = (..."euroblock","eurocharts","eurocube","eurodate","eurodecorators","eurofilters","eurogrids","europlugin",)2. Importar los estaticos:TBD<!-- jQuery UI --><script src="{{STATIC_URL}}plugins/jquery-ui-1.12.1/jquery-ui.min.js"></script><link href="{{STATIC_URL}}plugins/jquery-ui-1.12.1/jquery-ui.min.css" rel="stylesheet"><link href="{{STATIC_URL}}plugins/jquery-ui-1.12.1/jquery-ui.theme.min.css" rel="stylesheet"><link href="{{STATIC_URL}}plugins/jquery-ui-1.12.1/jquery-ui.structure.min.css" rel="stylesheet"><!-- MULTISELECT--><link href="{{ STATIC_URL }}css/euromultiselect.css" rel="stylesheet"/><script src="{{ STATIC_URL }}js/euromultiselect.js" type="text/javascript"></script><script src="{{ STATIC_URL }}js/eurofilters_localdb.js" type="text/javascript"></script><script src="{{ STATIC_URL }}lib/jquery-multiselect/src/jquery.multiselect.min.js" type="text/javascript"></script><script src="{{ STATIC_URL }}lib/jquery-multiselect/src/jquery.multiselect.filter.min.js" type="text/javascript"></script><!-- Add stoneplugins  --><script src="{{STATIC_URL}}js/euroutils.js"></script><!-- BLOCKUI --><script src="{{ STATIC_URL }}js/euroblock.js" type="text/javascript"></script>3. Ejemplo de uso:euroselect = new eurofiltersIU(config, cb)euroselect.createFilters(filters);*************euroblock*************Libreria client y server side que proporciona filtros avanzados basados en componentes html _select_*************eurocharts*************Libreria cliente que proporciona integracion con HighCharts*************eurocube*************Libreria server side que proporciona compatibilidad con bases de datos multidimensionales Microsoft Analysis Services*************eurodate*************Libreria client side que proporciona filtros de fecha avanzados basados en componentes Bootstrap*************eurodecorators*************Libreria server side que proporciona filtros avanzados basados en componentes html _select_*************eurofilters*************Libreria client y server side que proporciona filtros avanzados basados en componentes html _select_*************eurogrids*************Libreria client y server side que proporciona filtros avanzados basados en componentes html _select_*************europlugin*************Libreria client y server side que proporciona filtros avanzados basados en componentes html _select_