Saravanan666/pypi-org huggingface dataset:
Package: enforce-notebook-run-order
enforce-notebook-run-orderEnforce the run order of Jupyter notebooks.Jupyter notebooks are great for interactive data analysis. However, when
they can encourage a bad habit: running cells out of order. This can
lead to notebooks being committed to the repository in a state where
they don't run from top to bottom, and other collaborators may receive
different results when running the notebook from top to bottom.enforce-notebook-run-orderenforces the run order of a notebook by
raising an exception if any cells are run out of order.Installationenforce-notebook-run-ordercan be installed via pip:pip install enforce-notebook-run-orderIt can also be set up as apre-commit hook.
See thepre-commit hooksection for more details.Usageenforce-notebook-run-ordercan be used as a standalone script, or as apre-commit hook.StandaloneTo useenforce-notebook-run-orderas a standalone script, simply run
it with the path to the notebook(s) you want to check:nbcheck my_notebook.ipynb my_other_notebook.ipynbOr point it to a directory to check all notebooks in that directory:nbcheck my_notebooks/If no paths are specified,nbcheckwill check all notebooks in the
current directory.You can also use the fullenforce-notebook-run-ordercommand, but thenbcheckcommand is provided as a convenience.pre-commit hookTo useenforce_notebook_run_orderas a pre-commit hook, add the
following to your.pre-commit-config.yaml:repos:
-   repo: https://github.com/christopher-hacker/enforce_notebook_run_order
    rev: 1.3.1
    hooks:
    -   id: enforce-notebook-run-orderdisabling output checksBy default,enforce-notebook-run-orderwill check that the output of
