Saravanan666/pypi-org huggingface dataset:
Package: ecal
ecal(pronounced ee-cal) is a package for getting a US equity earnings announcement calendar.For more documentation, please seehttp://ecal.readthedocs.io.Installationecalcan be easily installed with pip:$ pip install ecalUsageecalis really simple to use. Below you’ll find the basics.Getting the earnings announcements for a single dateTo get the earnings announcements for a single date simply importecaland callget():importecalcal_df=ecal.get('2017-03-30')The results will be an earnings calendar in a pandas DataFrame:ticker when
date
2017-03-30   AEHR  amc
2017-03-30   ANGO  bmo
2017-03-30   BSET   --
2017-03-30     FC  amc
2017-03-30    LNN  bmo
2017-03-30   SAIC  bmo
2017-03-30   TITN  bmoThe returned DataFrame has the following columns:tickeris the ticker symbol on NYSE or NASDAQ.whencan bebmowhich meansbefore market open,amcwhich meansafter market closeor--which meansno time reported.If there were no announcements for this day, an empty DataFrame will be returned.Getting the earnings announcements for a date rangeIt is equally easy to get the earnings announcements for a date range:importecalcal_df=ecal.get('2018-01-01','2018-01-05')Once again the results will be an earnings calendar in a pandas DataFrame:ticker when
date
2018-01-04    CMC  bmo
2018-01-04   LNDC  amc
2018-01-04   NEOG  bmo
2018-01-04    RAD  amc
2018-01-04   RECN  amc
2018-01-04    UNF  bmo
2018-01-05   AEHR  amc
2018-01-05   ANGO  bmo
2018-01-05     FC  amc
2018-01-05     LW  bmo
2018-01-05    PKE  bmo
2018-01-05   PSMT  amc
2018-01-05    RPM  bmo
2018-01-05   SONC  amc
2018-01-05    WBA  bmoDays with no earnings announcements will have no rows in the DataFrame. In the example above, there were no announcements on Jan first, second and third.It should be noted thatecalfetches earnings announcements fromapi.earningscalendar.netby default. This source limits us to 1 call per second. However you don’t have to worry about this because theecal.ECNFetcherthrottles calls to the API to prevent rate limiting. That said, please note that this fetcher gets announcements one day at a time which means if you want 30 days, it’s going to take 30 seconds to get that data. Yikes. Fear not… that’s whyecalcomes with caching.Cachingecalsupports caching so that repeated calls toecal.get()don’t actually make calls to the server. Runtime caching is enabled by default which means calls during your program’s execution will be cached. However, theecal.RuntimeCacheis only temporary and the next time your program runs it will call the API again.Persistent on disk caching is provided viaecal.SqliteCacheand can be easily enabled by settingecal.default_cacheonce before calls toecal.get():importecalecal.default_cache=ecal.SqliteCache('ecal.db')cal_df=ecal.get('2017-03-30')Extensionecalis very easy to extend in case you want to support another caching system or even create an earnings announcement fetcher. For more documentation, please seehttp://ecal.readthedocs.io.
Package: ecalculator-pkg-linda-oranya
CalculatorThis is a python package hosted on PYPI and can be used to perform basic functions on calculator such as;ADDITIONSUBTRACTIONDIVISIONMULTIPLICATIONIt is an open source project with a public repository athttps://github.com/linda-oranya/pypi_calculator.Installationpypi_calculator requires python3 and can be installed via PYPI$pipinstallecalculator-pkg-linda-oranya$pipinstallgit+https://github.com/linda-oranya/pypi_calculator.gitUsageThe calculator can be used for basic mathematical computation. The calculator has a memory that can reset itself to 0 and also stores previous values, except the memory is resetSample Codefrom calculator import Calculatorcal = Calculator()Additioncal.add(10)10Subtractionsubtractcal.subtract(2)8because the memory was not reset, 2 was subtracted from previous value 10Division
For divide, zero division returns None and descriptioncal.divide(2)4cal.divide(0)number cannot be zero => float division by zero
Nonecal.memory_val4DevelopmentYou can contribute to this project by cloning this repo and pushing to a branch for review and merging.Dockerpypi_calculator is very easy to install and deploy in a Docker container.By default, the Docker will expose port 8080, so change this within the
Dockerfile if necessary. When ready, simply use the Dockerfile to
build the image.LicenseMITIt is a Free Software
Package: ecap
Implements the Excess Certainty Adjusted Probability adjustment procedure as described in the paper “Irrational Exuberance: Correcting Bias in Probability Estimates” by Gareth James, Peter Radchenko, and Bradley Rava (Journal of the American Statistical Association, 2020; <doi:10.1080/01621459.2020.1787175>). The package includes a function that preforms the ECAP adjustment and a function that estimates the parameters needed for implementing ECAP. A tutorial is included / is available at my github url <https://github.com/bradleyrava/ecap-python>. Please review the full paper for detailed information about the ecap prodecure <http://faculty.marshall.usc.edu/gareth-james/Research/Probs.pdf>.
Package: ecape
ecapeecape is a simple module that contains an entraining CAPE, or ECAPE, calculation described by Peters et. al. 2023.
Peters-provided MatLab scripts serve as a reference and test verification data.
The module leans heavily on MetPy for meteorological calculations.Installation & UseIn console:pip install ecapeSee the example in linked documentation.fromecape.calcimportcalc_ecape...ecape=calc_ecape(height,pressure,temperature,specific_humidity,u_wind,v_wind)Documentation & Sourcehttps://github.com/citylikeamradio/ecapehttps://citylikeamradio.github.io/ecapeContactRobert Capellabob.capella@gmail.comhttps://twitter.com/minusthebobQuestions, comments, and feedback are certainly welcome. This project is a personal exercise
in learning how to publish packages to Github & PyPI, so excuse the excessive documentation for
one function.Future Workadd support for other water content variablesif useful, incorporate into MetPyprovide cli .nc, .csv, & aws supportA note on undiluted CAPE & calculation accuracyIf users prefer their own CAPE calculations, use theundiluted_capeparameter:When comparing calc_ecape.py & COMPUTE_ECAPE.m run on Peters 2023 sample data,
there is a ~10% difference in the resultant ECAPE. This is almost entirely due to a difference in calculated MUCAPE.
The tests describe other sources of variation (~1%).Given:the methods here are within ~1% of Peters' calculations when undiluted CAPE is equivalentPeters et. al. specifically mention MetPy for determining undiluted CAPEMetPy is a reliable, open-source, and frequently used meteorological calculation packageMetPy's undiluted CAPE calculations were chosen for ease of readability and implementation.ReferencesRyan M. May, Sean C. Arms, Patrick Marsh, Eric Bruning, John R. Leeman, Kevin Goebbert, Jonathan E. Thielen, Zachary S Bruick, and M. Drew. Camron. Metpy: a Python package for meteorological data. 2023. URL: Unidata/MetPy, doi:10.5065/D6WW7G29.John Peters. ECAPE scripts. 2 2023. URL:https://figshare.com/articles/software/ECAPE_scripts/21859818, doi:10.6084/m9.figshare.21859818.v4.Peters, J. M., D. R. Chavas, C. Su, H. Morrison, and B. E. Coffer, 2023: An analytic formula for entraining CAPE in mid-latitude storm environments. J. Atmos. Sci.,https://doi.org/10.1175/JAS-D-23-0003.1, in press.Licenceecapeis distributed under the terms of theMITlicense.
Package: ecapture
CaptureFunction: Capture photos
Number of Arguments: 3importecaptureasecec.capture(0,"frame","frame.png")Arguments:Camera IndexInput the index of the webcam that you choose to use. Index 0 will be first webcam, Index 1 will be the second webcam, and so on and so forth.Window NameInput False if a window with the captured image should not be displayed. A window name input as a string will show a window with the captured imageSave NameInput False if the captured image should not be saved. A save name input as a string will save the captured image with the desired name.Video CaptureFunction: Record videos
Number of Arguments: 4importecaptureasecec.vidCapture(0,"frame","frame.avi","x")Arguments:Camera IndexInput the index of the webcam that you choose to use. Index 0 will be first webcam, Index 1 will be the second webcam, and so on and so forth.Window NameInput False if a window with the captured image should not be displayed. A window name input as a string will show a window with the current frame.Save NameInput False if the captured image should not be saved. A save name input as a string will save the recorded video with the desired name.Exit KeyThe key that has to be pressed to end the recording.Timed Video CaptureFunction: Record videos for a specified duration
Number of Arguments: 4importecaptureasecec.vidCapture(0,"frame","frame.avi",5)Arguments:Camera IndexInput the index of the webcam that you choose to use. Index 0 will be first webcam, Index 1 will be the second webcam, and so on and so forth.Window NameInput False if a window with the captured image should not be displayed. A window name input as a string will show a window with the current frame.Save NameInput False if the captured image should not be saved. A save name input as a string will save the recorded video with the desired name.TimerThe time after which the video recording terminates.
Package: ecapy
# Evolutionary Centers AlgorithmECA is a physics-inspired algorithm based on the center of mass concept ona D-dimensional space for real-parameter single-objective optimization. Thegeneral idea is to promote the creation of an irregular body using K mass pointsin the current population, then the center of mass is calculated to get a new directionfor the next population... [read more.](https://www.dropbox.com/s/kqc22ki2edjtt0y/ECA-optimization.pdf)## Parameters- Parameters (suggested):- Objective function: `fobj`- Dimension: `D`- K-value:`K = 7`- Population size:`N = K*D`- stepsize:`eta_max = 2.0`- binomial probability:`P_bin = 0.03`- Exploit parameter:`P_exploit = 0.95`- Max. number of evaluations:`max_evals = 10000*D`- Bounds:- Lower: `low_bound`- Upper: `up_bound`- Search Type:- Maximize:- `minimize = True`- minimize:- `minimize = False`## ExampleYou can write Python code to use ECA in your project:```pythonfrom ecapy import eca# D-dimensional sphere functiondef sphere(x):s = 0.0for xi in x:s += xi**2return sx, fx = eca(sphere, D = 10, minimize=True)```
Package: ecas
Ecas RP automation scriptThis tool has been written to check the status of your PR application in ECAS automatically. This avoid multiple click and form filling. You can set alert using a system like cron.Getting startedFrom PyPIpip3installecasFrom SourceGet poetryOn Linux & MacOScurl-sSLhttps://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py|python-On Windows with powershell(Invoke-WebRequest -Uri https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py -UseBasicParsing).Content | python -Get the codegitclonegit@github.com:pievalentin/ecas.git&&cdecasBuild itpoetrybuildThe previous command will create a dist folder. Now run:pip3 install dist/ecas*.whlRestart your terminal so thatecasis available.Usageecaslastnameiuc_numberbirthdaybirth_country_codeFor example for France:ecasDupont112245589"2001-01-31"022Example of output:Your status is: InProcess

