Saravanan666/pypi-org huggingface dataset:
Package: py-serpost
Py-SerpostHerramienta para consultar el estado de los paquetes de Serpost Perú sin necesidad
de autenticarse.InstalaciónUsando pip:$ pip install --user py-serpostCómo utilizarIndicando los numeros de rastreo como parametros:$ serpost -y 2018 -t EA325602591CN RF495973328SG
EA325602591CN:
  descripcion: FUE ENTREGADO
  destino: ADMINISTRACION POSTAL LIMA
  estado: ENTREGADO
  fecha: 2018-01-23 00:00:00
RF495973328SG:
  descripcion: SALIO A DISTRIBUCION
  destino: OFICINA POSTAL CHEPEN
  estado: PENDIENTE DE ENTREGA
  fecha: 2018-02-02 00:00:00Para devolver la informacion detallada:$ serpost --detailed -y 2018 -t EA325602591CN RF495973328SG
EA325602591CN:
  año: 2018
  codigo: EA325602591CN
  destino: ADMINISTRACION POSTAL LIMA
  estado: ENTREGADO
  historia:
  - descripcion: ENVÍO EN PROCESAMIENTO EN LA SEDE PRINCIPAL DE SERPOST - NO DISPONIBLE
    PARA ENTREGA
    destino: ADMINISTRACION POSTAL LIMA
    fecha: 2018-01-19 00:00:00
  - descripcion: ENVÍO EN TRÁNSITO HACIA LA ADMINISTRACION - NO DISPONIBLE PARA ENTREGA
    destino: ADMINISTRACION POSTAL LIMA
    fecha: 2018-01-19 00:00:00
  - descripcion: SALIO A DISTRIBUCION
    destino: ADMINISTRACION POSTAL LIMA
    fecha: 2018-01-20 00:00:00
  - descripcion: SE INTENTO ENTREGAR PERO FUE IMPOSIBLE
    destino: ADMINISTRACION POSTAL LIMA
    fecha: 2018-01-22 00:00:00
  - descripcion: FUE ENTREGADO
    destino: ADMINISTRACION POSTAL LIMA
    fecha: 2018-01-23 00:00:00
    num_aviso: NA002832
    observacion: '-'
    origen: GUANGZHOU EMS
    tipo: EXPRESS MAIL SERVICE EMS
RF495973328SG:
  año: 2018
  codigo: RF495973328SG
  destino: OFICINA POSTAL CHEPEN
  estado: PENDIENTE DE ENTREGA
  historia:
  - descripcion: ENVÍO EN TRÁNSITO HACIA LA ADMINISTRACION - NO DISPONIBLE PARA ENTREGA
    destino: OFICINA POSTAL CHEPEN
    fecha: 2018-01-10 00:00:00
  - descripcion: ENVÍO EN PROCESAMIENTO EN LA SEDE PRINCIPAL DE SERPOST - NO DISPONIBLE
    PARA ENTREGA
    destino: OFICINA POSTAL CHEPEN
    fecha: 2018-01-10 00:00:00
  - descripcion: ENVÍO EN PROCESAMIENTO EN LA SEDE PRINCIPAL DE SERPOST - NO DISPONIBLE
    PARA ENTREGA
    destino: OFICINA POSTAL CHEPEN
    fecha: 2018-01-11 00:00:00
  - descripcion: ENVÍO EN TRÁNSITO HACIA LA ADMINISTRACION - NO DISPONIBLE PARA ENTREGA
    destino: OFICINA POSTAL CHEPEN
    fecha: 2018-01-18 00:00:00
  - descripcion: SALIO A DISTRIBUCION
    destino: OFICINA POSTAL CHEPEN
    fecha: 2018-02-02 00:00:00
  num_aviso: PP001152
  observacion: ENVÍO SELECCIONADO POR SUNAT - ADUANAS
  origen: SINGAPORE 06
  tipo: PEQUEÑOS PAQUETES AFORABLESTambien se pueden leer desde un archivo (un código por linea):$ serpost tracking.txt
