Saravanan666/pypi-org huggingface dataset:
Package: earthport-rest-api-client
EarthportRestApiClient=================This SDK uses the Requests library and will work for Python ```2 >=2.7.9``` and Python ```3 >=3.4```.How to configure:=================The generated code might need to be configured with your API credentials.To do that, open the file "Configuration.py" and edit its contents.How to resolve dependencies:===========================The generated code uses Python packages named requests, jsonpickle and dateutil.You can resolve these dependencies using pip ( https://pip.pypa.io/en/stable/ ).1. From terminal/cmd navigate to the root directory of the SDK.2. Invoke ```pip install -r requirements.txt```Note: You will need internet access for this step.How to use:===========After having resolved the dependencies, you can easily use the SDK following these steps.1. Create a "earthport-rest-api-client_test.py" file in the root directory.2. Use any controller as follows:```pythonfrom __future__ import print_functionfrom earthport-rest-api-client.earthport_rest_api_client_client import EarthportRestApiClientClientapi_client = EarthportRestApiClientClient()controller = api_client.quotesresponse = controller.create_bulk_fx_quote(<required parameters if any>)print(response.fx_ticket_id)# Or you can print more informationprint(vars(response))```
Package: earthquakealert-ID
Indonesia Earthquake AlertPackage to retrieve latest Indonesia earthquake alert fromhttps://www.bmkg.go.id/How it work?Package will scrape the latest Indonesia earthquake alert fromBMKGwebsite.
The data will be shown with this format:Latest Earthquake News in IndonesiaDate: ________Time: ________ WIBMagnitude: ________Location: LS: ________ BT: ________Center: ________Impact Scale: ________Package will use BeautifulSoup4 and requests to retrieve and parse the website data.Example of usage---import command---import earthquakealert_ID---function for scraping data fromhttps://www.bmkg.go.id/---result=earthquakealert_ID.getdata()---function for display the scraped data---earthquakealert_ID.displaydata(result)
Package: earthquakeBMKG
LATEST INDONESIA EARTHQUAKEThis package will get the latest earthquake from BMKG | Meteorological, Climatological, and Geophysical Agency.HOW IT WORK?This package will scrape fromBMKGto get latest quake happend in indonesia.this package will use BeautifulSoup4 and Requests, to produce output in the form of JSON that is ready to be used in WEB or Mobile ApplicationsHOW TO USE?import gempaterkini

if __name__ == '__main__':
    result = gempaterkini.ekstrasi_data()
    gempaterkini.tampilkan_data (result)AUTHORAsep Sopiyan
Package: earthquake-idbmkg
Realtime Indonesia EarthquakeThis package will get the latest eartquake data from BMKG | Indonesia Meteorological, Climatological, and Geophysical AgencyHow it work?This package will scrape fromBMKGto get the latest earthquake happened in indonesiaThis package will use BeautifullSoup4 and Request, to produce output from JSON and ready to used in Web or Mobile applicationsHow to useimport gempaterkini

if __name__ == '__main__':
    gempa = GempaTerkini('https://www.bmkg.go.id/')
    gempa.show_description()
    gempa.run()
Package: earthquake-IDN
Latest Indonesia EarthQuakeThis project will get the latest earthquake from BMKG | Indonesian Agency for Meteorology, Climatology, and GeophysicsHOW IT WORK?This package will scrape data fromBMKGto get the latest quake happened in Indonesia.This package will use module BeautifulSoup4 and Requests, to produce output in the form of JSON that is ready to be used in web or mobile applicationsHOW TO USEimport earthquakelatest

if __name__ == '__main__':
    earthquake_in_indonesian = earthquakelatest.LatestEarthquake('https://bmkg.go.id')
    print(f'My application using package have description {earthquake_in_indonesian.description}')
    earthquake_in_indonesian.display_description()
    earthquake_in_indonesian.run()AuthorMuhammad Shaufi Imanulhaq
Package: earthquake-id-warning
indonesia-earthquakethis project will report the latest earthquake in Indonesia from BADAN METEOROLOGI, KLIMATOLOGI, DAN GEOFISIKAHOW IT WORK?This package will scrape data fromBMKGto get the latest earthquake happen in IndonesiaThis package use BeautifulSoup4 and requests package to scrape data.HOw TO USEInstall package use: pip install earthquake-id-warningimport gempaterkini

if __name__ == '__main__':
    result = gempaterkini.ekstrasi_data()
    gempaterkini.tampilan_data(result)AuthorHeru Setiawan
Package: earthquake-indonesia-bmkg-2023
earthquake-bmkg packageThis package provides the latest earthquake data in Indonesia from BMKG | Indonesian Agency for Meteorological, Climatological and GeophysicsHow does it work?Usingbeautifulsoup4andrequests, this package extracts real-time earthquake data from official website ofBMKGThe extracted data is then generated in Python Dictionary / JSON format, which can be used in web or mobile apps.
Package: earthquake-in-indonesia
latest-information-earthquake-update--indonesiathis package will scrape information in website Indonesian Agency for Meteorology, Climatology, and Geophysics (BMKG)HOW IT WORKSThis package will help you to retrieve data from theBMKGWebsite, to get the latest information on the last earthquake in Indonesia, and generate JSON output to be applied to the web or mobile aplicationHOW TO USEimport gempaterkini

if __name__ == '__main__':
    print('aplikasi utama')
    result = gempaterkini.ekstraksi_data()
    gempaterkini.tampilkan_data(result)Author : Hendra Kusuma
Package: earthquakepy
earthquakepyA python library for earthquake engineers and seismologists.Installationearthquakepy can be installed using pip. It’s an absolute breeze. Try it!pipinstallearthquakepyThats it! This will install the earthquakepy and other required libraries. Wasn’t that easy?Import and useProbably you know how to import the library. Let me just remind you.importearthquakepyasepGetting startedRead a PEER NGA record from filets1=ep.read_peer_nga_file(filename)Read a raw file containing timeseries datats2=ep.read_raw_timeseries_file(filename)Build a SDOF system object to carry out some magic later!s1=ep.sdof(T=1.0,xi=0.05)Get response of above SDOF system subjected to base excitation ts2s1.get_response(ts2)Build a MDOF system objectimportnumpyasnpM=np.random.rand(3,3)C=np.random.rand(3,3)K=np.random.rand(3,3)m1=ep.mdof(M=M,C=C,K=K)Read OpenSees node output fileo1=ep.read_ops_node_output(filename,3,compNames=["x","y","z"])# 3 : ncomps = number of components per nodeRead OpenSees element output fileo2=ep.read_ops_element_output(filename,3,compNames=["x","y","z"])# 3 : ncomps = number of components per elementRead OpenSees JSON model filemodel=ep.read_ops_json_model(jsonFile)Each object generated above has its own methods which are given in detail in the documentation. Please click onthis linkto view it.
Package: earthquakereport-indonesia
Indonesia Earthquake ReportThis package will provide the most update of Indonesian bureau of Forecast (BMKG)How It Work?This package will scrape fromBMKGto get the latest earthquake reports in Indonesia.This package will use BeautifulSoup4 and Request, to then produce in the form of JSON that is ready to be used in web or mobile applications.How To Use This Package?import updateGempa

if __name__ == '__main__':
    gempaIndonesia = updateGempa.gempaTerbaru('https://www.bmkg.go.id/')
    print(f'Aplikasi utama menggunakan package yang memiliki deskripsi {gempaIndonesia.description}')
    gempaIndonesia.tampilkan_keterangan()
    gempaIndonesia.run()AuthorHasan Gani
Package: earthscopestraintools
Welcome to earthscopestraintools, an open source python package for working with strainmeter data.  This project is actively under development and should not be considered stable at this time.M. Gottlieb and C. Hanagan 10-31-2023Documentation can be found athttps://earthscopestraintools.readthedocs.io/en/latest/Pypi releases available fromhttps://pypi.org/project/earthscopestraintools/earthscopestraintools can be installed withpip install earthscopestraintoolsOr with optional dependencies:pip install 'earthscopestraintools[mseed]'
pip install 'earthscopestraintools[tiledb]'
pip install 'earthscopestraintools[plotting]'
pip install 'earthscopestraintools[mseed,tiledb,plotting]'It is currently recommendeed to install the mseed optional dependencies, which includes obspy and some tools for loading data from the EarthScope miniseed archive.  The tiledb functionality, as of version 0.1.26, is not yet well implemented. Also please note that the tiledb dependencies do not work with python 3.12, but should work with python 3.9-3.11.  Plotting dependencies include ipympl for enabling notebook interaction, including plotting strain videos.Some functionality (tidal analysis and corrections) depends on BAYTAP-08 and SPOTL, two legacy FORTRAN programs, which have been containerized for use by this library.  In order to run these processing methods, you must have Docker installed and running on your computer.  When required, the library will then fetch the required images and be able to run these processing steps.
Package: earth-view-api
python-earth-viewGoogle Earth Viewis a gallery of at least 2,604 visually appealing satellite images. Each has a resolution of 1800x1200, making them suitable wallpapers or placeholder images. For example, there's aChrome extensionthat displays a new Earth View image each time you open a new tab, and aGNOME extensionthat regularly sets the wallpaper to a new Earth View image.I wrote this package to make it a little bit easier to hit the ground running with Earth View images.
It provides a command-line tool and Python API that make it easy to download images and access their metadata.How to useIn Pythonfromearth_viewimportEarthViewImageBy default, initializing an EarthViewImage will download a random image:>>>my_image=EarthViewImage()>>>print(my_image.geocode("establishment"])VolcánIslugaNationalParkIf you want, you can request a specific image ID:# id parameter can be int or strspecific_image=EarthViewImage(1004)Save it for later:# if you don't specify path, default is your current working directoryEarthViewImage().save(path="/home/user/Desktop")Command-lineTheearth-viewcommand makes it easy to download a new Earth View image.# download a random image to the current directoryearth-view# download a specific image to your Downloads folder, overwriting if file existsearth-view~/Downloads--id1004--overwriteA word of warningThis package entirely relies on a free service hosted by Google.
At any time, Google may decide to end the service.
Enjoy it while it's here.ContributingFeel free to file an issue, submit a pull request, or reach out to me directly.
I'd love to hear from you.LicenseThis code is licensed under GPLv3 or any later version. See LICENSE.md for more information.
Package: earth-vision
earth-visionEarth Visionis a python library for solving computer vision tasks specifically for satellite imagery.ObjectiveTo ease researcher to run ML pipelines for AI or Deep Learning Applications in solving Earth Observation (EO) tasks.InstallationWe recommend Anaconda as Python package management system and using Python 3.9.pip:pip install earth-vision
conda install gdalFrom source:python setup.py install
conda install gdalGDAL is actually a C++ library with python bindings. That means it relies on underlying C++ code and the package must be built/compiled in a certain manner to be usable with Python. So, we prefer to install it from Anaconda.Examplefromtorch.utils.dataimportDataLoaderfromtorchvision.transformsimportToTensor,Compose,Normalizefromearthvision.datasetsimportRESISC45fromearthvision.models.resisc45importregnet_y_400mf# Transformationpreprocess=Compose([ToTensor(),Normalize(mean=[0.3680,0.3810,0.3436],std=[0.1454,0.1356,0.1320])])# Dataset and Dataloaderdataset=RESISC45(root='../dataset',transform=preprocess,download=True)dataloader=DataLoader(dataset,batch_size=32,shuffle=True)# Modelmodel=regnet_y_400mf(pretrained=True)Features PlansFeel free to suggest features you would like to see byopening an issue.GPU memory optimization [TBD]High-level pipeline to integrate varied data sources [TBD]
Package: earthworm-shubhamt619
e@rthw0rmA python package by Shubham ThakurHello All !This is the Second release of my python package.
Basically this is like a boilerplate for creating your own python package.Can it tell me my future ?--> Can you ?Will it help me invest in the right cryptocurrency ?--> NoOkay Then, What it does ?--> Basically, Nothing :P ,  You can clone this repo and simply edit it and publish it to either test PyPi or Live PyPi.Wait, It does Nothing at all ?--> It can do a few things allright. See the examples below.Note : Make sure you Install and Import this package first.Install Command -pip install earthworm-shubhamt619Import like thisimport earthwormExample 1 : Saying HelloTo say hello to a person, all you have to do is callsayHello()like,earthworm.sayHello("Shubham")Output isHello there Shubham !Example 2 : Saying HiTo say Hi to a person, all you have to do is callsayHi()like,earthworm.sayHi("Shubham")Output isHi there Shubham !Example 3 : Saying PipPipTo say PipPip to a person, all you have to do is callsayPipPip()like,earthworm.sayPipPip("Shubham")Output isPipPip Shubham !Upload my packageOkay, I have made changes to this repo, How to upload it to PyPi ?-> 1] Make account on [https://test.pypi.org] and [https://pypi.org]-> 2] Create a file in your $HOME with name.pypircwith the following.[distutils]
index-servers=
pypi
testpypi[pypi]
username: <YOUR_USERNAME>
password: <YOUR_PASSWORD>[testpypi]
repository:https://test.pypi.org/legacy/username: <YOUR_USERNAME>
password: <YOUR_PASSWORD>3] Then install required packages -setuptoolsandwheelsudo python3 -m pip install --user --upgrade setuptools wheelFor Python 2.*sudo python -m pip install --user --upgrade setuptools wheel4]  Go to the root directory of your package (Wheresetup.pyexists) and run the following command.sudo python3 setup.py sdist bdist_wheelThis will generate adist/folder for uploading totest pypiorpypi.5]  Install twinesudo python3 -m pip install --user --upgrade twineTwine helps you upload your packages totest pypiandpypivery easily.Final Step6]  Upload your package ! ! !Fortest pypisudo python3 -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*For PyPisudo python3 -m twine upload dist/*Hey, How can i update my package ?-> The same way you uploaded the package. First Make version change insetup.pyand increment the version.e.g. 0.0.1 -> 0.0.2After that, repeat step 4 and 6 to generatedist/and reupload newer version of your package.
Package: earworm
earwormCreate a simple web page to listen to audio files in a directorySetupThe package is available on PyPI and you can install it using pip/conda.pipinstallearwormUsageThis tool can generate a simple HTML page from a directory of music files. The
tool can read metadata from files directly (currently only supports MP3 files
and ID3 tags). But, if you have files which are not MP3, you can use a CSV file
with the metadata.The CSV filemusthave the following columnsfilenameandtitle, and
any additional ones you may want. A template can be generated using the tool --
see step 3 below.To get started create a sample config file:earwormmake-config-cconfig.ymlChange the value ofmusic_dirto the directory where you have your music
files. If you wish to use a CSV file for the metadata, add ametadata_csventry to the config.metadata_csv:"/path/to/metadata.csv"You can generate a template for themetadata.csvfrom yourmusic_dirby
runningearwormwith theupdate-csvsub-command. Once the CSV file is
generated, add ametadata_csventry pointing to this file to your config.Runearwormto generate a directory calledoutputwith anindex.html,music/directory with all the music files that have "valid
metadata", and acovers/directory with the cover images for the albums.You can specify the<title>of the page by using thetitleconfig varIf thebase_urlparameter is specified, anog:imagetag is added to the
page, using the latest song's cover image.Open theindex.htmlin your browser to view the playlist locally.If you have access to a webserver, you can just sync the output directory to
your webserver.If you don't have access to a webserver you can use something likeGoogle
DriveorDropboxto host this as a static website.A new music file can be added to an existing music directory and site using
theadd-audiosubcommand.earwormadd-audio-cconfig.yml-i~/Downloads/cover-image.jpg~/Music/covers/song123.mp3Dev SetupWhen working on the source (py/html/CSS/JS) of the site, you can automatically
generate the html each time you make any changes to the input files usingentr.ls/path/to/config-file$(gitls-files)|entrearworm--config/path/to/config-fileJS toolchainTo change the JS files, you need to haverollupinstalled and you can run the
rollup watcher (rollup -w -c rollup.config.js) to build thebundle.js.
Package: eas
Encrypt & Sync is a file synchronization utility with client-side encryption support.FeaturesAES encryption support, including filename encryptionSynchronization between storages in any directionDownloaderMultithreadingAuto-retries for failing requestsSupported storagesYandex.DiskDropboxLocalSFTPSynchronization, downloading, etc. can work in any direction from any one storage to another.This list will expand in the future.LinksOfficial websiteDocumentationGitHubPyPIContact
Package: easchersim
EASCherSimThis is the release ofEASCherSim!This tool simulates the cherenkov light emission for extensive airshowers with trajectories below and above the limb as a full Monte Carlo simulation.
As a result it provides the photon spatial, time and angular distribution at the detection plane. The tool has the option to take the effect of a magnetic field into account.
Various plots can be automatically produced and the results can be saved into root format.InstallationEASCherSimis available throughpiporconda.python3 -m pip install easchersimconda install -c easchersim easchersim:warning: WARNING: root isnota dependency to keep the distribution lightNote:We recommand the conda install. This allows to easily install root for creating root output files viaconda install -c conda-forge rootUsageCreate a configuration fileThe command line simulator uses store simulation settings in an ini file (read by configparser). To
generate a configuration file run the following, with your choice of file name.
All option can be specified via argument as well (see help menu for details).easchersim make-config my_config_file.iniRun cherenkov simulationSimulate cherenkov photons at detection planeeaschersim run my_config_file.iniDocumentationThe sphinx documentation is available atGitLabHelp DocumentationUse the-hflag for documentation.$ easchersim --help
usage: easchersim [OPTIONS] COMMAND [ARGS]

OPTIONS:
  -h, --help         show this help message and exit

COMMANDS:
  {run,make-config}
    run              run easchersim for settings from configuration file
    make-config      Produce configuration file from default and/or given parameters.Help documentation is also available for the commands (run and make-config).$  easchersim make-config -h$  easchersim run -hUninstallpython3 -m pip uninstall easchersimconda uninstall easchersimDownload & BuildClone the Repository (for development)git clone https://gitlab.com/c4341/easchersim.gitcd easchersimpython3 -m pip install -e .
Package: easedate
easedateDescriptionA python package for easy date use and conversions.Installpip install easedateCurrently Available functionstoday()

parse(str_date)

str_to_date(str_date, input_format, output_format)

weekday(date, output_format)

add_day(date, value)

add_month(date, value)

add_year(date, value)

diff_in_days(date, base_date)

diff_in_months(date, base_date)

diff_in_years(date, base_date) 

is_after(date, base_date) 

is_before(date, base_date)

is_equal(date, base_date)Usage examplefromeasedate.easedateimport*result=str_to_date("22/03/2020",input_format="%d/%m/%Y")print(result)# 2020-03-22result=parse("01/03/2020")print(result)# 2020-03-01result=weekday("22/03/2020")print(result)# Sundayresult=weekday("22/03/2020",output_format="%a")print(result)# 0 (Sunday is indexed as 0 and Saturday is indexed as 6)result=add_day("22/03/2020",value=1)print(result)# 2020-03-23result=add_day("22/03/2020",value=-1)print(result)# 2020-03-21result=add_month("22/03/2020",value=1)print(result)# 2020-04-23PyPieasedateAuthor2020 brworkit.LicenseMIT License.
Package: easee
Easee EV Charger libraryThis library is a thin wrapper aroundEasee's Rest APIInstallationYou can install the libray fromPyPI:pip install easeeThe library is tested on Python 3.7 and Python 3.8Command line toolRunpython -m easee -hfor help.Usage of the libraryDocsRead the API documentationhereSmall exampleEasee is the connection class and ChargerfromeaseeimportEasee,Charger,Siteasyncdefmain():_LOGGER.info("Logging in using:%s%s",sys.argv[1],sys.argv[2])easee=Easee(sys.argv[1],sys.argv[2])chargers=awaiteasee.get_chargers()forchargerinchargers:state=awaitcharger.get_state()_LOGGER.info("Charger:%sstatus:%s",charger.name,state["chargerOpMode"])sites=awaiteasee.get_sites()forsiteinsites:_LOGGER.info("Get sites circuits chargers:%s",site["createdOn"])charger=site.get_circuits()[0].get_chargers()[0]state=awaitcharger.get_state()_LOGGER.info("Charger:%sstatus:%s",charger.name,state["chargerOpMode"])awaiteasee.close()DevelopmentThis project usesblackfor code formatting andflake8for linting. To autoformat and run lint runmake lint
Package: ease-grid
The Equal-Area Scalable Earth (EASE) Grid is a system of projections that is
used by NASA and others for distribution of remote sensing data.You can find some overview information atthe NSIDC website. Unfortunately from the documentation it was not
clear to me how the latitude, longitude values of certain EASE grid resolutions
were calculated. So I wrote this package to find out.CitationIf you use the software in a publication then please cite it using the Zenodo DOI.InstallationThis package should be installable through pip:pip install ease_gridSupported EASE GridsThere are two versions of EASE grid systems. This package focuses on EASE-Grid
2.0 at the moment. The data we were reading is disseminated on the global
EASE-Grid projection which is why this is the one that is currently supported.Calculation of any global EASE2 grid should work. Compability with the tiling
scheme of NASA is tested for the global 36km grid (EASE2_M36KM) and the
global 25km grid (EASE2_M25KM). The tiling of the 25km grid is only the same
as the NASA tiling if themap_scaleparameter is given explicitely. This
will also be the case for the subgrids of the 36km grid likeEASE2_M09KMandEASE2_M03KM. Themap_scaleparameters used by NASA are available from
the fileease2_grid_info.proinside theeaseconv*.tgzfile atftp://sidads.colorado.edu/pub/tools/easegrid/geolocation_tools/How to useTo get the coordinates of a EASE2 grid:fromease_gridimportEASE2_gridegrid=EASE2_grid(36000)assertegrid.shape==(406,964)# these two attributes contain the longitude and latitude coordinate dimensionegrid.londimegrid.latdimContributeWe are happy if you want to contribute. Please raise an issue explaining what
is missing or if you find a bug. We will also gladly accept pull requests
against our master branch for new features or bug fixes.Development setupFor Development we recommend acondaenvironmentGuidelinesIf you want to contribute please follow these steps:Fork the ease_grid repository to your accountmake a new feature branch from the ease_grid master branchAdd your featurePlease include tests for your contributions in one of the test directories.
We use py.test so a simple function called test_my_feature is enoughsubmit a pull request to our master branchNoteThis project has been set up using PyScaffold 2.5.6. For details and usage
information on PyScaffold seehttp://pyscaffold.readthedocs.org/.