Saravanan666/pypi-org huggingface dataset:
Package: elki-interface
elki_interfaceAn example of how one could realize a python interface for the ELKI datamining tool.This is not a wrapper, just a CLI with a few python-esque bells and whistles.At most, it is an example of how one could go about building a clean python interface from python to the ELKI CLI. Currently this project only exposes the HiCS method for outlier detection.CiteI am in no way affiliated with the developers of the ELKI tool. All credit goes to them.Cf.https://elki-project.github.io/for the official ELKI website. Should you use this tool, please follow the instructions on the ELKI website of how and what to cite!UsageFor a local install,cdto the root of this repository and simply;python setup.py develop
Package: elk-mq
ElkMQ (Event Log driven Kompakt Message Queue)ElkMQ is a pure rust implementation of the Message Queue pattern over Redis.What can I do with ElkMQ?ElkMQ allows asynchronous message passing over a Redis instance. If a secure Redis instance is already deployed,
ElkMQ can connect to it and use it to communicate.Each message is guaranteed to be delivered only once. This allows for safe N:M client communication. Awaiting
responses is also allowed by ElkMQ. This makes ElkMQ usable as a communication backbone for independent services.Using ElkMQ in existing rust programs is as easy as including it in your dependency list. Using ElkMQ as a python module is as easy as installing it with Pip.Minumum requirementsRedis 6.0Rust 1.65Python 3+ (for the python module)ExamplesRust examplesThe examples below show the usage of ElkMQ for rust clients. They show how events can be enqueued, dequeued, and
awaited. Some examples also show their output.Enqueueing and dequeueing an event in a newly created queue is straightforward, see the following example:useelk_mq::{EventQueue,ServiceEvent,Timestamp,TimestampedEvent};fnmain(){// Create a queue with a nameletmutqueue:EventQueue=EventQueue::new("foo","redis://127.0.0.1");// Create an eventletevent:ServiceEvent=ServiceEvent::new(10,"test_event",Some("serialized_data".to_string()));// Enqueueing returns the event timestamp registered by the Redis instancelet_timestamp:Timestamp=queue.enqueue(&event).unwrap();// Dequeueing returns the timestamp of the event, and the event itself as a timestamped event typelettimestamped_event:TimestampedEvent=queue.dequeue().unwrap();println!("{:#?}",timestamped_event)}The output this example generates is listed below:TimestampedEvent(
    1669887505996,
    ServiceEvent {
        request_uuid: 215842608724208526221701166594411877883,
        timeout: 10,
        action: "test_event",
        payload: Some(
            "serialized_data",
        ),
    },
)Awaiting a response for an event is similar to enqueueing the event, save for the fact that the await can time
out. If this happens an EventQueueError is returned, and the program continues. Any service dequeueing events should
take care to verify if the timeout of an event is already expired before handling it. If a response is enqueued,
but the original event timeout has already expired, then the response will never be handled. This is not an issue
in regular use, but it will take up space in your Redis instance.// -- snip -- //// an event with a 20 second timeoutletevent:ServiceEvent=ServiceEvent::new(20,// timeout in seconds"test_awaited_event",// event nameSome("serialized_data".to_string()));// after 20 seconds this either panics with a TimeoutExpired error// or returns the received response as a TimestampedEventletresponse:TimestampedEvent=queue.await_response(&event).unwrap();// -- snip -- //Notes on the python moduleThe python module functions exactly the same as the Rust library. All python types mirror their rust counterparts,
except for TimestampedEvent. In python this is a(int, ServiceEvent)tuple to allow for easy destructuring of data.AuthorsTijmen Verhoef,tijmenmenno@gmail.com
Package: elkoep-mqtt
Elkoep-mqttA Python library that handles communication with inels over mqttiNELSby ElkoEP company.PypiRequirementsFor smooth using you need to have Python 3.9 or higher.InstallUse PyPI repositorypip install elkoep-mqttTestingI usetoxfor testing.$ pip install toxDevelopment statusSupported RF devicesSwitches (01, 02)Shutters (03, 21)Light dimmers (04, 05)RGB light (06)Switches with external temperature sensors (07)Wireless thermovalves (09)Temperature sensors (10)Thermostats (12)Flood detectors (15)Generic detector (16)Motion detector (17)Controllers/buttons (18, 19)Temperature and humidity sensors (29)Supported bus devicesSA3-01B (100)DA3-22M (101)GRT3-50 (102)GSB3-90Sx (103)SA3-02B (104)SA3-02M (105)SA3-04M (106)SA3-06M (107)SA3-012M (108)SA3-022M (109)FA3-612M (111)RC3-610DALI (114)IM3_20B (115)IM3_40B (116)IM3_80B (117)DMD3-1 (120)IM3-140M (121)WSB3-20 (122)WSB3-40 (123)WSB3-20H (124)WSB3-40H (125)GCR3-11 (128)GCH3-31 (129)GSP3-100 (136)GDB3-10 (137)GSB3-40SX (138)GSB3-60SX (139)GSB3-20SX (140)GBP3-60 (141)DAC3-04B (147)DAC3-04M (148)DCDA-33M (150)DA3-66M (151)ADC3-60M (156)TI3-10B (157)TI3-40B (158)TI3-60M (159)IDRT3-1 (160)JA3-018M (163)Virtual heating regulator (167)Virtual cooling regulator (168)
Package: elkomplex
📚🔢 Toy implementation of a complex number data type in PythonThis module is a basic implementation of complex numbers in Python.
The goal is to demonstrate basic know-how in Python packaging,
project managment, documentation and testing.This package is not in any way, shape or form suitable for production!💽 Install👨‍💻 Development mode$gitclonehttps://github.com/elkhadiy/elkomplex
$cdelkomplex
$python-mvenv.pyenv
$..pyenv/bin/activate
$pipinstall-e.[dev,test]💻 Example usage>>>fromelkompleximporti>>>frommathimporte>>>str(e**(i*pi))'-1.00 + 0.00 i'Intuitive interface>>>fromelkompleximporti>>>f"{i}"'0 + 1 i'>>>f"{i*i:0.2f}"'-1.00 + 0.00 i'>>>f"{2+3*i}"'2.0 + 3.0 i'>>>f"{(2+3*i)*(4+5*i):0.2f}"'-7.00 + 22.00 i'Create a complex number from real and imaginary parts>>>fromelkompleximportKomplex>>>Komplex.from_cartesian(2,3)Komplex(re=2.00,im=3.00,r=3.61,th=0.98)Create a complex number from polar coordinates>>>frommathimportpi>>>Komplex.from_polar(1,pi/4)Komplex(re=0.71,im=0.71,r=1.00,th=0.79)📋 ToDo✅ Package squeleton✅ Base complex class✅ Basic constructors✅ Formatting and printing✅ Pytest framework🚧 Basic Arithmetic methods✅ Addition✅ Substraction✅ Multiplication✅ Division✅ Comparison✅ Negation✅ Module✅ Inversion✅ Conjugate🚧 Power⬜ Advanced Math functions⬜ Exponent⬜ Sqrt⬜ Logarithm
Package: elk-stack
Table of ContentInstallationLicense[DEVELOPING]installationhow to install:pip install elk-stackLicense & copyright© AmirBahador Bahadori, Shahrood university Computer Engineering
Licensed under theMIT LICENSEDEVELOPING elk-stackTo Install elk-stack, along with the tools you need to develop and run tests,
run the following in your virtualenv:pipinstall-e.[dev]
Package: elk-waveform
Elk: A Waveform Catalogue ToolA Python package for managing and interacting with gravitational waveform catalogues.
Elk was initially designed to make working with numerical relativity catalogues easier.
These are normally distributed as directories full of HDF5 files, and can be a bit cumbersome to deal with.
Elk browses the contents of these directories and can assemble a catalogue based on the files in it.Free software: MIT licenseDocumentation:https://code.daniel-williams.co.uk/elk/FeaturesCreditsHistory0.11.3 (2019-08-23)First release on PyPI.
Package: ella
Ella is opensource CMS based on Django framework, designed for flexibility.It is composed from several modules:Ella coreis the main module which links the rest together. It
defines architecture on which other modules are built but doesn’t do
anything really usefull all alone.Ella core pluginsare plugins that are shipped in one package
together with Ella. There arearticlesandpositionswhich
we consider to be a basic toolbox for each Ella site.Other Ella pluginsare standalone applications (and therfore
not shipped with the core) that provide some
specific functionality usingElla’s architecture. We can mention
polls, galleries, quizes and many more.Feature highlights:Simple organization of content based on categoriesEfficent implementation of the published contentIn-build photo formating backendDjango-admin readyPlugin systemFlexibileScalableExtensibleCaching-friendlyWell testedProven in production environmentNewsCurrently, we released the3.x versionwhich features amajor cleanupof the code aremoval of unneeded dependencies.More news are on the way as we are going to make a nicely-tailored admin
specifically made for the need of news writers and editors.DocsDocs are hosted on readthedocs.org, go tohttp://ella.rtfd.org.CommunityWe stick with github to manage the issues, seehttps://github.com/ella/ella/issues.mailing list can be found atella-project@googlegroups.comIRC channel #ellacms on freenode.netQuickstartHave a look at the docs:http://readthedocs.org/docs/ella/en/latest/quickstart.html.Build statusMaster branch:
Package: ella-listingex
What is this?This package allows Ella users to change default behavior of category listing
pages. By default, each page has same number of objects (if there is enough
of them).Sometimes, this does not meet the site’s requirements. Very often, it is
demanded, that first page should be somehow different, e.g. list one more
article that is rendered in different style (like leading article). This
is unfortunately not possible to do without hackish workarounds in default Ella.How to use thisSetup is quite straightforward. First, install the package using pip or setuptools:pip install ella-listingexAdd the app to yourINSTALLED_APPS:INSTALLED_APPS = (
    ...,
    'ella_listingex',
    ...
)Configure theella_listingexto meet your requirements. Internally, this
app works by using Ella’sCUSTOM_VIEWSoverride. This means that we
are telling Ella to use our views instead of in-built ones.ella_listingexapplication redefines Ella’sListContentTypeview to provide additional
functionality. Therefore, we need to allowCUSTOM_VIEWSand set
theVIEWSvariable to the path ofella_listingex.viewsas shown
below:# Use custom views to support different number of items on the first and
# next pages of category listings.
CUSTOM_VIEWS = True
VIEWS = 'ella_listingex.views'Next step is to set the pagination:LISTINGEX_PAGINATE_BY = 10        # Default number of objects per page
LISTINGEX_FIRST_PAGE_COUNT = 11   # Number of objects on first pageTheella_listingexworks on all category listings which are not blacklisted.
If you need to turn the special behaviour off on some pages, use theLISTINGEX_BLACKLISTconfiguration option to provide list of regular
expressions which will be matched against category’stree_pathattribute.
If there is a match, the first page will be paginated normally:LISTINGEX_BLACKLIST = (           # Blacklist categories, whose tree_path
    r'^blogs',                    # matches '^blogs'
)
Package: ellapycount
ellapycountCalculate word counts in a text file!Installation$pipinstallellapycountUsageellapycountcan be used to count words in a text file and plot results
as follows:fromellapycount.ellapycountimportcount_wordsfromellapycount.plottingimportplot_wordsimportmatplotlib.pyplotaspltfile_path="test.txt"# path to your filecounts=count_words(file_path)fig=plot_words(counts,n=10)plt.show()ContributingInterested in contributing? Check out the contributing guidelines.
Please note that this project is released with a Code of Conduct.
By contributing to this project, you agree to abide by its terms.Licenseellapycountwas created by Tomas Beuzen. It is licensed under the terms
of the MIT license.Creditsellapycountwas created withcookiecutterand
thepy-pkgs-cookiecuttertemplate.
Package: ellar-cli
Ellar CLI Tool for Scaffolding Ellar Projects and Modules and also running Ellar CommandsIntroductionEllar-CLI is an abstracted tool for the Ellar web framework
that helps in the standard project scaffolding and other application commands.Ellar CLI is built onClickInstallationif you haveellarinstall readypip install ellar-cliUsageTo verify ellar-cli is working, run the command belowellar--helpThe above command should output this:Usage: Ellar, Python Web framework [OPTIONS] COMMAND [ARGS]...