Package: py-serpro-biodata
Instalandopipinstallpy_serpro_biodataComo usarSolicitando o token de autenticaçãofrompy_serpro_biodata.serpro.biovalidimportSERPROBioValidsession=SERPROBioValid(SERPRO_CONSUMER_KEY,SERPRO_CONSUMER_SECRET)session=session.authenticate()session.get_token()Solicitando token para realiazar o processo da prova de vidafrompy_serpro_biodata.serpro.biovalidimportSERPROBioValidcpf=11111111111session=SERPROBioValid(SERPRO_CONSUMER_KEY,SERPRO_CONSUMER_SECRET)session=session.authenticate()session.get_biodata_token(cpf)Com esse token você pode baixar o aplicativo BIOValid do SERPRO. Informar o token a na tela inicial e fazer o processo de prova de vida.Após realizar o processo no aplicativo BIOValid do SERPRO. Você precisa verificar o resultada da prova de vida.frompy_serpro_biodata.serpro.biovalidimportSERPROBioValidtoken=<TOKEN_QUE_FOI_USADO_PARA_FAZER_A_PROVA_DE_VIDA>cpf=11111111111session=SERPROBioValid(SERPRO_CONSUMER_KEY,SERPRO_CONSUMER_SECRET)session=session.authenticate()session.validate_biodata_token(cpf,token)
Package: pyserv
HTTPD Python ServerInstallation and usagepipinstallpyservserv[port]Examples :serv8080The output would be...
INFO:root:StartingHTTPSERVERatPORT8080GET and POST request exampleOpen a new terminal and try out sending GET and POST requests$python>>>importrequests>>>URL='http://0.0.0.0:8080'>>>r=requests.get(URL)>>>print(r.text)GETrequestfor/On the server side you would getINFO:root:GETrequest,
Path:/
Headers:
Host:0.0.0.0:8080
User-Agent:python-requests/2.21.0
Accept-Encoding:gzip,deflate
Accept:*/*
Connection:keep-alive127.0.0.1--[18/Dec/201918:01:52]"GET / HTTP/1.1"200-POST request to the server>>>importrequests>>>URL='http://0.0.0.0:8080'>>>r=requests.post(URL)>>>print(r.text)POSTrequestfor/On the server side you will getINFO:root:POSTrequest,
Path:/
Headers:
Host:0.0.0.0:8080
User-Agent:python-requests/2.21.0
Accept-Encoding:gzip,deflate
Accept:*/*
Connection:keep-alive
Content-Length:0Body:127.0.0.1--[18/Dec/201918:03:07]"POST / HTTP/1.1"200-If no port is mentioned the server attempts to run on port 8080.If the given port (or the default port 8080) is already in use the server attempts to bind the next port. If the server does not find any free port after 50 attempts the server stops.Link to the PyPI project :https://pypi.org/project/pyserv/Motivation :https://gist.github.com/mdonkers/63e115cc0c79b4f6b8b3a6b797e485c7(The Project is a extention of the github gist)
Package: pyserval
Python client for the serval-dna REST-interfaceProvides a client to interact with serval-dna's REST-interface in pythonFunctionalityThe following REST-functionality is supported:KeyringRhizomeMeshMSMeshMBRouteFor documentation on the specific endpoints, please consultThe serval-dna documentationDependenciesUp tov0.4, the code is compatible with both Python 2.7 & 3.4+. As ofv0.5, you will need Python 3.6+The only external runtime-dependency isrequests. This should be automatically installed by pip based on the package metadata.Development dependencies are the following:Automatic format checking is done usingblackandpre-commit.In order to run the tests, you will needhypothesis,pytest, andpytest-covfor coverage-reports.To install all dependencies (both runtime and development/testing) runpip install -r requirements.txtInstallationAs ofv0.4, releases are uploaded toPyPi, so you can just install it by namepip install pyservalDevelopmentIn order to have reasonably well formatted code, a format-checking pre-commit hook is supplied. The tool used for checking/reformatting isblack. Note that the hook itself does not do any reformatting, it merely informs you that a file is not properly formatted. You need to do the reformatting yourself usingblack $FILEPATH.The tests require you to have theservaldbinary fromserval-dnainstalled and available in your$PATH. In order to have a consistent testing enviroment,/tmp/pyserval-tests/will be used as the$SERVALINSTANCE_PATH.Clone ProjectInstall project to python-pathYou might want to use a virtualenvYou might also want to do an editable install withpip install -e .Install development dependencies withpip install -r requirements.txtInstall git pre-commit hook withpre-commit installFor testing: In the project root runpytest --cov=pyserval
Package: pyserve
PyServePyServe is the simple command interface for HTTP serving directories.# Python 2.*
$ python -m SimpleHTTPServer