each cell matches the output of the previous run. This will catch cases
where a cell is run out of order, but the execution count is still
sequential. However, this can be problematic if the output of a cell
changes between runs, such as when using random numbers. It can also be
problematic if the notebook runs for a long time.There are three ways to disable output checks:Disabling running all notebooks using the--no-runflag:nbcheck --no-run my_notebook.ipynbDisabling running a single notebook using theno-runmarkerin
the first cell of the notebook:# no-run
print("This notebook will not be run")Disabling output checks for a single cell using theno-check-outputmarker:# no-check-output
print("This cell will be run, but its output will not be checked")
Package: enforce-typehints
Force static type hints at import timeThis runs mypy on all imports, and currently just dumps the text, but
that shows the concept.Properly hooking both path and file imports might requir something
more, and raising proper import errors when files don't pass is also
left to do.However, conceptually it sort of works, and simply importing it in a
software can toggle the flag on to force strict typing more.To use it, add  "import typeforce.enforcing"  to the modules of the initial
code, and watch your code explode when you have a badly typed module.Also note, that imports will not just be slow, they will be very slow.
Package: enforce-typing
Adds a simple decoratorenforce_typesthat enables enforcing strict
typing on a function or dataclass using annotations.Works with collection types and subtypes for exampleDict[str, Tuple[int, int]], and with special types asOptionalandAny.Seeing as this uses type annotations fromPEP 484, >=Python 3.5 is
required.PyPi project page:https://pypi.org/project/enforce-typing/Heavily inspired fromthis SO postso credit goes mostly to him.InstallationOther than downloading from PyPi withpip, you may also clone the repository
and run the usual setuptools process:$> git clone https://github.com/matchawine/python-enforce-typing.git && cd python-enforce-typing
$> python setup.py {build,install}UsagefromtypingimportAny,Union,Optionalfromdataclassesimportdataclassfromenforce_typingimportenforce_types@enforce_types@dataclass(frozen=True)classToto(object):this_or_that:Union[str,int]anything:Anyname:str=""value:int=1maybe_not:Optional[bool]=None>>>Toto(this_or_that=list(),anything=2)TypeError:Expectedtype'typing.Union[str, int]'forattribute'this_or_that'butreceivedtype'<class 'list'>')>>>Toto(this_or_that=1,anything=2,maybe_not=0)TypeError:Expectedtype'typing.Union[bool, NoneType]'forattribute'maybe_not'butreceivedtype'<class 'int'>')>>>Toto(this_or_that=1,anything=2,name=3)TypeError:Expectedtype'<class 'str'>'forattribute'name'butreceivedtype'<class 'int'>')>>>Toto(this_or_that=1,anything=2,value=3.0)TypeError:Expectedtype'<class 'int'>'forattribute'value'butreceivedtype'<class 'float'>')>>>Toto(this_or_that=1,anything=2)Toto(this_or_that=1,anything=2,name='',value=1,maybe_not=None)>>>Toto(this_or_that="titi",anything=list(),maybe_not=False)Toto(this_or_that='titi',anything=[],name='',value=1,maybe_not=False)
Package: engage-django-sdk
Engage is an open source platform for deploying and managing
applications, either on your own servers or in the public cloud.
It automates server provisioning, application installation,
configuration, and upgrades.This Python package distribution is an SDK which enables you to
package your Django applications for deployment via Engage.
Currently, only deployment on genForma’s servers is supported.
Support for deploying on your own servers (or development machine)
will be forthcoming in a future release. If you would like to
participate in beta testing of either the cloud or on-premises version
of Engage, please contactsupport@genforma.com.Two documents are available to help you with this SDK:The Quickstart Guide athttp://beta.genforma.com/doc-django-quickstart.html(also available in source form in the included quickstart_guide.rst file).The Reference manual athttp://beta.genforma.com/sdk_refman/index.html(also available in source form in the refman subdirectory).InstallationThis package requires setuptools
(http://pypi.python.org/pypi/setuptools).  If you download the SDK
archive to your system, you can install it usingeasy_installas follows:easy_install <archive_name>Alternatively, you can usepipfor the installation. You can also
skip the downloading step and install it directly from the Python
Package Index (http://pypi.python.org):easy_install engage-django-sdkNoticeEngage and the Engage SDK is copyright 2010, 2011 by the genForma
Corporation. It is made available under the Apache V2.0 license.This distribution does not include any third party software.AuthorsThe following people contributed to this software:Jay Doane (jay at almery dot com)Jeff Fischer (jeffrey dot fischer at genforma dot com)Rupak Majumdar (rupak at mpi-sws dot org)
Package: engage-scraper
Engage ScraperInstallationpip i engage-scraperAboutThe Engage Scraper is a standalone library that can be included in any service. The purpose of the scraper is to catalog a municipality's council meeting agendas in a usable format for such things as theengage-clientandengage-backend.To extend this library for your municipality, override the methods of the base class from thescraper_core/directory and put it inscraper_logics/, prefacing it with your municipality name. For an example see the Santa Monica, CA example in thescraper_logics/directory. The Santa Monica example makes use ofhtmlutils.pybecause it requires HTML scraping for its sources. Feel free to make PRs with new utilities (for example, PDF scraping, RSS scraping, JSON parsing, etc.). The Santa Monica example also uses SQLAlchemy for its models and that is what is preferred for use in thedbutils.py, however you can use anything. ORMs are preferred rather than vanilla psycopg2 or the like.To use the postgresdbutils.pymake sure to set these 5 environment variables (checkdev.envand see docker-compose usage below):POSTGRES_HOSToptionala host or hostname that is resolvable. Defaults to localhostPOSTGRES_USERrequiredPOSTGRES_PASSWORDrequiredPOSTGRES_PORToptionaldefaults to 5432POSTGRES_DBrequiredThe database used for cataloging your municipality's agendas.An example of using the Santa Monica scraper libraryfrom engage_scraper.scraper_logics import santamonica_scraper_logic

scraper = santamonica_scraper_logic.SantaMonicaScraper(committee="Santa Monica City Council")
scraper.get_available_agendas()
scraper.scrape()For SantaMonicaScraper instantiationFor twitter utils used in SantaMonicaScraerTo use the santa monica logic, you must create an App on twitter (will work to make this optional). Following making an app, please use the structuredev.envfile to insert the appropriate parameters. But make sure not to make changes to the repository's file. Copy the file up one directory and edit it there. Following the edit, use thedocker-compose.ymlfor testing. You can add examples toexamples/and run them from the script inscripts/using the docker container.For the SantaMonicaScraper class the init has these optionstz_string="America/Los_Angeles"# defaulted stringyears=["2019"]# defaulted array of strings of yearscommittee="Santa Monica City Council"# defaulted string of council nameThe exposed API methods for scraper are.get_available_agendas()# To get available agendas, no arguments.scrape()# To process agendas and store contentsFeel free to expose moreWrite wrappers for internal functions if you want to expose themWrite extra functions to handle more complex municipality-specific tasks
Package: engagespot
This is the official Python library for communicating with Engagespot REST API. Send multi-channel notifications from your python app.Installationpip install engagespotPrerequisitesYou need Engagespot API KEY and API SECRET from yourdashboardto get started. If you don't have one, just get one for free.Sending a notificationfromengagespotimportEngagespotclient=Engagespot(api_key="ENGAGESPOT_API_KEY",api_secret="ENGAGESPOT_API_SECRET")send_request={"notification":{"title":"Test from Python library🔥"},"recipients":["uid_123456"]}response=client.send(send_request)ReferEngagespot REST API Docsto get the list of all supported parameters.Creating or updating a useruser_profile={"name":"Python User","email":"python@engagespot.co"}response=client.create_or_update_user("pythonuser2");
Package: engawa
engawaNOT YET FULLY TESTEDA simple implementation to pre-train BART from scratch with your own corpus.UsageSoon, I will make this pip-installable with CLI commands but at the moment, you need to run it as a repository.InstallationpipinstallengawaBuild tokenizerengawatrain-tokenizer--data-path/path/to/train.txt--save-dir/path/to/save# Checkout other options byengawatrain-tokenizer--helpPre-train BARTengawatrain-model\--tokenizer-file/path/to/tokenizer.json\--train-file/path/to/train.txt\--val-file/path/to/val.txt\--default-root-dir/path/to/save/things# Checkout other options byengawatrain-model--help
Package: engbricks
Engineering BricksInstalationpip install engbricksClassesformulas_queueFormulaslist_alllist_moduleslist_formulasview_formulaview_formula_latexUsageLista available modulesengbricks.list_modules()Lista available module functionsengbricks.list_formulas("Arithmetic")View a formulaengbricks.view_formula("Arithmetic", "Subtraction", True)or to get in latexengbricks.view_formula_latex("Arithmetic", "Subtraction")Create a new queue to calculateq = engbricks.formulas_queue("Queue 1")q.add_formula("Arithmetic", "Subtraction")q.add_formula("Arithmetic", "Addition")q.print_formulas()q.print_variables()
Package: engcoolprop
Keywords: engcoolprop setuptools development
Platform: any
Classifier: Development Status :: 4 - Beta
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: End Users/Desktop
Classifier: Topic :: Software Development :: Build Tools
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Description-Content-Type: text/x-rst
Provides-Extra: dev
Provides-Extra: test
Package: eng-econ
engineering-economics-basicsOverviewThis package provides some of the basic functions of engineering economicsYou can find it at:https://pypi.org/project/eng-econ/Installpip install eng_econUsage# Using uniform_gradient_present_worth_factor as an example
from eng_econ.factors import uniform_gradient_present_worth_factor
uniform_gradient_present_worth_factor(0.01, 20)DocumentsSeehttps://songyu-wang.github.io/engineering-economics-basics/docs/eng_econ/index.htmlTest Coverageseehttps://songyu-wang.github.io/engineering-economics-basics/htmlcov/index.htmlReferenceNational Council of Examiners for Engineering and Surveying(NCEES). FE Reference Handbook, 9.5 Edition, (ISBN 978-1-932613-67-4).
Package: engi1020
This library wraps several other libraries and re-exports them.
This makes for a messy namespace, but that simplifies the business of importing
libraries for very new students, as they only need to write::from engi1020 import *The libraries (re-)imported by this library are:https://matplotlib.org/api/pyplot_api.html[matplotlib.pyplot]A plotting library using a MATLAB-like APIhttps://pypi.org/project/nanpy[nanpy]A Python library for interacting with an Arduino board
Package: engine
Warning: This is an alpha release for those who are interested inchecking progress. No documentation and not for production use.Pure python extensible SQL database engine supporting the a simple subset
of ANSI SQL 92 including NULL values, foreign key constraints and simple joins.The database is fully DB-API 2.0 compliant and is written in layers so that it
can easily be extended to support different storage mechanisms.Although significantly improved this database has some issues which prevent
it from being reliable. Ideal for development work, not suitable for use
with production code. Formally SnakeSQL.
Package: engine4
engine4-python⚙️ Python library for the ENGINE4 API.InstallationUsepipto install the package:pip3 install engine4UsageFirst of all, you importENGINE4so that you can create an instance of the class.
You need to pass thebase_urlof the API server:fromengine4importENGINE4engine4=ENGINE4('https://test.engine4.io/')Now you can authenticate yourself withusername,passwordandclient_id:defauthenticate()->str:username='my_username'password='my_password'client_id='my_client_id'result=engine4.authenticate(username,password,client_id)returnresult.access_tokenThe access token is required for the following calls.Here you can find examples:fromengine4importFetchFilterOptionsaccess_token=authenticate()deffetch()->list:entity_id='12e2eb88-814a-0a98-40e2-b006586dfd59'skip=0take=2with_long_values=Falseis_active=Truefilter=FetchFilterOptions('CreatedDate','>','2018-01-01T00:00:00.000Z')result=engine4.fetch(access_token,entity_id,skip,take,False,is_active,filter)returnfetch_result['items']ChangelogSeeCHANGELOG.md.LicenseSeeLICENSE.
Package: enginEcon
This module providesInterest table calculators in form of[A/P,i%,n] --> AP(i,n)CashFlow Object that helps with adding and calculation of worthTODO1) Test cases to verify everything is correct    
2) adding more calculation to CashFlow object
    2a. B/C calculations
    2b. MIRR calculations
    2c. IRR calculation
    2d. incremental comparisons