Options:
  -p, --project TEXT              Run Specific Command on a specific project
  --install-completion [bash|zsh|fish|powershell|pwsh]
                                  Install completion for the specified shell.
  --show-completion [bash|zsh|fish|powershell|pwsh]
                                  Show completion for the specified shell, to
                                  copy it or customize the installation.
  --help                          Show this message and exit.

Commands:
  create-module   - Scaffolds Ellar Application Module -
  create-project  - Scaffolds Ellar Application -
  new             - Runs a complete Ellar project scaffold and creates...
  runserver       - Starts Uvicorn Server -
  say-hiFull Documentation:Here
Package: ellar-sql
IntroductionEllarSQL Module adds support forSQLAlchemyandAlembicpackage to your Ellar applicationInstallation$(venv)pipinstallellar-sqlThis library was inspired byFlask-SQLAlchemyFeaturesMigrationSingle/Multiple DatabasePaginationCompatible with SQLAlchemy toolsUsageIn your ellar application, create a module calleddbor any name of your choice,ellarcreate-moduledbThen, inmodels/base.pydefine your model base as shown below:# db/models/base.pyfromdatetimeimportdatetimefromsqlalchemyimportDateTime,funcfromsqlalchemy.ormimportMapped,mapped_columnfromellar_sql.modelimportModelclassBase(Model):__base_config__={'as_base':True}__database__='default'created_date:Mapped[datetime]=mapped_column("created_date",DateTime,default=datetime.utcnow,nullable=False)time_updated:Mapped[datetime]=mapped_column("time_updated",DateTime,nullable=False,default=datetime.utcnow,onupdate=func.now())UseBaseto create other models, like users inUserin# db/models/users.pyfromsqlalchemyimportInteger,Stringfromsqlalchemy.ormimportMapped,mapped_columnfrom.baseimportBaseclassUser(Base):id:Mapped[int]=mapped_column(Integer,primary_key=True)username:Mapped[str]=mapped_column(String,unique=True,nullable=False)email:Mapped[str]=mapped_column(String)Configure Module# db/module.pyfromellar.appimportAppfromellar.commonimportModule,IApplicationStartupfromellar.coreimportModuleBasefromellar.diimportContainerfromellar_sqlimportEllarSQLAlchemyModule,EllarSQLServicefrom.controllersimportDbController@Module(controllers=[DbController],providers=[],routers=[],modules=[EllarSQLAlchemyModule.setup(databases={'default':'sqlite:///project.db',},echo=True,migration_options={'directory':'my_migrations_folder'},models=['db.models.users'])])classDbModule(ModuleBase,IApplicationStartup):"""Db Module"""asyncdefon_startup(self,app:App)->None:db_service=app.injector.get(EllarSQLService)db_service.create_all()defregister_providers(self,container:Container)->None:"""for more complicated provider registrations, use container.register_instance(...) """Model UsageDatabase session exist at model level and can be accessed throughmodel.get_db_session()eg,User.get_db_session()# db/models/controllers.pyfromellar.commonimportController,ControllerBase,get,post,BodyfrompydanticimportEmailStrfromsqlalchemyimportselectfrom.models.usersimportUser@ControllerclassDbController(ControllerBase):@post("/users")asyncdefcreate_user(self,username:Body[str],email:Body[EmailStr]):session=User.get_db_session()user=User(username=username,email=email)session.add(user)session.commit()returnuser.dict()@get("/users/{user_id:int}")defget_user_by_id(self,user_id:int):session=User.get_db_session()stmt=select(User).filter(User.id==user_id)user=session.execute(stmt).scalar()returnuser.dict()@get("/users")asyncdefget_all_users(self):session=User.get_db_session()stmt=select(User)rows=session.execute(stmt.offset(0).limit(100)).scalars()return[row.dict()forrowinrows]LicenseEllar isMIT licensed.
Package: elle
========
Overview2D beam model.Free software: BSD 3-Clause LicenseInstallation::pip install elleYou can also install the in-development version with::pip install https://github.com/claudioperez/Beam2D/archive/master.zipDocumentationTo use the project:.. code-block:: pythonfrom elle import beam2dDevelopmentTo run all the tests run::toxNote, to combine the coverage data from all the tox environments run:.. list-table::
:widths: 10 90
:stub-columns: 1- - Windows
  - ::

        set PYTEST_ADDOPTS=--cov-append
        tox