# Python 3
$ python -m http.serverVS# Python 2.*
$ pyserve

# Python 3
$ pyserveContentsPyServeRequirementsInstallationUsageRequirementspython (2.6+ or 3.0+)InstallationDistribute:$ easy_install pyservePIP:$ pip install pyserveUsage$ pyserve --help

usage: pyserve [-h] [-p PORT] [-s] [-a] [path]

Serve current directory

positional arguments:
path                  Path to serve directory.

optional arguments:
-h, --help            show this help message and exit
-p PORT, --port PORT  The port of the webserver.
-s, --share           Make server available externally.
-a, --autoindex       Enable autoindex files.
-d, --hidden          Hide system files
Package: pyserve3
pyserveUnify SocketServer Implementations based on a Session ModelInstallpipinstallpyserve3Examplefrompyserveimport*fromtypingimportOptionalclassEchoServer(Session):defconnection_made(self,addr:Address,writer:Writer):print('connection made!',addr,writer)self.addr=addrself.writer=writerdefdata_recieved(self,data:bytes):print(f'recieved{data!r}from{self.addr}')self.writer.write(data)self.writer.close()defconnection_lost(self,err:Optional[Exception]):print('connection lost!',self.addr,err)# run sync# listen_udp_threaded(('127.0.0.1', 8000), EchoServer)# listen_tcp_threaded(('127.0.0.1', 8000), EchoServer)# run asyncimportasyncio# asyncio.run(listen_udp_async(('127.0.0.1', 8000), EchoServer))asyncio.run(listen_tcp_async(('127.0.0.1',8000),EchoServer))
Package: pyserverchan
pyserverchanServer-chan for python.InstallpipinstallpyserverchanGetting startedYou should go toServer-Changet a SCKEY and bind WeChat. Your URL will be like 'https://sc.ftqq.com/[SCKEY].send'. You can use following functions to send text, picture, markdown files.frompyserverchanimportpyserversvc=pyserver.ServerChan(user_URL)svc.output_to_weixin("ATestMessage.")svc.output_to_weixin_picture("http://sc.ftqq.com/static/image/bottom_logo.png")svc.output_to_weixin_markdown("J:/pyserverchan/README.md")
Package: py-serverdensity
py-serverdensity 1.x===============================About py-serverdensity----------------------``py-serverdensity`` is a lightweight object orientated Python library for the `Server Density API <https://github.com/serverdensity.com/sd-api-docs`_.The library provides access to all the GET and POST methods in the SD API, takes care of authentication, allows you to post values as items in a dict, returns native Python objects from the service response, and raises exceptions for service errors.Installation------------The library can be installed from PyPi using ``pip``::pip install py-serverdensityOr cloned from `Github <http://www.github.com/>`_ using ``git``::git clone git://github.com/1stvamp/py-serverdensity.gitcd py-serverdensitypython setup.py installUsage-----Once installed just import the class ``SDApi`` from the ``serverdensity.api`` module, instance the handler with your Server Density account details (remember to turn API access on for the account you're using, see `the docs <https://github.com/serverdensity/sd-api-docs#authentication>`_, and then you can access methods on each section as attributes of the API handler::from serverdensity.api import SDApi, SDServiceErrorapi = SDApi(account='foo.serverdensity.com',username='bar',password='baz')api.alerts.getLast()try:api.devices.getByHostName({'hostName': 'myserver.somedomain.com'})api.devices.getById({},{'deviceId':'device_id'})except SDServiceError, e:print 'Error:', eprint 'Response:', e.response
Package: py-service
serviceExtremely basic launchctl wrapper for macOS.RequirementsmacOS 12.x+Python 3.10.x, 3.11.xInstallationpip install py-serviceUsageUsage: service [OPTIONS] COMMAND [ARGS]...

  Extremely basic launchctl wrapper for macOS.