Package: engineCrawler
Image ScraperSimple python module for scraping images from the web, created for AI development.Featuresscrape images from google.com and duckduckgo.comsearch duplicated and eliminate them.allow to create complex databases from the engine top search of supplied keyword.use tor network with firefox for scraping. (optional)Basic Usage>> imageCrawler.py -k cats dogs
>> Select by number the queries to ignore:
>> ( 0 ) cats
>> ( 1 ) cats with hats
>> 1
>> Start with cats download 4000 at engines\cats
>> 100%
>> Select by number the queries to ignore:
>> ( 0 ) dogs
>> ( 1 ) dogs with hats
>> 1
>> Start with dogs download 4000 at engines\dogs
>> 100%
>> Searching duplicated...
>> ENDResults:\engines
    \cats
        \ keys.json
        \ +4000 images files
    \dogs
        \ keys.json
        \ +4000 images filesInstalling(1) Install.FirefoxTorBrowser(OPTIONAL).(2) Download and add to path.geckodriver combabilitycheckgeckodriver(3) Run this command.pip install engineCrawler
Package: engineerai
Ai ToolsTranscribe AudiofromEngineerAiimport*ai=EngineerAi()print(ai.transcribe_audio(lang="en",audio_file="simple.mp3"))Text To SpeechfromEngineerAiimport*ai=EngineerAi()print(ai.text_to_speech(text="Hello Ai",lang="en",filename="simple.mp3"))Chat With AifromEngineerAiimport*ai=EngineerAi()print(ai.chatai(key='your openai key',question="Hi"))Generate soundfromEngineerAiimport*ai=EngineerAi()frequencies=[440.0,523.25,659.26]duration_ms=1000# 1s=1000output_file="output.wav"ai.generate_sound(frequencies,duration_ms,output_file)Text to frequenciesfromEngineerAiimport*ai=EngineerAi()ai.text_to_frequencies(text='hi')Text to soundfromEngineerAiimport*ai=EngineerAi()text='hi'#your textduration_ms=1000#1s = 1000output_file='simple.wav'# outout fileai.text_to_sound(text='hi',duration_ms=duration_ms,output_file=output_file)Frequencies to textfromEngineerAiimport*ai=EngineerAi()frequencies=[400.0,500.2]# frequencies in listprint(ai.frequencies_to_text(frequencies=frequencies))Convert photo from modern to oldfromEngineerAiimport*ai=EngineerAi()print(ai.photo_modern_to_old(filename='input.jpg',output_file='output.jpg'))Write text on imagefromEngineerAiimport*ai=EngineerAi()print(ai.write_on_image(filename='simple.jpg',output_file='outut.jpg',text='hi',position='center',text_color=(350,350,350),font_name='aria',font_size=30,max_line_length=20))Convert image formatfromEngineerAiimport*ai=EngineerAi()print(ai.convert_image_format(filename='simple.jpg',output_file='output.png',output_format='png'))Enhance image qualityfromEngineerAiimport*ai=EngineerAi()print(ai.enhance_image_quality(filename='simple.jpg',output_file='output.png'))Convert xlsx to sqlitefromEngineerAiimportEngineerAiai=EngineerAi()print(ai.xlsx_to_sqlite(filename='simple.xlsx',output_file='output.sqlite'))Installingpip3install-UengineeraiCommunityJoin the telegram channel:https://t.me/tshreb_programming
Package: engineeringdoe
EngineeringDoEIntroductionThis package is a wrapper of pyDOE2 package. It is used to generate design of experiments (DoE) for engineering applications in a way that are easy to set up and export as csv files.InstallationTo install the package, run the following command in the terminal:pip install EngineeringDoEUsageThere package support two phases: Generation of DoE and tracking of the evaluation of the DoE design cases.Generation of DoEfromEngineeringDoEimportDoE,VariableDefinition,Variablev1=VariableDefinition("Thickness",bounds=(0.1,0.5),units="m")v2=VariableDefinition("Width",type="discrete",options=[4,5,6])v3=VariableDefinition("Height",bounds=(0.1,0.5),units="m")PerformanceMetricDefinition("Weight","kg")# create a DoE object with 10 samples distrubuted according to a Latin Hypercube Sampling.doe=DoE(variables=[v1,v2,v3],n=10)# export the DoE to a csv filedoe.export("doe.csv")
Package: engineering-notation
PurposeTo easily work with human-readable engineering notation.  I wrote this as a quick tool for my own use.
I found that I was writing the same functionality into multiple packages and would like a quick pip-installable
package to take care of this manipulation for me.  The package should be easily extended for other use cases.
The package is unit-less, so only operates on numeric values.  Unit detection may be added in future versions.More information may be found atfor(embed).InstallationInstall using pip:pip install engineering_notation.Status and ContributionsThis project currently has 100% test coverage.  Have a look intest.pyfor examples of how to use
this library. To execute the tests, runpytestfrom the main directory or,
in some environments, it may be necessary to runpython3 -m pytest.Any contributions must pass 100% of current tests and pass flake8.  To execute
flake8, navigate to the project directory andpython3 setup.py flake8.Your pull request will automatically be run through testing and flake8 checks and
any pull requests that do not pass these will be put on hold pending passing.UseThere are multiple ways of initializing a number to a particular value, but a string is the preferred method:>>> from engineering_notation import EngNumber
>>> EngNumber('10k')
10k
>>> EngNumber('10000')
10k
>>> EngNumber(10000)
10k
>>> EngNumber(10000.0)
10k
>>> EngNumber(1e4)
10kWhere decimals are involved, we use a default precision of 2 digits:>>> EngNumber('4.99k')
4.99k
>>> EngNumber('4.9k')
4.90kThis behavior can truncate your results in some cases, and cause your number to round.  To specify more or less
digits, simply specify the precision in the declaration:>>> EngNumber('4.999k')
5k
>>> EngNumber('4.999k', precision=3)
4.999kMost operations that you would perform on numeric values are valid, although all operations are not implemented:>>> EngNumber('2.2k') * 2
4.40k
>>> 2 * EngNumber('2.2k')
4.40k
>>> EngNumber(1.2) > EngNumber('3.3k') 
False
>>> EngNumber(1.2) <= EngNumber('3.3k')
True
>>> EngNumber('3.3k') == EngNumber(3300)
TrueAll of the above operations are also possible on theEngUnit()class as well.  The only difference is
that units must match for addition/subtraction/comparison operations.  Although multiplication and division
operations will work numerically, they may not always be strictly correct.  This is because EngUnit is not
intended to replace a computer algebra system!>>> EngUnit('2s') / EngUnit('4rotations')
0.5s/rotationsAdditionally, since there are 'reserved' letters for sizing the number, you must be careful with your units!>>> EngUnit('2mm')
2mm        # <<< this value equivalent to "0.002m"
>>> EngUnit('2meter')
2meter     # <<< this value is equivalent to "0.002eter", the "m" was used to scale the unit!
>>> EngUnit('2', unit='meter')   # <<< this will work betterContributionsContributions are welcome.  Feel free to make feature requests in the issues.
Package: engineering-tool
Engineering ToolThe tool is a physic formula for Engineering or Science :Python 3.6+.FeaturesArea FormulaVolume FormulaElectric FormulaPressure FormulaTemperature FormulaSetupFirst : Check python version and PIP versionSecond : Install lib engineering-toolThird : Test lib in python shellExamplefromengineering_tool.electricsimportPowervoltage=15# Voltcurrent=2.5# Amppower=Power.VoltageAndCurrent(voltage,current)print("Power is%.2fWatt"%power)DocumentationThe Engineering tooldocumentationis the best place to start.after that try opening an issue.
Package: engineer_number
Engineer Number calculate————————-This module can easily calculate Engineer Number.This version requires Python 3 or later.Python 2 version may be available but no support Python 2 version.for example.0.>>> from engineer_number import EngineerNumber1.>>> nano470 = EngineerNumber(‘470n’)>>> nano470470.000n>>> nano470[‘u’]‘0.470u’2.>>> c104 = EngineerNumber(‘10p’) * 10 ** 4>>> c104 = EngineerNumber(‘10p’, 4) # equal to above line>>> c104[‘u’]‘0.100u’>>> c104[‘n’]‘100.000n’3.>>> G1 = EngineerNumber(‘1G’)>>> M103 = EngineerNumber(‘103M’)>>> G1 / M1039.7094.>>> Vcc = 5>>> k47 = EngineerNumber(‘47k’)>>> Ibeo = Vcc / k47>>> Ibeo106.383u>>> Ibeo[‘m’]‘0.106m’>>> Iceo = Ibeo * 140>>> Iceo[‘m’]‘14.894m’>>> Io = Ibeo + Iceo>>> Io15.000m>>> Io[‘’]‘0.015’5.>>> kx = EngineerNumber(‘47’, 2)>>> kx4.700k>>> kx[‘’]‘4700.000’
Package: engineerquiz
The Engineerness TestUntil now, the internet has been largely divided on what makes one an exceptional engineer. Too many opinions. Too many
hot takes. Too many questionable recommendations to follow.That doesn't really change now.I've just collected some of them into a quiz.Getting the QuizIt's recommended -- but not necessary -- to runengineerquizin a virtual environment:$python3-mvenvquiz.env
$sourcequiz.env/bin/activateTo installengineerquizrun:(quiz)$pipinstallengineerquizRunning the Quiz(quiz)$engineerquiz