The detail of your process is:
- We received your application for permanent residence  on December 10, 2020.
- We sent you correspondence acknowledging receipt of your application(s) on October 22, 2021.
- We started processing your application on October 22, 2021.
- We sent you correspondence on October 22, 2021. If you have not yet provided the information or the requested documents, please do so as soon as possible.  
Please wait until you receive the correspondence before sending us additional information, as the correspondence will outline all information that is required.
- We sent you medical instructions on November 25, 2021. To avoid delays, please provide us the information requested in the letter as soon as possible.  
Please consider delays in mail delivery before contacting us.When everything was verified by ircc, your status will change toDecisionMadeFor more details, you canecas--helpFind your country codeTo find your country code, you can look it upin this fileNBUse this tool responsibly. Don't spam IRCC server :)
Package: ecasb2share
ECAS B2SHAREPython module to talk to B2SHARE HTTP REST API!NoteThis module is not a B2SHARE client and is related to the ECAS use case.How to installUsing pippip install ecasb2shareHow to useCreate a clientfrom ecasb2share.ecasb2shareclient import EcasShare as Client
client = Client()Create a draft recordclient.create_draft_record(community_id, title)ContributorsSofiane Bendoukha <bendoukha@dkrz.de>ChangelogVersion 0.0.1b6 2019-02-19Fix default token pathVersion 0.0.1b5 2019-02-14Update READMEFix uploading tokenFix creating new drafts records (filebucketid)Version 0.0.1b4 2019-02-12Fixed bug in adding files to recordsVersion 0.0.1-a0Added first basic methods
Package: ecashaddress
ecashaddressecashaddressis python library which is able to convert legacy
bitcoin addresses to the cashaddress format, and convert between various
cashaddr prefixes.It also provides a command line tool for converting address formats:ecashconvertInstallationTo install this library and its dependencies use:pip install ecashaddressUsage examplesAs a libraryThe first thing you need to do is import the library via:fromecashaddressimportconvertfromecashaddress.convertimportAddressConverting addressIt does not matter if you use legacy or cashaddress as input.Then you can convert your address via:address=Address.from_string("155fzsEBHy9Ri2bMQ8uuuR3tv1YzcDywd4").to_cash_address()oraddress=Address.from_string("ecash:qqkv9wr69ry2p9l53lxp635va4h86wv435ugq9umvq").to_legacy_address()You can convert between differentCashAddrprefixes:address=Address.from_string("ecash:qqkv9wr69ry2p9l53lxp635va4h86wv435ugq9umvq").to_cash_address(prefix="foobar")Validating addressYou can also validate address via:convert.is_valid('155fzsEBHy9Ri2bMQ8uuuR3tv1YzcDywd4')orconvert.is_valid('ecash:qqkv9wr69ry2p9l53lxp635va4h86wv435ugq9umvq')Guessing a prefixYou can guess the prefix for a cash address. This only works for a short list of
commonly used prefixes, such as “ecash”, “bitcoincash”, “simpleledger” or “etoken”.convert.guess_prefix('qqkv9wr69ry2p9l53lxp635va4h86wv435ugq9umvq')As a command line toolWhen the library is installed withpip install ecashaddress, a
command line tool is also installed. It should normally be installed in
a location that is on your PATH, so you can run it from anywhere in a
console:ecashaddress --helpIf this is not the case, an alternative is to run the library the
following way:python -m ecashaddress --helpThis tool lets you convert one or more addresses toeCashaddresses.
It accepts as input addresses with legacy BTC format, or any validCashAddr. By default, it outputsCashAddrwith theecash:prefix.ecashaddress convert bitcoincash:qq3dmep4sj4u5nt8v2qaa3ea7kh7km8j05dhde02hgTo output aCashAddrwith a different prefix, use the--prefixoption:ecashaddress convert bchtest:qq3dmep4sj4u5nt8v2qaa3ea7kh7km8j05f9f7das5 --prefix ectestThe tool also lets you guess the prefix from an address without prefix, if the
prefix is in a short list of commonly used prefixes:ecashaddress guessprefix qr4pqy6q4cy2d50zpaek57nnrja7289fksp38mkrxfDevelopmentFork the repository on github.Clone your fork of the repository.Add the source repository as a remote.git remote add upstream git@github.com:PiRK/ecashaddress.git
git fetch upstreamMake sure your master branch is up-to-date with the upstream master.git checkout master
git pull upstream masterCreate a local development branch, and add commits to it. Run the
tests after each change, beforegit commit.git checkout -b my_dev_branch
# do your stuff
python -m ecashaddress.tests.test
git commitPush you branch to your fork of the repository.git push --set-upstream origin my_dev_branchCreate a pull request to the upstream repository.
Package: ecashrpc
ecash-python-rpceCash JSON-RPC Python module.Serves as a tiny layer between an application and an eCash node daemon, its primary usage
is querying the current state of the eCash blockchain, network stats, transactions...Compatible withAvalanche Post-Consensus(0.26.x and later).Installation1. Install from pip3$pip3installecashrpc2. Node configurationConfigure your eCash Avalanche Node for remote RPC calls based on your node's security needs. This includes:addingserver=1,rpcallowip=,rpcbind=andrpcauth/rpcuser/rpcpassword=parameters to your node configuration in bitcoin.conf. (refer to theServer Configuration sectionofthis Blockchain Dev guide)a reverse proxy server such asnginxto serve RPC data to external web apps subject to your eCash node's rpcallowip whitelistinstall a digital certificate (e.g.Let's Encrypt) on your node to enable HTTPS if desiredUsageCreate a sampleecashrpctest.pyscript as follows:import asyncio
from ecashrpc import ECashRPC

async def main():
    async with ECashRPC('HOST:PORT','RPCUSER','RPCPASSWORD') as xecNode:
        print(await xecNode.getavalancheinfo())

if __name__ == "__main__":
    asyncio.run(main())Running this script (with some additional formatting) yields:$ python3 ecashrpctest.py

{
  "ready_to_poll":true,
  "local":{
     "verified":true,
     "proofid":"...",
     "limited_proofid":"...",
     "master":"...",
     "payout_address":"ecash:qqmd..........",
     "stake_amount":1560000000
  },
  "network":{
     "proof_count":18,
     "connected_proof_count":18,
     "dangling_proof_count":0,
     "finalized_proof_count":18,
     "conflicting_proof_count":0,
     "immature_proof_count":4,
     "total_stake_amount":83681202831.85,
     "connected_stake_amount":83681202831.85,
     "dangling_stake_amount":0,
     "node_count":37,
     "connected_node_count":33,
     "pending_node_count":4
  }
 }Supported methodsHere is a list of supported methods. Please submit a PR if you'd like to have a specific RPC method added.AvalancheMethodSupported?addavalanchenode✔buildavalancheproof✔decodeavalanchedelegation✔decodeavalancheproof✔delegateavalancheproof✔getavalancheinfo✔getavalanchekey✔getavalanchepeerinfo✔getrawavalancheproof✔isfinalblock✔isfinaltransaction✔sendavalancheproof✔verifyavalanchedelegation✔verifyavalancheproof✔BlockchainMethodSupported?getbestblockhash✔getblock✔getblockchaininfo✔getblockcount✔getblockhash✔getblockheader✔getblockstats✔getchaintips✔getdifficulty✔getmempoolinfo✔getrawmempool✔getnetworkhashps✔MiningMethodSupported?getmininginfo✔NetworkMethodSupported?getconnectioncount✔getnetworkinfo✔Raw transactionsMethodSupported?getrawtransaction✔LicenseMIT
Package: ecb-scraper
ECB ScraperECB Scraper is a Python package for scraping European Central Bank press conference transcripts. It allows for easy extraction of press conference details including dates and URLs, offering a streamlined way to access ECB statements and Q&A sessions over the years.InstallationInstallecb-scrapervia pip:pipinstallecb-scraperUsageCLIThe ECB Scraper also provides a Command Line Interface (CLI) for fetching ECB press conferences without needing to write any Python code. Here's how you can use it:Arguments--start-year: Specify the start year for fetching the conferences. If not provided, the script will use 1998.--end-year: Specify the end year for fetching the conferences. If not provided, the current year is used.--output-file: Required. The path to the file where the fetched data will be saved (CSV or JSON).Default valuesecb-scraper--output-fileconferences.jsonSpeific datesecb-scraper--start-year2010--end-year2020--output-fileconferences.jsonPythonThe ECB Scraper can also be used as a Python package. Here's how you can use it:fromecb_scraperimportload_ecb_conferences# DataFrame with columns ['date', 'title', 'link', 'text']conferences=load_ecb_conferences(start_year=2005,end_year=2020)
Package: eccd-datasets
This project shows how to package data files within a Python distribution, and has some example code for reading the data files. To build this distribution, create a venv with setuptools, wheel, and pep517 installed, then execute the latter as a module:python-mpep517.build.The distributions (an sdist .tar.gz and a bdist .whl) will be written to ./dist/ subdirectory. To test it out, install the distribution and run the console scriptresources-example.Here’s a compatibility summary of the five approaches demonstrated:ModuleDescriptionIn stdlib?Works on Py2?Works on Py3?Works in zipfile?Run as script?*example1.pyos.path.joinyesyesyesnoyesexample2.pypkgutilyesyesyesyesnoexample3.pypkg_resourcesnoyesyesyesyesexample4.pyimportlib.resourcesyesnoyes (3.7+)yesyesexample5.pyimportlib_resourcesnoyesyesyesyes* “Run as script” means executing the submodule directly, e.g.python myapp/example2.py. Note that Guido considers thisan anti-patternIf you are interested in creating an executable zip from source, you can use stdlibzipapputility (Python 3.5+):python3-mzipapp--compress/path/to/resources-example--main="myapp:main"--output=myapp.zipAnd now you can run the zip directly with the interpreter (any Python version):pythonmyapp.zip
Package: eccehomo
A simple micro application to serve images with customized croppingIntroductionThis micro application resizes existing images according to given query
parameters. The application returns the image and saves the image as the
previous filename suffixed with the query params. The intended usage is
with a file server which will return this new image the second time when
the url matches the new filename.E.g. for an existing imageimage.jpgwe useimage.jpg?w=200to
set the width to 200 and save the new file asimage.jpg?w=200ConfigurationThe settings are read from environment variables. ####
ECCEOMO_MEDIA_ROOT The absolute path to the root directory common to
all media files. e.g.exportECCEHOMO_MEDIA_ROOT='/www/media'####
ECCEHOMO_MEDIA_URL Optional URL between domain and filename. e.g.exportECCEHOMO_MEDIA_URL='media'#### ECCEHOMO_DEFAULT_METHOD Set
tocontainif left unset. Defines a default method to use when
heighthand widthware specified with a without a methodt. e.g.exportECCEHOMO_DEFAULT_METHOD='crop'####
ECCEHOMO_MINIMUM_LENGTH Sets a minimum accepted length for the widthwand heighthparameters. e.g.export ECCEHOMO_MINIMUM_LEGNTH=10## Usage There are three query
parameters. Heighth, Width,w, and method typet. Method
defintions inpython-resize-image readmeThey should be used always in the same order as the filename will be
saved with the querystring as part of its filename.With example values given.Resize width:?w=100Resize height:?h=100Resize default e.g. contain:?w=100&h=50Resize crop:?w=100&h=50&t=cropResize thumbnail:?w=100&h=50&t=thumbnailResize cover:?w=100&h=50&t=cover## Notes: ## Files are saved with url path as filename. If trailing
slash present in url will be removed for filename{domain}/{media_url}/path/to/file.jpg/?w=100->{media_directory}/path/to/file.jpg?w=100
Package: ecceran
Ecceransimple ECC encrypt & decryptInstall$ pip install ecceranGenerate Private Keyrunecceranin your command line for generate new secret key in.private_key$ ecceran

public key : 02a4610d81d6c522ae67c2570********the public key will be used to decrypt.generatecommand will return public key from file.private_key, to re-generate need to delete fileprivate_keyGet Private Keyfromecceranimportprivate_keyprivate_key_app=private_key()# 5xa46gg0d81d6c522ae9ku2570********Encrypt & Decryptfromecceranimportencrypt,decrypt,private_keypubkey='02a4610d81d6c522ae67c2570********'enc_data=encrypt(pubkey,b'test')print(enc_data)# d2zx4d81d6xxx2va67c24470********prikey=private_key()byte=bytes.fromhex(enc_data)dec_data=decrypt(prikey,byte)print(dec_data)# b'test'