Saravanan666/pypi-org huggingface dataset:
Package: consulk8s
CLI tool that integrates Consul and Kubernetes.Command: write-ingressesThis command will query Kubernetes ingress resources for details to use to write
a Consul service configuration file.This is useful on Kubernetes workers that are running ingress controllers or
other servers that might be proxying into ingress controllers, allowing
discovery of services exposed by Kubernetes.consulk8swrite-ingresses-s/etc/consul.d/k8s_services.jsonSeeconsulk8s--helpandconsulk8swrite-ingresses--helpfor more details.Annotations on Ingress objects:consulk8s/service- Name of Consul service to create for Ingress.consulk8s/address- Address/IP to announce in Consul service. Defaults to Ingress loadBalancer IP.consulk8s/port- Port to announce in Consul service. Defaults to 80.consuk8s/check_host- Host header to set in Consul health checks. Uses first hostname found in Ingress if none specified.consulk8s/check_timeout- Timeout for Consul health check. Defaults to 2s.consulk8s/check_path- Path segment of URL to make HTTP health check request. Defaults to ‘/’.consulk8s/tls_skip_verify- Skip TLS verification. Consul defaults to false.
Package: consul-options
How often do you wonder where to store the project settings? When your project is small
it is not a big problem. But if your big project consists of dozens of microservices
then there is a problem of centralized configuration management. The Сonsul have a key/value
storage that is ideal for this.Withconsul-optionsyou can define and use options in your code by a simple and elegant way.
Just take a look at the example:classDB(ConsulKV):passclassUsers(DB):host='127.0.0.1'port=5432user='postgres'password='postgres'dbname='users'classOrders(DB):host='127.0.0.1'port=5432user='postgres'password='postgres'dbname='orders'Now you can access option values in a clear way:fromconsul_optionsimportoptionsprintoptions.db.users.hostprintoptions.db.orders.dbnameconsul-optionsautomagically creates folders and keys with default values defined above
in Consul and later read them from there. So if anyone will change the value ofdb/orders/hostkey
to something different in Consul then you will get that value.How project options stored in ConsulWhen you declare a new class based onConsulKVdefault bahavior is
creation afolderin Consul key/value storage with name of your class in lowercase.
Each class attribute you define will have mapping to keyfolder/key.
If you don’t agree with generated folder name you are free to choose any other
with reserved class attribute__key__as shown below:classWorkerOptions(ConsulKV):__key__='worker'host='127.0.0.1'port=80After that you can access to the option with “worker” in path:fromconsul_optionsimportoptionsprintoptions.worker.hostprintoptions.worker.portTo create hierarchical key structure you can take advantage of usual class hierarchy:fromconsul_optionsimportConsulKV,optionsclassWorkerOptions(ConsulKV):__key__='worker'host='127.0.0.1'port=80classDB(WorkerOptions):host='127.0.0.1'port=5432user='postgres'password='postgres'printoptions.worker.db.host# 'host'printoptions.worker.db.port# 5432It is also possible to create keys at root level with class attribute__root__:classRootOptions(ConsulKV):__root__=Truehost='127.0.0.1'port=80printoptions.hostprintoptions.portCompatibilityconsul-options is compatible with both Python 2 and Python 3.InstallationUse pip to install:$ pip install consul-optionsLicenseconsul-options is developed and distributed under the Apache 2.0 license.
Package: consul-sd
Consul Service Discovery APIThis module provides a simple way to work with theConsul Service Discovery APIfrom python.ExamplesUsage examples:import consulsd
service = consulsd.Client()
service.register(id='flexlm1', name='flexlm',
            address='10.112.0.211', port=28518,
            tags=('flexlm1', light', 'v1'),
            check={'id': 'flexlm', 'name': 'flexlm on port 28518',
                   'tcp': '10.112.0.211:28518',
                   'Interval': '30s', 'timeout': '2s'})
service.deregister(id='flexlm1')
service.list()
service.info(name='flexlm')The registration/deregistration is done using the consul agent API:http://localhost:8500
PUT /v1/agent/service/register
PUT /v1/agent/service/deregister/<serviceId>To query the information the catalog API is used:http://localhost:8500
GET /v1/catalog/services
GET /v1/catalog/service/bigdata
GET /v1/catalog/nodes
GET /v1/catalog/node/c13-9The payload for the registration request has the following format:{
  "ID": "flexlm1",
  "Name": "flexlm",
  "Tags": ["flexlm1", light", "v1"],
  "Address": "10.112.0.211",
  "Port": 28518,
  "Check": {
    "id": "flexlm",
    "name": "flexlm on port 28518",
    "tcp": "10.112.0.211:28518",
    "Interval": "30s",
    "timeout": "2s"
  }
}
Package: consul-service-discovery
Consul Service Discovery APIThis module provides a simple way to work with theConsul Service Discovery APIfrom python.ExamplesUsage examples:import consul
service = consul.Client()
service.register(id='flexlm1', name='flexlm',
            address='10.112.0.211', port=28518,
            tags=('flexlm1', light', 'v1'),
            check={'id': 'flexlm', 'name': 'flexlm on port 28518',
                   'tcp': '10.112.0.211:28518',
                   'Interval': '30s', 'timeout': '2s'})
service.deregister(id='flexlm1')
service.list()
service.info(name='flexlm')The registration/deregistration is done using the consul agent API:http://localhost:8500
PUT /v1/agent/service/register
DELETE /v1/agent/service/deregister/<serviceId>To query the information the catalog API is used:http://localhost:8500
GET /v1/catalog/services
GET /v1/catalog/service/bigdata
GET /v1/catalog/nodes
GET /v1/catalog/node/c13-9The payload for the registration request has the following format:{
  "ID": "flexlm1",
  "Name": "flexlm",
  "Tags": ["flexlm1", light", "v1"],
  "Address": "10.112.0.211",
  "Port": 28518,
  "Check": {
    "id": "flexlm",
    "name": "flexlm on port 28518",
    "tcp": "10.112.0.211:28518",
    "Interval": "30s",
    "timeout": "2s"
  }
}
Package: consulservicefinder
Consul Service FinderI got a problem when I try to simulate multiple service register on Consul server and the client can find one of the services to use the API.I can use below URL to get all services but that is not what I want.curl http://localhost:8500/v1/agent/servicesIdeas* Consul Query to search service by service name* Count the service be used* Return min count of services by same service nameExamplecsf = ConsulServiceFinder()

    # create query by service name
    csf.createQueryByServiceName("microweb_microtalk", "q_test")

    # find one service and compose it's url
    csf.composeServiceUrl(csf.requestOneServiceByServiceName("microweb_microtalk"))
Package: consulta-clima
package_nameDescription.
Package to consult the current climate of a city:
- request: Query the API using the city name
- printar: Shows the result of the request, with only two parameters, climate condition and temperatureInstallationUse the package managerpipto install consulta_climapipinstallconsulta_climaUsagefromconsulta_clima_package.consulta_climaimportclima_apiclima_api.requisicao()clima_api.printar()AuthorCleison SilvaLicenseMIT
Package: consultanit
Consultas del Estado del NIT - BoliviaEl sitio oficial de Impuestos Nacionales de Bolivia a traves de su Oficina Virtual pone a disposicion como Servicio al Ciudadano un sitio web para Consultas del Estado del NIT.Sitio Web:https://pbdw.impuestos.gob.bo:8080/gob.sin.padron.web/#/verificar/estadoContribuyenteEste paquete le permite realizar la misma verificacion haciendo uso de los mismos servicios con el fin de poder integrar dicha verificacion en sus desarrollo; por ejemplo validando el NIT en el formulario de registro de una persona juridica.EjemplofromconsultanitimportConsultaNITconsulta=ConsultaNIT()resultado=consulta.verificar_contribuyente("1003579028")ifresultadoisnotNone:# Procesar el resultado de acuerdo a tus necesidades# ...print(resultado)Salida de Ejemplo NIT Existente{"ok":true,"mensajes":[],"nit":1003579028,"razonSocial":"SERVICIO DE IMPUESTOS NACIONALES","estado":"ACTIVO","fechaUltimoEstado":"12/05/2015"}Salida de Ejemplo NIT Inexistente{"ok":false,"mensajes":[{"codigo":null,"descripcion":"NIT Inexistente","tipo":"ERROR"}],"nit":null,"razonSocial":null,"estado":null,"fechaUltimoEstado":null}DisclaimerEl paquete funcionara siempre y cuando Impuestos Nacionales siga permitiendo que el servicio sea de acceso publico y sin autenticacion.
Package: consulta-ufv-bolivia
Consultas de la UFV - BoliviaEl sitio oficial de Banco Central de Bolivia a traves de su pagina web pone a disposicion un sitio web para consultas de la cotizacion de la UFV.Sitio Web:https://www.bcb.gob.bo/librerias/indicadores/ufv/ultimo.phpEste paquete le permite realizar la misma verificacion haciendo uso de los mismos servicios con el fin de poder integrar dicha verificacion en sus desarrollo; por ejemplo rellenando de forma masiva las cotizaciones pasadas de UFV de un sistema.Instalacionpipinstallconsulta-ufv-boliviaEjemplofromconsultaufvimportBCBAPIUFV# Ejemplo de usocliente=BCBAPIUFV()fecha_inicio="2023-05-17"fecha_fin="2023-05-20"resultado1=cliente.consumir_endpoint(fecha_inicio,fecha_fin)resultado2=cliente.consumir_endpoint(fecha_inicio)ifresultado1isnotNone:# Procesar el resultado de acuerdo a tus necesidades# ...print(resultado1)ifresultado2isnotNone:# Procesar el resultado de acuerdo a tus necesidades# ...print(resultado2)Salida de Ejemplo Varias Fechas[{'fecha':'17/05/2023','val_ufv':'2.434800000000000000'},{'fecha':'18/05/2023','val_ufv':'2.434970000000000000'},{'fecha':'19/05/2023','val_ufv':'2.435140000000000000'},{'fecha':'20/05/2023','val_ufv':'2.435310000000000000'}]Salida de Ejemplo Una Fecha[{'fecha':'17/05/2023','val_ufv':'2.434800000000000000'}]DisclaimerEl paquete funcionara siempre y cuando el Banco Central de Bolivia siga permitiendo que el servicio sea de acceso publico y sin autenticacion.
Package: consultify
The So-Whatconsultifyallows users to turn analyses on Python into PowerPoint slides, following the conventions of standard management consulting slides.Installationpip install consultifySample Usage# Get sample image from Matplotlib

import matplotlib.pyplot as plt
import matplotlib.image as mpimg
import urllib.request 

urllib.request.urlretrieve('https://matplotlib.org/_images/sphx_glr_bar_stacked_001.png', 'sample.png')
img = mpimg.imread('sample.png')
plt.axis('off')
plt.imshow(img)# Create sample pandas DataFrame

import pandas as pd
from sklearn.datasets import load_iris
data = load_iris()
df = pd.DataFrame(data.data, columns=data.feature_names)
df = df.head(5)
dffrom consultify import consultify

prs = consultify.make_deck()

consultify.add_slide(prs, slide_title='The highest scores were achieved in Game 2', image_filepath='sample.png', textbox_filled_space = 0.25, textbox_font_size = 20, title_font_size = 32, slide_text=
"""Insight # 1

Insight # 2

Insight # 3""")

consultify.add_marvin_table_slide(prs, df, title_font_size = 28, slide_title = 'These are the first five rows of the classic Iris Dataset')

consultify.save_deck(prs, filepath='./210117 SteerCo Deck.pptx')#plsfixEmailryu@mba2021.hbs.edufor feedback.
Package: consumableai
ConsumableAIOverviewConsumable AI is an SDK that can be easily integrated into the self hosted BI tools which gives enterprises the power to talk to the databases in natural language. This will make exploratory data analyses easy to perform and remove the barrier of acquiring SQL skills and database know-how.InstallationA Python library for seamless integration with ConsumableAI platform.Right now we only support postgresql database, soon will update other databases as wellTo get started, follow these steps:Set up a virtual environment in your aws which has access to database:$ python3 -m venv myenv
$ source myenv/bin/activateInstall the ConsumableAI library using pip:$ pip install consumableaiObtain an API key by visitinghttps://platform.consumableai.comand creating an account. The API key will be used to authenticate your requests.Initialize the ConsumableAI library:$ consumableai initThis command will prompt you to enter various database-related values. The library will create the table schema for your data. Please note that ConsumableAI does not store your data directly. Instead, it creates the table schema and shares a link to a spreadsheet. You can make changes to the spreadsheet, and when you're ready, inform us to update the schema accordingly.The spreadsheet link will be provided after initialization.For more information and documentation, please visit our website athttps://platform.consumableai.com.Happy data exploration with ConsumableAI!
Package: consumer-complaint-classification-model
This is a Machine Learning Pipeline for "Consumer Complain" classifier that takes complaint as input and then classifies it
as one of the available classification categories.Change Log0.0.1 (04/02/2022)First Release0.0.2 (04/02/2022)Bug fixes0.0.3 (04/02/2022)Bug fixes0.0.4 (04/02/2022)Bug fixes
Package: consumers
Consumers is a simple, flexible way to parallelize processing in Python.Documentationhttps://consumers.readthedocs.ioExamplefromconsumersimportPooldefconcatenate(letters):return''.join(letters)withPool(concatenate,2)aspool:forletterin'abcdef':pool.put(letter)print(pool.results)Results('bdf', 'ace')
Package: consumetpy
consumetpyA Python wrapper for theConsumet APIthat provides easy access to the different categories and providers of the API.InstallationTo install consumetpy, run the following command:pipinstallconsumetpyUsageThe package includes different classes for the different categories and providers of the API. To use the package, you'll need to create an instance of theConsumetAPIclass and then access the different categories and providers through its attributes.from consumet.py import ConsumetAPI

api = ConsumetAPI()

# Access the anime category
anime = api.anime

# Access the animepahe provider
animepahe = anime.animepahe

# Search for an anime by title
results = animepahe.search('spy x family')

# Get information about an anime
info = animepahe.info('1')

# Watch an anime episode
watch = animepahe.watch('12321dqw')You can access the providers,enime,gogoanime,zoroin similar way by usinganime.enime,anime.gogoanimeandanime.zororespectively.ContributionsContributions are welcome! If you'd like to contribute to this package, please fork the repository and make changes as you'd like. Once you've made your changes, open a pull request here and I'll review your changes.
Package: contactangles
Python contact angle image processing analysisA python script that follows a simple logical progression to reliably measure contact angles from image or video files. While the traditional methods for contact angle analysis typically rely on the user drawing tangent lines to droplets, which is both time consuming and can lead to bias in the analysis results, we attempt to automate this analysis to make the process both more robust and more amenable to high throughput data generation. The logic we use for this process is highlighted below:InstallationThe analysis script can be installed by cloning the repository into your desired working directory or via the following:$ pip install contactanglesWith thepipinstallation, the main script can be run from the command line by callinganalysis; otherwise it must be run from within a Python instance (see Use section below).DependenciesThe following packages must already be installed in your Python environment to contribute to the development of this project:numpyscipyscikit-imageimageiomatplotlibsetuptoolswheeltwinepytestpip:imageio-ffmpegpytest-subtestspytest-covUseDepending on the installation choice, the script can either be run from the command line:$ analysis path/to/files/of/interestIf you have installed as a developer, you can use the script by calling themain()function from the fileanalysis.pyParameter DefinitionsThe relevant threshold parameters that define where the tangent lines, baseline, and circle will be identified are most easily explained through the image below:These parameters can be accessed through the flags--baselineThreshold,--circleThreshold, and--linThresholdrespectively. Additional flags can be set and can be shown from the help accessed by$ analysis --helpCreditsContact angle measurement automation has also been performed bymvgorcum, which uses a different approach to fitting the tangents, but inspired our work here.ContributePlease don't hesitate to submit any issues that you may identify with the approach or the coding. We will try to respond quickly to any questions that may arise. If you would like to contribute to the project, feel free to make any pull requests that will make the solution more robust/efficient/better for your application, and we will do our best to incorporate it in the next release.
Package: contactapi
fastapiRuning API via podman### create varsexportPORT="8000"exportDB_IMAGE="docker.io/library/postgres"exportDB_CONTAINER="postgresdb"exportDB_PASS="password"exportDATABASE_URL="postgresql://postgres:$DB_PASS@$DB_CONTAINER:5432"exportAPP_IMAGE="ghcr.io/yulai202020/contactapi"### create networkpodmannetworkcreatecontactapi### pull imagespodmanpull$DB_IMAGEpodmanpull$APP_IMAGEpodmanimages### run containerspodmanrun--networkcontactapi-ePOSTGRES_PASSWORD=$DB_PASS-d--name$DB_CONTAINER$DB_IMAGEpodmanrun--networkcontactapi-eDATABASE_URL=$DATABASE_URL-ePORT=$PORT-p$PORT:$PORT-d$APP_IMAGE### checkpodmanps
curlhttp://localhost:8000/
Package: contactbook
"contactbook""contactbook" personal console assistant can:save contacts with names, addresses, phone numbers, email and birthdays to the contacts book;display a list of contacts whose birthday is a specified number of days from the current date;check the correctness of the entered phone number and email when creating or editing a record andnotify the user in case of incorrect input;search for contacts among book contacts;edit and delete entries from the contact book;save notes with text information;search for notes;edit and delete notes;add "tags" to notes, keywords describing the topic and subject of the record;search and sort notes by keywords (tags);sort files in the specified folder by category (images, documents, videos, etc.);perform arithmetic operations using the calculator installed in the package;.install package from "https://pypi.org/"run the pip install "contactbook" command in the consoleafter installation, the "contactbook" package appears in the system;when the package is installed in the system, the script can be called anywhere from the consolewith the "contactbook" command;install package from source codedownload the folder with the project from the repository via the linkhttps://github.com/VadimTrubay/contactbook.gitto install this package from source, run pip install or pip install -e in the consolein the folder where the project is located;after installation, the contactbook package appears in the system;when the package is installed in the system, the script can be called anywherefrom the console with the "contactbook" command;
Package: contactBox
To use as standard contact form replacementContentsRequirementsSettingsUsageRequirementsDjango configured properly for sending emails. Sites framework.
Cron support - check conf.cron.SettingsEMAIL_FROMSITE_IDUsageAdd contactbox into INSTALLED_APPS in settings.py.in views.py:from contactbox.views import ContactFormView
from contactbox.forms import ContactForm


class ContactView(ContactFormView):
    template_name = 'contact.html'
    form_class = ContactFormPlease also check:https://github.com/YD-Technology/contactbox/blob/master/contactbox/views.pyhttps://github.com/YD-Technology/contactbox/blob/master/test_project/templates/contact.html
Package: contact_form_smtp
contactformbackend for an email contact formFree software: MIT licenseDocumentation:https://contactform.readthedocs.io.CreditsThis package was created with Cookiecutter andrstms/cookiecutter-python-cli, a fork of theaudreyr/cookiecutter-pypackageproject template.audreyr/cookiecutteraudreyr/cookiecutter-pypackagerstms/cookiecutter-python-cli
Package: contacthub-sdk-python
Contacthub Python SDKThis is the official Python SDK forContacthub REST
API.
This SDK easily allows to access your data on Contacthub, making the
authentication immediate and simplifying read/write operations.For all information about Contacthub, checkhere.You can find the official documentation of this SDK onReadTheDocs.Table of contentsIntroductionGetting
startedInstalling and importing the
SDKPerforming simple operations on
customersAuthenticationAuthentication via configuration
fileProxiesOperations on
CustomersAdd a new
customerGet all
customersGet a single
customerQuery on
customersUpdate a
customerFull update -
PutPartial update -
PatchDelete a
customerTagAdditional
entitiesEducationJobLikeSubscriptionOperations on
EventsAdd a new
eventSessionsExternal
IDGet all
eventsGet a single
eventException
HandlingAPI
Reference
Package: contact_importer
About contact_importerImport contacts from Gmail, Yahoo and Live accounts.InstallingClone the repository and run the following command::python setup.py installLicenseThe MIT License (MIT)Copyright (c) 2013 Mengu KaganPermission 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: contactList
A Python 3 utility for constructing, managing and organising email addresses in YAML format.Contents1Installation2Getting Started3contact-listutility4Using the framework1InstallationThe simplest way to install is using pippipinstallcontactList2Getting StartedThe structure of YAML file is very simple. Organise email addresses into arbitrarily named groups and then organise
those groups into arbitrarily named “clusters”.groups:g1:-'u1@some.domain'g2:-'u3@some.other.domain'g3:-'u4@this.domain'-'u2@some.domain'clusters:c1:['g1']c2:['g1','g2']c3:['g2','g3']There is no requirement restricting an email address to only one group.3contact-listutilityOnce the wheel package is installed the command line utilitycontact-listis available. This utility can be used to
manage contact list data in a YAML file from the command line.>contact-list--helpusage:contact-list[-h][--fileCONTACTSFILE]{cluster,email,group}...positionalarguments:{cluster,email,group}optionalarguments:-h,--helpshowthishelpmessageandexit--fileCONTACTSFILE,-fCONTACTSFILEContactsfiletomanage(defaultcontacts.yml)Subcommands enable the modification of the respective entities in the file,cluster,email,group.4Using the frameworkUsing the contactList framework, your application can then use the clusters to build a list of the necessary emails. By
default, thefrom_yamlFileclassmethod tries to load YAML fromcontacts.ymlin the current directory, otherwise
the user specifies the file name to use.fromcontactListimportContactsmyContacts=Contacts.from_yamlFile()# A list of the groups loaded from YAMLassertisinstance(myContacts.groups,list)# A list of the clusters loaded from YAMLassertisinstance(myContacts.clusters,list)# Check that the groups and clusters are correctly specified.myContacts.validate()# Generate a Python set of email addresses for the chosen cluster.emailList=myContacts.emails('c2')assertisinstance(emailList,set)