Options:
  -c, --config TEXT  The configuration file to use
  --help             Show this message and exit.
  -v, --verbose      Increase verbosity
  --version          Show the version and exit.

Commands:
  disable  Disable a service (system domain only).
  enable   Enable a service (system domain only).
  restart  Restart a service.
  start    Start a service.
  stop     Stop a service.Services can be referenced by name, file name (with or without ".plist" extension), or the full path to the file. When referenced by name the service will be resolved using the defined reverse domains (seeConfiguration). Examples of valid service references are:baz(when reverse domains are defined)com.foobar.bazcom.foobar.baz.plist/Library/LaunchDaemons/com.foobar.baz/Library/LaunchDaemons/com.foobar.baz.plistNote:Targeting a macOS system service found in the/System/*path will raise an error and terminate without attempting to modify the service state. These services typically cannot be changed unless SIP is disabled.ExamplesStart a service:$ service start com.gui.xserv
xserv startedEnable and start a service (system domain):$ sudo service start --enable com.sys.xserv
xserv enabled and startedStop a service:$ service stop com.gui.xserv
xserv stoppedStop and disable a service (system domain):$ sudo service stop --disable com.sys.xserv
xserv stopped and disabledRestart a service:$ service restart com.gui.xserv
xserv restartedEnable a service (system domain):$ sudo service enable com.sys.xserv
xserv enabledDisable a service (system domain):$ sudo service disable com.sys.xserv
xserv disabledConfigurationReverse domains can be defined in the file~/.config/service.toml. When a service is referenced by name it will be resolved to a file in the current domain (system/gui) using the defined reverse domains. Services cannot be referenced by their name alone if no reverse domains are defined.Example configuration:reverse-domains = [
  "com.bar.foo",
  "org.bat.baz"
]With this configuration, a service in the gui domain at~/Library/LaunchAgents/com.bar.foo.xserv.plistcan be targeted using only its name (xserv):$ service start xserv
xserv startedLicenseservice is released under theMIT License
Package: pyservicebinding
pyservicebindingKubernetes Service Binding Library for Python ApplicationsTheService Binding Specificationfor Kubernetes standardizes exposing
backing service secrets to applications.  This project provides a Python module
to consume the bindings projected into the container.  TheApplication
Projectionsection of the spec describes how the
bindings are projected into the application.  The primary mechanism of
projection is through files mounted at a specific directory.  The bindings
directory path can be discovered throughSERVICE_BINDING_ROOTenvironment
variable.  The operator must have injectedSERVICE_BINDING_ROOTenvironment to
all the containers where bindings are created.Within this service binding root directory, there could be multiple bindings
projected from different Service Bindings.  For example, suppose an application
requires to connect to a database and cache server. In that case, one Service
Binding can provide the database, and the other Service Binding can offer
bindings to the cache server.Let's take a look at the example given in the spec:$SERVICE_BINDING_ROOT
├── account-database
│   ├── type
│   ├── provider
│   ├── uri
│   ├── username
│   └── password
└── transaction-event-stream
    ├── type
    ├── connection-count
    ├── uri
    ├── certificates
    └── private-keyIn the above example, there are two bindings under theSERVICE_BINDING_ROOTdirectory.  Theaccount-databaseandtransaction-event-systemare the names
of the bindings.  Files within each bindings directory has a special file namedtype, and you can rely on the value of that file to identify the type of the
binding projected into that directory.  In certain directories, you can also see
another file namedprovider.  The provider is an additional identifier to
narrow down the type further.  This module use thetypefield and, optionally,providerfield to look up the bindings.InstallationYou can install this package using pip:pipinstallpyservicebindingUsageTheServiceBindingobject can be instantiated like this:frompyservicebindingimportbindingtry:sb=binding.ServiceBinding()exceptbinding.ServiceBindingRootMissingErrorasmsg:# log the error message and retry/exitprint("SERVICE_BINDING_ROOT env var not set")To get bindings for a specifictype, saypostgresql:bindings_list=sb.bindings("postgresql")To get bindings for a specifictype, saymysql, andprovider, saymariadb:bindings_list=sb.bindings("mysql","mariadb")To get all bindings irrespective of thetypeandprovider:bindings_list=sb.all_bindings()This is the complete API of the module:classServiceBindingRootMissingError(Exception):passclassServiceBinding:def__init__(self):"""- raise ServiceBindingRootMissingError if SERVICE_BINDING_ROOT env var not set"""defall_bindings(self)->list[dict[str,str]]:"""Get all bindings as a list of dictionaries- return empty list if no bindings found"""defbindings(self,_type:str,provider:typing.Optional[str]=None)->list[dict[str,str]]:"""Get filtered bindings as a list of dictionaries- return empty dictionary if no binding found- filter the result with the given _type input- if provider input is given, filter bindings using the given type and provider"""
Package: pyservicenow
PyServiceNowDistributingCheck any of the Release/* branches to find the needed version
Check under dist for the .whl filepipinstall*.whlMaking Wheelpythonsetup.pybdist_wheel--universalExample Basic Callfrompyservicenow.coreimportUsernamePasswordCredential,ServiceNowClientfrompyservicenow.types.models.querybuilderimportQueryBuildercredential=UsernamePasswordCredential("","")client=ServiceNowClient(credential=credential,instance="instance")query=QueryBuilder().field("serial_number").equals("92XWKW2")Ticket=client.Now.table_api("alm_hardware").Request.sysparam_query(query).sysparam_limit(1).Get.invoke_request
Package: py-service-registry
serviceregistryService Registry for python appsFor instance during the lifecycle of the application you want 2 things:store system variablesstore service with certain initialization code and initialize them on boot of the applicationlet's look an example to understand this further..installationpip install serviceregistryhow to usefromserviceregistry.servicesimportContainer,Registryimportmeerkat.configurations.app.settingsdefcreate_container(app):container=Container()container.set(settings.Props.FALCON,app)returncontainerdefboot(container):service_registry=Registry()forserviceinsettings.services:service_registry.register(service)service_registry.boot(container)container=create_container(create_app())boot(container)here we define the props enum as constants to a system vars# settings.pyfromserviceregistry.servicesimportPropsasBasePropsservices=[LoggingService(),EnvironmentService(),]classProps(BaseProps):DI_PROVIDER=0FALCON=1APP_URL="APP_URL"MONGO_HOST="MONGO_HOST"MONGO_PORT="MONGO_PORT"MONGO_DB="MONGO_DB"and here is the environment service, which registers certain system variables from environment variablesimportosfromserviceregistry.servicesimportBootableService,ContainerclassEnvironmentService(BootableService):defboot(self,container:Container):frommeerkat.configurations.app.settingsimportPropscontainer.set(Props.APP_URL,os.environ.get(Props.APP_URL.value))container.set(Props.MONGO_HOST,os.environ.get(Props.MONGO_HOST.value))container.set(Props.MONGO_PORT,os.environ.get(Props.MONGO_PORT.value))container.set(Props.MONGO_DB,os.environ.get(Props.MONGO_DB.value))Logging serviceimportloggingasregistry_loggingimportsysimportserviceregistry.servicesclassLoggingService(serviceregistry.services.BootableService):defboot(self):registry_logging.basicConfig(format="%(asctime)s-%(name)s-%(levelname)s-%(message)s",level=registry_logging.DEBUG,)registry_logging.getLogger().addHandler(registry_logging.StreamHandler(sys.stdout))
Package: pyservoce
This library is part of zencad project.
Servoce wraps opencascade core for integrate with zencad.Status:- master- devZenCadInstall from PyPi.python3 -m pip install pyservoceInstall from Source Code.Get Dependies. (OCCT, PyBind11, Licant)sudoadd-apt-repositoryppa:freecad-maintainers/occt-releases-y
sudoadd-apt-repositoryppa:freecad-maintainers/freecad-stable-y
sudoapt-getupdate
sudoaptinstall-ylibocct-foundation-7.3libocct-ocaf-7.3libocct-data-exchange-7.3libocct-foundation-devlibocct-ocaf-devlibocct-data-exchange-dev
sudoaptinstall-ypython3-pybind11
python3-mpipinstalllicant--userGet source codegitclonehttps://github.com/mirmik/servoce--recursivecdservoceInstall as python package from sources.python3./setup.pyinstall--userInstall as dynamic library with CMake.source./tools/set_occt_paths.sh
cmake.
cmake--build
cmake--build.--targetinstallInstall as dynamic library with Licant../make.py
sudo./make.pyinstallDepend repositories:https://github.com/mirmik/igrishttps://github.com/mirmik/noshttps://github.com/mirmik/licant
Package: pysesame
Python API for controllingSesamesmart locks made
by CANDY HOUSE, Inc.This is based on thecloud APIfor Sesame.RequirementsYour Sesame needs to be paired with the mobile app invirtual stationmode, or a standaloneWi-Fi Access Point.Dependenciespysesame depends on the Python package, requests. You can install dependencies
usingpip install-rrequirements.txtUsage>>importpysesame>>sesames=pysesame.get_sesames("abc@i-lovecandyhouse.co","super-strong-password")>>[s.nicknameforsinsesames]['Front Door','Back Door']>>front_door=next(sforsinsesamesifs.nickname=="Front Door")>>front_door.device_id'FEEDFACE1234'>>front_door.api_enabledTrue>>front_door.is_unlockedFalse>>front.door.unlock()True>>front_door.is_unlockedTrue>>front.door.is_unlocked=False>>front_door.is_unlockedFalseLicensepysesame is released under the MIT license.
Package: pysesame2
pysesame2Python API for Sesame Smartlock made by CANDY HOUSE, Inc.API KEYYou have to generate apikey using candyhouse dashboard:https://my.candyhouse.co/InstallationInstall from pypi# pip install pysesame2Install from source# python setup.py installExamplepythonfrompysesame2importget_sesamessesames=get_sesames(YOUR_APIKEY)sesame=sesames[0]print(sesame)print(sesame.get_status())sesame.lock()fromuuidimportUUIDfromtimeimportsleepfrompyseame2importSesamedevice_id=UUID('YOUR DEVICE UUID')sesame=Sesame(device_id,YOUR_APIKEY)print(sesame.get_status())task=sesame.async_lock()whiletask.pooling()isFalse:print('Processing...')sleep(1)print('Result:%s'%task.is_successful)Command Line Interface# sesame2 --apikey YOUR_APIKEY listDeviceIDSerialNickame======================================================================00000000-0000-0000-0000-000000000001000000000001MY-SESAME-LOCK-100000000-0000-0000-0000-000000000002000000000002MY-SESAME-LOCK-2# sesame2 --apikey YOUR_APIKEY lock 00000000-0000-0000-0000-000000000001# sesame2 --apikey YOUR_APIKEY status 00000000-0000-0000-0000-000000000001Locked:True
Battery:100Responsive:TrueUsesesame2 --helpget more options
Package: pysesame3
pysesame3Unofficial Python Library for SESAME products from CANDY HOUSE, Inc.This project aims to control SESAME devices by usingthe cloud service.Free software: MIT licenseDocumentation:https://pysesame3.readthedocs.ioSupported devicesSESAME 3SESAME 4SESAME botFeaturesRetrieve the device status (battery level, locked, handle position, etc.).Retrieve recent events (locked, unlocked, etc.) associated with a lock.Needless to say, locking, unlocking and clicking (for the bot)!UsagePlease take a look atthe documentation.Related ProjectsLibrariesNameLangCommunication MethodpysesamePythonSesame API v1/v2pysesame2PythonSesame API v3pysesame3PythonWeb API,CognitoAuth (The official android SDK reverse-engineered)pysesameos2PythonBluetoothIntegrationsNameDescriptionCommunication MethoddoormanControl SESAME3 from Homebridge by MQTTWeb APIDoorlockiOS widget for Sesame 3 smart lockWeb APIgopy-sesame3NFC (Felica) integrationWeb APIhomebridge-open-sesameHomebridge plugin for SESAME3Cognito integrationhomebridge-sesame-os2Homebridge Plugin for SESAME OS2 (SESAME3)Web APIsesame3-webhookSend SESAME3 status to specified url. (HTTP Post)CognitoAuth (based onpysesame3)Credits & ThanksA huge thank you to all atCANDY HOUSEand their crowdfunding contributors!Thanks to@Chabiichi-san forthe offerto get my SESAME bot!This project was inspired and based ontchellomello/python-ring-doorbellandsnjoetw/py-august.