Saravanan666/pypi-org huggingface dataset:
Package: evbus-kafka
This project contains app-merge components forpop-evbus.Getting StartedPrerequisitesPython 3.8+git(if installing from source, or contributing to the project)InstallationNoteIf wanting to contribute to the project, and setup your local development
environment, see theCONTRIBUTING.rstdocument in the source repository
for this project.If wanting to useevbus-kafka, you can do so by either
installing from PyPI or from source.Install from PyPIpipinstallevbus-kafkaInstall from source# clone repogitclonegit@gitlab.com:vmware/idem/evbus-kafka.gitcdevbus-kafka# Setup venvpython3-mvenv.venvsource.venv/bin/activatepipinstall-e.UsageConfigurepop-evbusfor your app.Theconnectionportion of the kafka profile accepts any parameters that can be used in
theAIOKafkaProducerclasscredentials.ymlkafka:default:connection:bootstrap_servers:-localhost:9092topics:-topic1-topic2Encrypt the credentials file and export the ACCT environment variables$pipinstallacct$exportACCT_KEY=$(acctencryptcredentials.yml)$exportACCT_FILE="$PWD/credentials.yml.fernet"Now when you put a message on the evbus queue, it will be propagated to your configured kafka implementation.asyncdefmy_func(hub):awaithub.evbus.broker.put(body={"message":"event content"},profile="default")TestingA kafka server is necessary for running the tests.
You can use your own kafka server, or you can usedocker.
Start a local kafka server:dockerrun-p2181:2181-p443:9092-p9092:9092\✔14sidem-core--envADVERTISED_LISTENERS=PLAINTEXT://localhost:443,INTERNAL://localhost:9093\--envLISTENERS=PLAINTEXT://0.0.0.0:9092,INTERNAL://0.0.0.0:9093\--envSECURITY_PROTOCOL_MAP=PLAINTEXT:PLAINTEXT,INTERNAL:PLAINTEXT\--envINTER_BROKER=INTERNAL\krisgeus/docker-kafkaConfigure credentials for testing with a local rabbitmq server:# credentials.ymlkafka:test_development_evbus_kafka:connection:bootstrap_servers:localhost:9092Encrypt the credentials file and export the ACCT environment variables$pipinstallacct$exportACCT_KEY=$(acctencryptcredentials.yml)$exportACCT_FILE="$PWD/credentials.yml.fernet"Install testing requirements$pipinstall-rrequirements/test.inRun the tests with pytest:
.. code-block:: bash$ pytest testsRoadmapReference theopen issuesfor a list of
proposed features (and known issues).AcknowledgementsImg Shieldsfor making repository badges easy.
Package: evbus-pika
This project contains app-merge components forpop-evbus.Getting StartedPrerequisitesPython 3.8+git(if installing from source, or contributing to the project)InstallationNoteIf wanting to contribute to the project, and setup your local development
environment, see theCONTRIBUTING.rstdocument in the source repository
for this project.If wanting to useevbus-pika, you can do so by either
installing from PyPI or from source.Install from PyPIpipinstallevbus-pikaInstall from source# clone repogitclonegit@gitlab.com:vmware/idem/evbus-pika.gitcdevbus-pika# Setup venvpython3-mvenv.venvsource.venv/bin/activatepipinstall-e.UsageConfigurepop-evbusfor your app.Create a pika profilepika:default:connection:host:localhostport:5672login:guestpassword:guestrouting_key:Encrypt the credentials file and export the ACCT environment variables$pipinstallacct$exportACCT_KEY=$(acctencryptcredentials.yml)$exportACCT_FILE="$PWD/credentials.yml.fernet"Now when you put a message on the evbus queue, it will be propagated to your configured pika implementation.asyncdefmy_func(hub):awaithub.evbus.broker.put(body={"message":"event content"},profile="default")TestingThe rabbitmq-server binary needs to be installed via your package manager.
Start a local rabbitmq-server with the default parameters:$dockerrun-p5672:5672\--envRABBITMQ_HOSTS=localhost\--envRABBITMQ_PORT=5672\--envRABBITMQ_USER=guest\--envRABBITMQ_PASS=guest\--envRABBITMQ_PROTOCOL=amqp\rabbitmq:managementConfigure credentials for testing with a local rabbitmq server:# credentials.ymlpika:test_development_evbus_pika:connection:host:localhostport:5672login:guestpassword:guestrouting_key:Encrypt the credentials file and export the ACCT environment variables$pipinstallacct$exportACCT_KEY=$(acctencryptcredentials.yml)$exportACCT_FILE="$PWD/credentials.yml"Install testing requirements$pipinstall-rrequirements/test.inRun the tests with pytest:
.. code-block:: bash$ pytest testsRoadmapReference theopen issuesfor a list of
proposed features (and known issues).AcknowledgementsImg Shieldsfor making repository badges easy.
Package: evclust
evclust: Evidential c-Means ClusteringGet Started|pip installVarious clustering algorithms that produce a credal partition, i.e., a set of Dempster-Shafer mass functions representing the membership of objects to clusters. The mass functions quantify the cluster-membership uncertainty of the objects. The algorithms are: Evidential c-Means, Relational Evidential c-Means, Constrained Evidential c-Means, Multiples Relational Evidential c-Means.InformationsTitle: Evidential c-Means ClusteringVersion: 0.1.1Date: 2023-09-01License: MITDepends: Pyhton (<3.12, >=3.8)Author:Armel SOUBEIGAMaintainer:armel.soubeiga@uca.frContributors :Violaine ANTOINE,Benoit AlbertReferences[1] Denœux, T. (Year). evclust: An R Package for Evidential Clustering. Université de technologie de Compiègne. urlhttps://cran.r-project.org/web/packages/evclust/index.html[2] Masson, M. H. et T. Denœux (2008). ECM : An evidential version of the fuzzy c-means algorithm. Pattern Recognition 41, 1384–1397Installation$pipinstallevclustUsageecmComputes a credal partition from a matrix of attribute data using the Evidential c-means (ECM) algorithm.# Import test datafromevclust.datasetsimportload_decathlon,load_irisdf=load_iris()df.head()df=df.drop(['species'],axis=1)# Evidential clustering with c=3fromevclust.ecmimportecmmodel=ecm(x=df,c=3,beta=1.1,alpha=0.1,delta=9)# Read the outputfromevclust.utilsimportev_summary,ev_pcaplotev_summary(model)ev_pcaplot(data=df,x=model,normalize=False)DescriptionsEvidential clustering is a modern approach in clustering algorithms that addresses uncertainty in group membership by employing the Dempster-Shafer theory. This approach yields a credal partition, represented by a tuple of mass functions, which captures the uncertain assignment of objects to clusters.This package offers efficient algorithms for evidential clustering. The package provides functions for visualizing, evaluating, and utilizing credal partitions, allowing for a comprehensive analysis of uncertain group assignments.It is worth mentioning that theevclustpackage inPythonis based on the previously developed package inRbyThierry DenoeuxContributingInterested in contributing? Check out theContributing Guidelines. Please note that this project is released with aCode of Conduct. By contributing to this project, you agree to abide by its terms.Licenseevclustwas created by Armel SOUBEIGA. It is licensed under the terms of the MIT license.
Package: evdev
This package provides bindings to the generic input event interface in
Linux. Theevdevinterface serves the purpose of passing events
generated in the kernel directly to userspace through character
devices that are typically located in/dev/input/.This package also comes with bindings touinput, the userspace input
subsystem.Uinputallows userspace programs to create and handle
input devices that can inject events directly into the input
subsystem.Documentation:https://python-evdev.readthedocs.io/en/latest/Development:https://github.com/gvalkov/python-evdevPackage:https://pypi.python.org/pypi/evdevChangelog:https://python-evdev.readthedocs.io/en/latest/changelog.html
Package: evd-sdk-lotr
The Lord Of The Rings SDKA SDK built upon The One API (https://the-one-api.dev/) written in Python.Installationpip install evd-sdk-lotr==0.0.9UsageTo use the SDK, get an Access Token fromhttps://the-one-api.dev/sign-up. Once installed and the Access Token is obtained, you can start using the SDK by following the below:Using the SDKBook Datafrom evd_sdk_lotr.books import Books

books = Books('YOUR_API_KEY')

# Lists of all "The Lord of the Rings" Books
books.get_books()

# Request one specific Lord of the Rings book by ID
books.get_book_by_id('5cf58077b53e011a64671583')

# Request all chapters of one specific book
books.get_book_by_id('5cf58077b53e011a64671583')Character Datafrom evd_sdk_lotr.chracters import Characters

characters = Characters('YOUR_API_KEY')

# Lists of all characters including metadata like name, gender, realm, race and more
characters.get_all_characters()

# Request one specific character by id
characters.get_character_by_id('5cd99d4bde30eff6ebccfbed')

# Request all movie quotes of one specific character
characters.get_quotes_by_character_id('5cd99d4bde30eff6ebccfbed')

# Get character details by name
characters.get_character_by_name('Gandalf')Movie Datafrom evd_sdk_lotr.movies import Movies

movies = Movies('YOUR_API_KEY')

# List of all movies including "The Lord of the Rings" and the "The Hobbit" trilogies
movies.get_movies()

# Request one specific movie by id
movies.get_movie_by_id('5cd95395de30eff6ebccde56')

# Request all movie quotes for one specific movie (only working for LOTR Trilogy)
movies.get_all_quotes_by_movie('5cd95395de30eff6ebccde5c')Quote Datafrom evd_sdk_lotr.quotes import Quotes

quotes = Quotes('YOUR_API_KEY')

#  List of all movie quotes
quotes.get_all_movie_quotes()

# Request one specific movie quote
quotes.get_movie_by_id("5cd96e05de30eff6ebccebce")Chapter Datafrom evd_sdk_lotr.chapters import Chapters

chapters = Chapters('YOUR_API_KEY')

# Lists of all book chapters
chapters.get_all_book_chapters()

# Request one specific book chapter
chapters.get_book_chapter_by_id('6091b6d6d58360f988133bc5')

# Get book chapter by name
chapters.get_book_chapter_by_name('A Long-expected Party')
Package: evduty-api
evduty-apiLibrary to communicate with EVduty REST API.UsageimportaiohttpimportasyncioimportosfromevdutyapiimportEVDutyApiasyncdefrun():asyncwithaiohttp.ClientSession()assession:api=EVDutyApi(os.environ['EMAIL'],os.environ['PASSWORD'],session)stations=awaitapi.async_get_stations()forstationinstations:print(station)forterminalinstation.terminals:print(terminal)print(terminal.session)print(terminal.network_info)asyncio.run(run())Build and test locallymakeinstall
maketestmakebuildRelease versionmakereleasebump=patch|minor|major
Package: evduty-free
evdutyfreeUnofficial Python Module interface for EVduty chargers api⚠️Warning - Very ALPHA and not ready for production. ⚠️Loosely based onhttps://github.com/cliviu74/wallbox.Examplefrom evdutyfree import EVdutyFree

w = EVdutyFree("user@domain.com", "password")

# Authenticate with the credentials above
w.authenticate()
stations = w.get_station_ids()
terminals = w.get_terminal_ids(stations[0])

terminalinfo = w.get_terminal_info(stations[0],terminals[0])

print(w.get_max_charging_current(stations[0],terminals[0]))
w.set_max_charging_current(stations[0], terminals[0], 30)
print(w.get_max_charging_current(stations[0],terminals[0]))
Package: eve-arango
Provides a data layer for ArangoDB to be used with Eve REST API framework.FeaturesCRUD operations for using ArangoDB as a document storeSupports the same operations on edge documents for managing relationsFiltering based on AQL syntaxPagination and sortingNot supported (yet):Proper graph queriesVersioningProjectionAggregationEtc.Installation$pipinstalleve-arangoUsagefromeveimportEvefromeve_arangoimportArangoDBapp=Eve(data=ArangoDB)app.run()The following settings are processed:# These are necessary for item lookups to work,# the regex is for the characters allowed in ArangoDB keys.ID_FIELD='_key'ITEM_LOOKUP_FIELD=ID_FIELDITEM_URL='regex("[\w\d\-:.@()+,=;$!*\'%]+")'# If a database named ARANGO_DB's value doesn't exist,# it will be created when the data layer is initialized.ARANGO_DB='database_name'ARANGO_HOST='localhost'ARANGO_PORT=8529# If the keys in DOMAIN do not exist as collection names,# they will be created when the data layer is initialized.# There's no need to add '_id', '_key' or '_rev' fields,# they are added to the schema automatically.# If you specifiy 'edge_collection': True as below,# an edge collection will be created if it does not exist.DOMAIN={'people':{'schema':{'name':{'type':'string'}}},'friends_with':{'edge_collection':True},# ...}Filtering and sortingeve-arango uses AQL syntax for filtering via the Evewhereparameter. Mongo-style queries are not valid. Here are some examples of valid (url decoded) queries and their resulting AQL:?where=foo == "bar"
# Spaces are optional.
# FILTER doc.foo == "bar"

?where=numIN[1,2,3],present!=null
# Use , as simple separator between FILTER expressions.
# FILTER doc.num IN [1,2,3]
# FILTER doc.present != null

?where=a=="a"ANDb=="b"ORc=="c"
# AND, OR, NOT can be used to combine expressions.
# FILTER doc.a == "a" AND doc.b == "b" OR doc.c == "c"Sorting uses the regular Eve syntax. An example is given below:?sort=name,-age
# SORT doc.name, doc.age DESCContributingContributions are welcome. Open an issue and send a pull request.LicenseMIT License.
Package: eveauth
# eveauth[![Travis](https://img.shields.io/travis/Regner/eveauth.svg)](https://travis-ci.org/Regner/eveauth) [![PyPI](https://img.shields.io/pypi/v/eveauth.svg)](https://pypi.python.org/pypi/eveauth/)A simple library for verifying authorization tokens provided against the EVEOnline SSO. Helper methods and decorators are provided for simplysimplifying theability to restrict access based on scopes or a character ID.## Using```pythonfrom eveauth import authenticate# Just get the token information backtoken = authenticate(request)# Require a specific scopetoken = authenticate(request, ['character'])# By default using the authenticate method directly will raise either a# eveauth.Unauthorized or eveauth.Forbidden exception if something goes wrong or# missing a scope.# Decorate a flask viewfrom eveauth.contrib.flask import authenticate@authenticate()@app.route('/v1/<int:character_id>/')def get_char_stats(character_id):if request.token['character_id'] != character_id:abort(403)# The flask decorator will abort with a 401 or 403 if the eveauth package raises# one if its exceptions. You only need to handle making sure the character the# token is for is allowed the resource they are requesting.```## Environment Variables* __EVEAUTH_URL:__ Defaults to 'https://login.eveonline.com/oauth/verify/'. TheURL which will be used to validate the authorization token.* __EVEAUTH_CACHE_TIME:__ Defaults to 300. How long, in seconds, to cache theresponse from the SSO server for.* __AUTH_TESTING:__* __TEST_TOKEN_DATA:__
Package: eve-auth-jwt
An OAuth 2 JWT token validation module forEve.InstallationTo install eve-auth-jwt, simply:$ pip install eve-auth-jwtAt Eve initialization:from eve import Eve
from eve_auth_jwt import JWTAuth

app = Eve(auth=JWTAuth, settings=SETTINGS)ConfigurationThis module reads its configuration form Eve settings. Here is the list of new directives:JWT_SECRET(required): Defines the symetric secret token secret used to de/encode the token (async keys support is a TODO).JWT_ISSUER(required): Defines the required token issuer (issclaim).JWT_AUDIENCES: Defines a list of accepted audiences (audclaim). If not provided, only tokens with no audience set will be accepted. The resource levelaudiencesparameter is also available.JWT_ROLES_CLAIM: Defines the claim name for roles. If set, Eve roles check will be activated, and any resources withallowed_rolesset will require to have those roles present in the defined token’s claim.JWT_SCOPE_CLAIM: Defines the claim name for scope. If set and the token has a claim of the same name containing the stringviewer, onlyGETandHEADmethods will be granted. All other values are ignored and added to the list of exposed roles with thescope:prefix.Reading RolesIf access is granted, the authentication module exposes roles and token’s claims thruget_authen_roles()andget_authen_claims()methods. You may access those values from your event hook as follow:def my_hook(...)
    resource_def = app.config['DOMAIN'][resource_name]
    auth = resource_def['authentication']
    if 'somerole' in auth.get_authen_roles():
        # grant some finer accessSecuring custom routesJWT Authorization can be applied to any custom routes using the@requires_tokenwrapper. This annotation will only provideaudience and role access control. User level access must be written manually.Example of audience access control:from eve_auth_jwt import requires_token, get_request_auth_value

@app.route('/my_resource/download', methods=['GET'])
@requires_token(audiences=['myAudience'])
def csv_download():
    # Allows all users with myAudience to access download
    account_id = get_request_auth_value()
    if check_user(account_id):

        abort(401)

    return generateCSV(account_id)Example ofmyAdminaccess control:from eve_auth_jwt import requires_token

@app.route('/admin/my_resource/download', methods=['GET'])
@requires_token(audiences=['myAudience'], allowed_roles=['myAdmin'])
def csv_download():
    account_id = request.args.get('account_id', None)
    return generateCSV(account_id)Access the parsed JWT token valuesThe parsed JWT token values are stored in theflask.gdict, but custom functions exist to aid in reading the values. The values are only available after the JWT token integrity check and user authorization occurs.Example of access the parse JWT token fields:from eve_auth_jwt import get_request_auth_value, get_authen_claims, get_authen_roles

def my_fn():
    # Request authentication value as a str
    account_id = get_request_auth_value()

    # JWT claims as a dict[str]
    payload = get_authen_claims()

    # Roles as arr[str]
    roles = get_authen_roles()LicensesAll source code is licensed under theMIT License.
Package: evecentral
python-evecentral=============Super simple module that hits 2 external APIs.It uses `Fuzzworks <[https://www.fuzzwork.co.uk/tools/api-typename-to-typeid/>`_ to getthe typeID from a typeName.It then pulls prices from the `EVE-Central API <http://eve-central.com/home/develop.html>`_and caches them in memory
Package: evee
evee=====[![Build Status](https://travis-ci.org/onema/evee.svg?branch=master)](https://travis-ci.org/onema/evee)[![Codacy Badge](https://api.codacy.com/project/badge/Grade/51bb12b95a434798b8044e301659ea85)](https://www.codacy.com/app/onema/evee?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=onema/evee&amp;utm_campaign=Badge_Grade)[![Codacy Badge](https://api.codacy.com/project/badge/Coverage/51bb12b95a434798b8044e301659ea85)](https://www.codacy.com/app/onema/evee?utm_source=github.com&utm_medium=referral&utm_content=onema/evee&utm_campaign=Badge_Coverage)[![Code Climate](https://codeclimate.com/github/onema/evee/badges/gpa.svg)](https://codeclimate.com/github/onema/evee)[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/onema/evee/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/onema/evee/?branch=master)Summary_______This is a port for Python `v3.6+` of the Symfony Event Dispatcher.This event dispatcher follows a pattern called the ["Mediator" pattern](https://sourcemaking.com/design_patterns/mediator).> In software engineering, the mediator pattern defines an object that encapsulates how a set of objects interact. This pattern is considered to be a behavioral pattern due to the way it can alter the program's running behavior.Install--------`pip install evee`Usage--------### Dispatching simple events```pythonfrom evee import EventDispatcherfrom evee import Eventdef pre_foo(self, event: Event, event_name: str):print("pre_foo was called")def post_foo(self, event: Event, event_name: str):print("post_foo was called")dispatcher = EventDispatcher()dispatcher.add_listener('pre.foo', pre_foo)dispatcher.add_listener('post.foo', post_foo)dispatcher.dispatch('pre.foo')print('Doo Foo work')dispatcher.dispatch('post.foo')```
Package: eve-glue
# EVE GlueThis repository contains several enums and dictionaries mapping various EVE
IDs to names. There are also a few helper functions for resolving names from
IDs and working with bitmasks.This may aid in your transition from XML or CREST to ESI. You should know that
ESI is making an effort to not return single IDs when their only attribute is
name. Going forward, you should be using the string values returned by the
enum, free to use whatever integer (or no integer at all) representation.# Copyright and LicenseCopyright (c) 2017 CCP hf.Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
“Software”), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Package: eve-healthcheck
eve-healthcheckeve-healthcheckis project that servers healthcheck urls used to
monitor your applicationEvepowered RESTful API.Usagefromeve_healthcheckimportEveHealthCheck...app=Eve()hc=EveHealthCheck(app,'/healthcheck')...This will add an url/healthcheckthat will check database
connection like:{"hostname":"localhost","results":[{"checker":"database_check","expires":1487655119.5796409,"output":"Database OK","passed":true,"timestamp":1487655092.5796409}],"status":"success","timestamp":1487655092.5820687}Installation$ pip install eve-healthcheckRunning tests withtoxInstalltoxNeed a mongodb server running on localhost$ docker run --rm -p 27017:27017 mongo$ pip install toxRun teststox
Package: eveimageserver
# eveimageserver[![Build Status](https://travis-ci.org/Regner/eveimageserver.svg?branch=master)](https://travis-ci.org/Regner/eveimageserver)[![Coverage Status](https://coveralls.io/repos/Regner/eveimageserver/badge.svg?branch=master&service=github)](https://coveralls.io/github/Regner/eveimageserver?branch=master)[![PyPI version](https://badge.fury.io/py/eveimageserver.svg)](http://badge.fury.io/py/eveimageserver)## Using```pythonimport eveimageserver# Get a 256x256 pixel image server link for a charactereveimageserver.get_image_server_link(123456, 'char', 256)# Get a dictionary of links for all alliance imageseveimageserver.get_alliance_links(123456)```## Environment Variables* __IMAGE_SERVER_URL:__ Defaults to 'https://image.eveonline.com/'. If you setyour own environment variable for this be sure to include the trailing slash.
Package: eve-jwt
Eve JWT auth for asymmetric encryption. Adapted from eve-auth-jwt which handles symmetric encryption shcemes.Usagefromeve_jwtimportJWTAuthfromeveimportEveauth=JWTAuth(key_url="https://YOUR-OAUTH-SERVER/certs/")app=Eve(auth=auth)Free software: MITDocumentation:https://eve-jwt.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand thebriggySmalls/cookiecutter-pypackageproject template.