- - Other
  - ::

        PYTEST_ADDOPTS=--cov-append toxChangelog1.0.0 (2020-07-30)First release on PyPI.
Package: ellingtonia
The ‘ellingtonia’ is a documentation organiser.an app created for Tangent Australia’s documentation site, managing content structure by comany and project name.Name of the app ‘ellingtonia’ is inspired by Guitarist Django’s second album with the same name, as the app is my second Django project.‘Problem to be solved’: company’s documentation site needs to be more organised, by client’s company names then project names. The app will run on server and dynamatically read documents’ up-to-date directory structure and generate a structured view to sort projects by company name, then project names.It was suggested to use Flask which compromises Werkzeug, Jinja2, and ‘Good intentions’.
Package: ellipsefitting
Least Squares fitting of ellipses, python routinebased on the  publicationHalir, R., Flusser, J.: 'Numerically Stable Direct Least Squares
Fitting of Ellipses'Installpipinstalllsq-ellipsehttps://pypi.org/project/lsq-ellipse/Example executionimportnumpyasnpfromellipseimportLsqEllipseimportmatplotlib.pyplotaspltfrommatplotlib.patchesimportEllipseif__name__=='__main__':# avalible in the `example.py` script in this repoX1,X2=example.make_test_ellipse()X=np.array(list(zip(X1,X2)))reg=LsqEllipse().fit(X)center,width,height,phi=reg.as_parameters()print(f'center:{center[0]:.3f},{center[1]:.3f}')print(f'width:{width:.3f}')print(f'height:{height:.3f}')print(f'phi:{phi:.3f}')fig=plt.figure(figsize=(6,6))ax=plt.subplot()ax.axis('equal')ax.plot(X1,X2,'ro',zorder=1)ellipse=Ellipse(xy=center,width=2*width,height=2*height,angle=np.rad2deg(phi),edgecolor='b',fc='None',lw=2,label='Fit',zorder=2)ax.add_patch(ellipse)plt.xlabel('$X_1$')plt.ylabel('$X_2$')plt.legend()plt.show()Cite this work@software{ben_hammel_2020_3723294,
  author       = {Ben Hammel and Nick Sullivan-Molina},
  title        = {bdhammel/least-squares-ellipse-fitting: v2.0.0},
  month        = mar,
  year         = 2020,
  publisher    = {Zenodo},
  version      = {v2.0.0},
  doi          = {10.5281/zenodo.3723294},
  url          = {https://doi.org/10.5281/zenodo.3723294}
}Ben Hammel, & Nick Sullivan-Molina. (2020, March 21). bdhammel/least-squares-ellipse-fitting: v2.0.0 (Version v2.0.0). Zenodo.http://doi.org/10.5281/zenodo.3723294
Package: ellipsetools
ellipsetoolsThis package provides a few convinient tools for ellipses. The main takeaway is the ability to subdivide an
ellipse. Specifically, it can generate $N$ points on an ellipse, with axes $(a, b)$,
where the arc length between each point is identical. Refer to theUsagesection to see an example of this.
The total arc length of the ellipse is solved (numerically) by the integralUsing the above, we split the task into $N$ optimization problems to find coordinates of each segment.
The program is reasonably fast and can easily generate more than $N = 1000$ points.InstallationThe package is available onPyPI. You can install using the command below.pip install ellipsetoolsUsageAn example of a command-line program is given inexamples/cnc_drill_holes.py. It creates coordiates
for hole-drilling on an elliptical shape for CNC machines. In such cases, it is paramount that each hole
has equal spacing.Running the program produces the following ellipse:From the above, it is clear that the holes are evenly spaced. Blue points indicate holes, whereas the
orange curve is the shape of the body which is to be drilled by the CNC machine.
Package: ellipsinator
EllipsinatorTools for working with ellipses in Python.InstallationShould be an easy pip install:pipinstallellipsinatorUsageTo fit an ellipse:fromellipsinatorimportfit_ellipse_halirc=fit_ellipse_halir(x,y)fromellipsinatorimportfit_ellipse_fitzgibonc=fit_ellipse_fitzgibon(x,y)fromellipsinatorimportfast_guaranteed_ellipse_estimatec=fast_guaranteed_ellipse_estimate(x,y)You can also pass in the measured points as a complex number,x + 1j*y:fromellipsinatorimportfit_ellipse_halirc=fit_ellipse_halir(x)Fitting multiple ellipses simultaneously is also possible
withfit_ellipse_halirandfast_guaranteed_ellipse_estimate:assertx.shape==(num_ellipses,num_pts)asserty.shape==(num_ellipses,num_pts)c1=fit_ellipse_halir(x,y)c2=fast_guaranteed_ellipse_estimate(x,y)assertc1.shape==(num_ellipses,6)assertc2.shape==(num_ellipses,6)
Package: ellipsis
Ellipsis Drive Python PackageThis package is meant to help you interact with the Ellipsis API.You can install this package usingpip install ellipsisFor documentation seehttps://ellipsis-package.readthedocs.ioThis package is meant to ease the use of the Ellipsis Drive API in your Python projects.ExamplesBelow are some code examples.import ellipsis as el

# log in
token = el.account.logIn("username", "password")

# retrieve all maps in "My Drive"
maps = el.account.listRoot("myDrive", pathType='layer',
token=token)Another exampleimport ellipsis as el

folderId = '46e1e919-8b73-42a3-a575-25c6d45fd93b'

token = el.account.logIn("username", "password")

info = el.path.get(folderId, token)
layers = el.path.listPath(folderId, pathType='layer', token = token, listAll = True)
folders = el.path.listPath(folderId, pathType='folder', token = token, listAll = True)