Saravanan666/pypi-org huggingface dataset:
Package: ebau-gwr
ebau-gwrGWR synchronisation for ebau projectsGetting startedInstallationRequirementsdockerdocker-composeAfter installing and configuring those, downloaddocker-compose.ymland run the following command:dockercomposeup-dYou can now access the api athttp://localhost:8000/api/v1/.Configurationebau-gwr is a12factor appwhich means that configuration is stored in environment variables.
Different environment variable types are explained atdjango-environ.CommonA list of configuration options which you need to set when using ebau-gwr as a
standalone service:SECRET_KEY: A secret key used for cryptography. This needs to be a random string of a certain length. Seemore.ALLOWED_HOSTS: A list of hosts/domains your service will be served from. Seemore.DATABASE_ENGINE: Database backend to use. Seemore. (default: django.db.backends.postgresql)DATABASE_HOST: Host to use when connecting to database (default: localhost)DATABASE_PORT: Port to use when connecting to database (default: 5432)DATABASE_NAME: Name of database to use (default: ebau-gwr)DATABASE_USER: Username to use when connecting to the database (default: ebau-gwr)DATABASE_PASSWORD: Password to use when connecting to databaseApp specific settingsA list of configuration options which you need to set in any case:GWR_WSK_ID: This is the ID that has been assigned to you by the BfSGWR_FERNET_KEY: A secret key used for encrypting the passwords in housing stat credentials. Can be generated with thegenerate_fernet_keycommandBy default, the app will talk to the GWR production API if running withENV=production(and the test API otherwise). You can overwrite this behavior by settingGWR_HOUSING_STAT_BASE_URI: base uri of GWR API, e.g."https://www-r.housing-stat.ch/regbl/api/ech0216/2"ContributingLook at ourcontributing guidelinesto start with your first contribution.MaintenanceA few notes for maintainers can be foundhere.
Package: eb-aws-sso
awsssoSimple adaptation (datetime parsing) of:https://www.matscloud.com/blog/2020/06/25/how-to-use-aws-cdk-with-aws-sso-profiles/You will need:AWS CLI 2+
BOTO3How to useawssso{aws-config-profile}awssso{aws-config-profile}{custom-cert-profile-name}
Package: ebay
A python package for simple access to eBay’s API.Free software: MIT licenseDocumentation:https://ebay.readthedocs.org.FeaturesTODOInstallationAt the command line either via easy_install or pip:$pipinstallebay$easy_installebayUninstall$pipuninstallebayGetting StartedTo use ebay in a project:importebayDocumentationThe full documentation is athttps://ebay.readthedocs.org.HistoryNext ReleaseFeature: … TODOFeature: … TODOFix: … TODO0.1.0 (2015-04-18)First release on PyPI.
Package: eBay-email-tracker
IntroductionThis is a based learning project I built to learn more about scraping websites, manipulating data, and delivering it through a medium.The program tracks an entire eBay search page of a particular item and sends automated updates to an email with the respective link and price to each entry.The program asks you for:The item you want to trackHow many hours do you want between updatesThe range of priceThe email address you would like to receive the updates toInstallationThe program only works locally. It will create a CSV file in the current directory the program is run from with all the data.If you would like to test the program, you need to:pip install eBay_email_trackerfrom ebay_email_tracker import trackertracker()Set environmental variables in your Windows Operating System:VariableValueEBAY_TRACKER_EMAILAn email you want to send the information fromEBAY_TRACKER_PASSWORDPassword to that emailThe program depends on these packages:NumpyBeautifulSouplxmlrequestsPandasThe program is not intended for personal or commercial use.Improvements:I realized that the program will often send entries that are no longer available. While the program sleeps, I could check each entry that was not seen in the most recent search, and see if it has its price listed. If not, delete it from the data.Currently, the only way to close the program would be to interrupt it and close it. I could implement a way for the user to close the program if he or she desires to.While the program is running, there is nothing telling the user that it is working apart from the first email sent. The program will stay the same for the whole duration. I could print statements to the user, so he knows the program is working as intended.The program only works locally. I could implement a database that tracks the item of different users, and sends that information without storing each entry locally, but that would be a completely different project.
Package: ebayfeed
ebayfeedDownload item feeds from eBay RESTful API.NOTE:As of Nov.2018 Feed API (v1_beta.10.0) are available only for the following marketplaces:EBAY-DE - eBay Germany (ebay.de)EBAY-GB - eBay Great Britain (ebay.co.uk)EBAY-US - eBay USA (ebay.com)Package will be updated as soon asothermarketplaces are added.
More infohere.Feed API release notesInstallationTo install, usepiporeasy_install:$pipinstall--upgradeebayfeedor$easy_install--upgradeebayfeedHow to create a keysetSign in to youreBay Developers Program accountto create an App ID and a keyset.You can test your application in eBay's sandbox environment without limitations.To download item feeds from eBay's production environment, your keyset needs to be granted access tohttps://api.ebay.com/oauth/api_scope/buy.product.feedOAuth scope.You can obtain such authorization by completing all the steps described here:apply for production access.ExamplesGet all items for{'Travel': 3252}category and convert them to pandas dataframe:importebayfeedfrompandasimportread_tablefrompandas.compatimportStringIO# download tsv feedcredentials=ebayfeed.Credentials(client_id,client_secret)feed=ebayfeed.get_feed(credentials,3252,ebayfeed.SCOPE_ALL_ACTIVE,ebayfeed.EBAY_US)# convert to dataframedf=read_table(StringIO(tsv_feed.splitlines()))Use eBay's sandbox environment instead of production:sandbox_api=ebayfeed.Api(env=ebayfeed.ENVIRONMENT_SANDBOX)credentials=ebayfeed.Credentials(client_id,client_secret,api=sandbox_api)Get items listed on 2018-10-03 for{'Toys & Hobbies': 220}category:feed=ebayfeed.get_feed(credentials,220,ebayfeed.SCOPE_NEWLY_LISTED,ebayfeed.EBAY_US,date='20181003')Get top-level category names and IDs for a given marketplace from Taxonomy API:categories=ebayfeed.get_macro_categories(credentials,ebayfeed.EBAY_DE)Get access token to taxonomy and buy.item.feed OAuth scopes (cached until expiration):credentials=ebayfeed.Credentials(client_id,client_secret)access_token=credentials.access_tokenReferencesFeedAPI documentation:https://developer.ebay.com/api-docs/buy/feed/static/overview.htmlBest practices:https://developer.ebay.com/events/connect17/sj/2-6_breakout_api-best-practices_tanya-vlahovic.pdf
Package: ebay-feedsdk
Feed SDKPython SDK for downloading and filtering item feed files including oauth authentication.Forked and merged fromhttps://github.com/eBay/FeedSDK-Pythonandhttps://github.com/eBay/ebay-oauth-python-clientand ported to python3Nothing serious changed, made it barely working.Code is not improved yet and would need some maintenance.Automatic Tests not working due to the nature the tests were original programmed (you need to provide actual token etc.)Available as PyPI package underhttps://pypi.org/project/ebay-feedsdk/Example code to retrieve oauth token and download file (you need working ebay-config.yaml)See ebay_feedsk/ebay_download_example.py for example how to download feed filesSee also for details:https://github.com/eBay/ebay-oauth-python-client/blob/master/README.adochttps://github.com/eBay/FeedSDK-Python/blob/master/README.md
Package: ebbef2p-python
EBBEF2p for PythonBackgroundThe computer program EBBEF2p was originally written as a toolbox for the MATLAB computing environment. EBBEF2p (Euler-Bernoulli Beams on Two-Parameter Elastic Foundationis) can handle a wide range of static loading problems involving one-dimensional beams supported by elastic foundation.Why EBBEF2p for Python?Matlab is a quite expensive comercial product, which means that code that is written in Matlab can only be used by people with sufficient funds to buy a license. Unlike MATLAB, Python is free to use and distribute both for personal and commercial use.
Package: ebbinghaus
ebbinghausEbbinghaus remembering framework, based on python3 and sqlite3.Installpip install ebbinghausUsageimportebbinghaus# Set the database to save data.ebbinghaus.set_database(':memory:')# Register a key to ebbinghaus.ebbinghaus.register(3)assertebbinghaus.get_stage(3)==0# Check a key exists.assertebbinghaus.exists(3)# Remember the key.ebbinghaus.remember(3)assertebbinghaus.get_stage(3)==1# Forget the key for one time.ebbinghaus.forget(3)assertebbinghaus.get_stage(3)==0# Get random keys to review.assertebbinghaus.random(1)==[3]Historyv0.2.0Add method:ebbinghaus.exists(id).v0.1.2Fix bug: add requirements.txt.v0.1.1Fix bug: set_database at a non-exists directory will cause OSError.Nowset_databasewill return the database created inside the function.v0.1.0Build main functions.
Package: ebcc
ebcc: Coupled cluster calculations on electron-boson systemsTheebccpackage implements various coupled cluster (CC) models for both purely electronic and coupled electron-boson models, with a focus on generality and model extensibility.InstallationFrom source:gitclonehttps://github.com/BoothGroup/ebcc
pipinstall.UsageThe implemented models are built upon the mean-field objects ofpyscf:frompyscfimportgto,scffromebccimportEBCCmol=gto.M(atom="H 0 0 0; H 0 0 1",basis="cc-pvdz")mf=scf.RHF(mol)mf.kernel()ccsd=EBCC(mf)ccsd.kernel()Code generationThe models implemented are generated algorithmically from expressions over second quantized operators. Expressions are generated usingqwickandpdaggerqwith optimisation of common subexpressions and contraction order achieved usingdrudgeandgristmill.
User-inputted models should operate seamlessly with the solvers by adding files underebcc/codegen, so long as they satisfy the interface.
Package: ebclient
With this repo you can useEnigma Bridgeencryption service.InstallationpipinstallebclientUsageThe following example assumes that you already have access to the encryption server, i.e., you have a valid api key,
which in this case is ‘API_TEST’.Calling processData():fromebclient.process_dataimportProcessDatafromebclient.uoimportConfiguration,Endpoint,SimpleRetry,UOfromebclient.crypto_utilimport*# Construct general configuration (endpoint, request config)cfg=Configuration()cfg.endpoint_process=Endpoint.url('https://site2.enigmabridge.com:11180')cfg.api_key='API_TEST'# UO you want to work withuo_aes=UO(uo_id=0xee01,uo_type=0x4,enc_key=from_hex('e134567890123456789012345678901234567890123456789012345678901234'),mac_key=from_hex('e224262820223456789012345678901234567890123456789012345678901234'),configuration=cfg)# ProcessData itselfpd=ProcessData(uo=uo_aes,config=cfg)result=pd.call(from_hex('6bc1bee22e409f96e93d7e117393172a'))print(from_hex('95c6bb9b6a1c3835f98cc56087a03e82')==result)For more usage examples please refer to tests and ourAPI
documentation.DependenciespipinstallpycryptorequestsOr to install to home directorypipinstall--userpycryptorequestsIf the errorImportError: No module named Cryptois thrown it’s
needed to run pip with--upgradeand update pycrypto to the latest
version.CompatibilityWe should be compatible with Python 2.6+ and Python 3+.TroubleshootingError in installation of dependencies (cryptography, pyOpenSSL):sorry, but this version only supports 100 named groups[100-named-groups]Solution: Install downgraded version of pycparser and pyOpenSSL:pip install pycparser==2.13
pip install pyOpenSSL==0.13
pip install cryptographyYou may need to install some deps for the python packagesyum install gcc g++ openssl-devel libffi-devel python-develSNI on Python < 2.7.9TLS SNI support was added to Python. For earlier versions SNI needs to
be added to Requests networking library.pip install urllib3
pip install pyopenssl
pip install ndg-httpsclient
pip install pyasn1Mac OSX installationFor new OSX versions (El Capitan and above) the default system python
installation cannot be modified with standard means. There are some
workarounds, but one can also use--userswitch for pip.pip install --user cryptography
Package: ebclient.py
With this repo you can useEnigma
Bridgeencryption service.Installationpipinstallebclient.pyUsageCalling processData():fromebclient.process_dataimportProcessDatafromebclient.uoimportConfiguration,Endpoint,SimpleRetry,UOfromebclient.crypto_utilimport*# Construct general configuration (endpoint, request config)cfg=Configuration()cfg.endpoint_process=Endpoint.url('https://site2.enigmabridge.com:11180')cfg.api_key='API_TEST'# UO you want to work withuo_aes=UO(uo_id=0xee01,uo_type=0x4,enc_key=from_hex('e134567890123456789012345678901234567890123456789012345678901234'),mac_key=from_hex('e224262820223456789012345678901234567890123456789012345678901234'),configuration=cfg)# ProcessData itselfpd=ProcessData(uo=uo_aes,config=cfg)result=pd.call(from_hex('6bc1bee22e409f96e93d7e117393172a'))print(from_hex('95c6bb9b6a1c3835f98cc56087a03e82')==result)For more usage examples please refer to tests and ourAPI
documentation.DependenciespipinstallpycryptorequestsOr to install to home directorypipinstall--userpycryptorequestsIf the errorImportError: No module named Cryptois thrown it’s
needed to run pip with--upgradeand update pycrypto to the latest
version.CompatibilityWe should be compatible with Python 2.6+ and Python 3+.TroubleshootingError in installation of dependencies (cryptography, pyOpenSSL):sorry, but this version only supports 100 named groups[100-named-groups]Solution: Install downgraded version of pycparser and pyOpenSSL:pip install pycparser==2.13
pip install pyOpenSSL==0.13
pip install cryptographyYou may need to install some deps for the python packagesyum install gcc g++ openssl-devel libffi-devel python-develSNI on Python < 2.7.9TLS SNI support was added to Python. For earlier versions SNI needs to
be added to Requests networking library.pip install urllib3
pip install pyopenssl
pip install ndg-httpsclient
pip install pyasn1Mac OSX installationFor new OSX versions (El Capitan and above) the default system python
installation cannot be modified with standard means. There are some
workarounds, but one can also use--userswitch for pip.pip install --user cryptography
Package: ebcloudstore
ebcloudstore is a sdk for 53iq cloudhello,worldfromebcloudstore.clientimportEbStorestore=EbStore("your token")r=store.upload("/your/file/path/hello.jpg")print(r)use in tornadodefpost(self):iflen(self.request.files)>0:file_metas=self.request.files["myfile"]formetainfile_metas:fromebcloudstore.clientimportEbStorestore=EbStore("your token")r=store.upload(meta['body'],meta['filename'],meta["content_type"])self.write(r)use in djangodeftest(request):ifrequest.method=="POST":iflen(request.FILES.dict())>=1:f=request.FILES["myfile"]fromebcloudstore.clientimportEbStorestore=EbStore("your token")r=store.upload(f.read(),f.name,f.content_type)returnHttpResponse(r)callback after finishedfromebcloudstore.clientimportEbStore# will post the body data result to callback_url when upload finished (5 seconds timeout)store=EbStore("your token",action="callback",callback_url="http://your.domain.receive")r=store.upload("/your/file/path/hello.jpg")set upload timeoutfromebcloudstore.clientimportEbStore,EbStoreUploadTimeoutExceptionstore=EbStore("your token")try:# 20 seconds timeoutr=store.upload("/your/file/path/hello.jpg",timeout=20)print(r)exceptEbStoreUploadTimeoutException:print("timeout!please retry")redirect after finishedfromebcloudstore.clientimportEbStore# will redirect the referer url when upload finishedstore=EbStore("your token",action="redirect",referer="http://your.domain.receive")r=store.upload("/your/file/path/hello.jpg")tips: also can use javascript in web browser direct upload file to cloud serverInstallationAutomatic installation:pip install ebcloudstoreonce you want to use this sdk,first of all you need a token, apply for by email totsengdavid@126.comonly python3.x supported
Package: ebcommander
OverviewEBCommander is intended as an interaction layer between Python and EBCommand (https://command.elektrobit.com). It can either be used as a module or directly via Commandline.PreconditionsThe script depends on the following Python packagesbeautifulsoup4requestspyyamlUse as moduleImport EBCommand.from ebcommander import EbCommandCreate an instance (this starts the initial data retrieval which may take a while, therefore, it should be considered to run it asynchronously).commander = EbCommand('your-user', 'your-password')For more information please have a look atdoc.Use from the CommandlineDirect callFor simple requests (e.g. just to get a glimpse at a specific file) the script can be called with the following argumentsArgumentDescription--jsonJSON file to which filtered data shall be written--yamlYAML file to which filtered data shall be written--filterFile filter pattern--downloadPath to which the files shall be downloadedComplex callsFor more versatile operations a config file must be provided. It can contain several settings to apply filters on projects, distributions, versions and files, store JSON and YAML files and download the retrieved files. For more information see example-config.yamlThe config is provided by the following argumentsArgumentDescription--configPath to config for more complex setupsRegardless, if direct or compex calls, the following arguments must be providedArgumentDescription--userEBCommand username--passwordEBCommand user passwordAdditionally, the following arguments can optionally be providedArgumentDescription--proxy-httpHTTP proxy  (e.g.http://localhost:1234)--proxy-httpsHTTPS proxy (e.g.https://localhost:1234)
Package: eb-create-environment
eb-environment-creationTired of byzantine EB environment and RDS instance creation workflows? Use this tool to set up Elastic Beanstalk
environments and linked RDS instances simply, without having to rely on the AWS interface. The tool ships with sensible
defaults, which may be overridden if desired.Instalationpip install eb-create-environmentUsageusage: eb-create-environment [-h] [-c CONFIG] [-a APPLICATION_NAME]
                             [-e ENVIRONMENT_NAME] [-p PROFILE] [-r REGION]
                             [--db-only]

Set up linked EB and RDS instances

optional arguments:
  -h, --help            show this help message and exit
  -c CONFIG, --config CONFIG
                        Specify a custom config file
  -a APPLICATION_NAME, --application_name APPLICATION_NAME
                        Elastic Beanstalk application name
  -e ENVIRONMENT_NAME, --environment_name ENVIRONMENT_NAME
                        Elastic Beanstalk environment name
  -p PROFILE, --profile PROFILE
                        Specify an AWS profile from your credential file
  -r REGION, --region REGION
                        Specify an AWS region region
  --db-only             Skip setup of application and environment. Requires
                        application and environment to exist already.
  --print-default-config
                        Print default config and exitOverride default configs by createing a custom config yaml file and specify its path using the--configoption (seeCustomizing the config file)Print defaults with the--print-default-configoptionElastic beanstalk configuration (application name, authentication profile name, default region) are read from the.elasticbeanstalk/config.ymlfile if it exists. Otherwise, the user will be prompted for these values and the
config file will be created.If arguments are missing the user will be prompted for required inputs.If the desired environment already exists, skip environment setup and create an associated RDS instance using the--db-onlyoption.If--db-onlyis not selected,eb-create-environmentwill create an EB environment with the specified parameters,
create a database in the same VPC, create the necessary security groups, and set theDATABASE_URLenvironment
variable on the EB environment.Customizing the config fileTo get a new config file,eb-create-environment --print-default-config > .elasticbeanstalk/ENVIRONMENT_NAME.ymlThe default config file iseb_create_environment/default_config.yml.eb-create-environmentwill use this file as it's config file if no--configoption is passed.You can override this default by copying this file, modifying its values, and specifying its path using the--configoption.  It is recommended that you include these files in your codebase in a directory called.elasticbeanstalk.Params under theElasticBeanstalktop-level key are used ineb_create_environment/eb_setup.pywhile params under theRDStop-level key are used ineb_create_environment/database.py.
Package: ebddocx2table
ebddocx2table🇩🇪 Dieses Repository enthält ein Python-Paket namensebddocx2table, das genutzt werden kann, um aus .docx-Dateien maschinenlesbare Tabellen, die einen Entscheidungsbaum (EBD) modellieren, zu extrahieren (scrapen).
Diese Entscheidungsbäume sind Teil eines regulatorischen Regelwerks für die deutsche Energiewirtschaft und kommen in der Eingangsprüfung der Marktkommunikation zum Einsatz.
Die mit diesem Paket erstellten maschinenlesbaren Tabellen können mitebdtable2graphin echte Graphen und Diagramme umgewandelt werden.
Exemplarische Ergebnisse des Scrapings finden sich als .json-Dateien im Repositorymachine-readable_entscheidungsbaumdiagramme.🇬🇧 This repository contains the source code of the Python packageebddocx2table.RationaleAssume, that you want to analyse or visualize the Entscheidungsbaumdiagramme (EBD) by EDI@Energy.
The website edi-energy.de, as always, only provides you with PDF or Word files instead ofreallydigitized data.The packageebddocx2tablescrapes the.docxfiles and returns data in a model defined in the "sister" packageebdtable2graph.Once you scraped the data (using this package) you can plot it withebdtable2graph.How to use the packageIn any case, install the repo from PyPI:pipinstallebddocx2tableUse as a libraryimportjsonfrompathlibimportPathimportcattrsfromebddocx2tableimportTableNotFoundError,get_all_ebd_keys,get_ebd_docx_tables# type:ignore[import]fromebddocx2table.docxtableconverterimportDocxTableConverter# type:ignore[import]docx_file_path=Path("unittests/test_data/ebd20230629_v34.docx")# download this .docx File from edi-energy.de or find it in the unittests of this repository.# https://github.com/Hochfrequenz/ebddocx2table/blob/main/unittests/test_data/ebd20230629_v34.docxdocx_tables=get_ebd_docx_tables(docx_file_path,ebd_key="E_0003")converter=DocxTableConverter(docx_tables,ebd_key="E_0003",chapter="MaBiS",sub_chapter="7.42.1: AD: Bestellung der Aggregationsebene der Bilanzkreissummenzeitreihe auf Ebene der Regelzone",)result=converter.convert_docx_tables_to_ebd_table()withopen(Path("E_0003.json"),"w+",encoding="utf-8")asresult_file:# the result file can be found here:# https://github.com/Hochfrequenz/machine-readable_entscheidungsbaumdiagramme/tree/main/FV2310json.dump(cattrs.unstructure(result),result_file,ensure_ascii=False,indent=2,sort_keys=True)Use as a CLI toolto be writtenHow to use this Repository on Your Machine (for development)Please follow the instructions in ourPython Template Repository.
And for further information, see theTox Repository.ContributeYou are very welcome to contribute to this template repository by opening a pull request against the main branch.Related Tools and ContextThis repository is part of theHochfrequenz Libraries and Tools for a truly digitized market communication.
Package: ebeer
ebeer - pre-trained CNNCNN Trained to predict brazilian beersExample implementationimport ebeer

n_pos = ebeer.BeerClassifier.predict("assets/beer_imgs/0.jpg")

print("Label:", ebeer.DataLabel[n_pos]["name"])Simple example implementationimport ebeer

beerData = ebeer.BeerClassifier.predict_simple(
    "assets/beer_imgs/0.jpg")

print('beerData:', beerData)