Saravanan666/pypi-org huggingface dataset:
Package: escp
escpA Python library to drive ESC/P printersMotivationThere isno driveravailable for your printer, or there is one but it isslowand theprint quality is mediocre.Missing driver can be worked around by using a generic 9-pin or 24-pin generic driver. To get the highest quality, this library focuses ontext modeprinting, leveraging device fonts (built-in fonts), as opposed to modern drivers that rely on graphics.InstallationpipinstallescpUseOnly USB is supported for now. You can find theid_vendorandid_productvalues usinglsusb.$lsusb|grep-iepson
Bus001Device004:ID04b8:0005SeikoEpsonCorp.Printerimportescp# Create a printer instance (Espon LX-300+II)printer=escp.UsbPrinter(id_vendor=0x04b8,id_product=0x0005)# Obtain commands for 9-pin printercommands=escp.lookup_by_pins(9)# Prepare the buffer to print a short textcommands.init().text('ESC/P direct printing test page').cr_lf(2)# Printer go brrrrrrprinter.send(commands.buffer)Seedemofor a more complete example.FeaturesESC/P, ESC/P2, ESC/POSVariantSupportedESC/P✓ESC/P2✗ESC/POS✗ESC/P(Epson Standard Code for Printers), sometimes calledEscape/P, is a printer control language developed by Epson to control computer printers. It was mainly used in dot matrix printers and some inkjet printers, and is still widely used in many receipt thermal printers. Supported. Primary target.ESC/P2is a more recent variant of ESC/P by Epson. Backward compatible with ESC/P. Not supported. Switch to ESC/P but some features won't be available.ESC/POSis a variant for controlling receipt printers as commonly used at the point of sale (POS). Often thermal printers. Not supported and out of scope. Use the comprehensivepython-escposlibrary instead.ReferencesEpson reference manual (dec. 1997)WikipediaPrintersTested on a 9-pin reference printer:Epson LX-300+II. All 9-pin printers should work, with minor hardware limitations on some commands. 24/48-pin printers are implemented bt not tested. The differences between 9-pin and 24/48 pin are minor.TypeStatus9-pinWork in progress – Text mode24/48-pinWork in progress – Text mode – Not testedConnectivityConnectorStatusUSB✓Serial✗Parallel✗File✓Although serial and parallel ports are not supported, you can output the printer commands to a file and send it in raw mode to the printer usinglpr.CreditsInspired frompython-escpos.LicenseGNU General Public License v3.0
Package: escpos
DescriptionPython ESC/POS is a library which lets the user have access to all those printers handled
by ESC/POS commands, as defined by Epson, from a Python application.The library tries to implement the functions provided by the ESC/POS-commandset and supports sending text, images,
barcodes and qr-codes to the printer.Text can be aligned/justified and fonts can be changed by size, type and weight.Also, this module handles some hardware functionalities like cutting paper, control characters, printer reset
and similar functions.Since supported commands differ from printer to printer the software tries to automatically apply the right
settings for the printer that you set. These settings are handled byescpos-printer-dbwhich is also used inescpos-php.DependenciesThis library makes use of:pyusbfor USB-printersPillowfor image printingqrcodefor the generation of QR-codespyserialfor serial printerspython-barcodefor the generation of barcodesDocumentation and UsageThe basic usage is:fromescpos.printerimportUsb""" Seiko Epson Corp. Receipt Printer (EPSON TM-T88III) """p=Usb(0x04b8,0x0202,0,profile="TM-T88III")p.text("Hello World\n")p.image("logo.gif")p.barcode('1324354657687','EAN13',64,2,'','')p.cut()Another example based on the Network printer class:fromescpos.printerimportNetworkkitchen=Network("192.168.1.100")#Printer IP Addresskitchen.text("Hello World\n")kitchen.barcode('1324354657687','EAN13',64,2,'','')kitchen.cut()Another example based on the Serial printer class:fromescpos.printerimportSerial""" 9600 Baud, 8N1, Flow Control Enabled """p=Serial(devfile='/dev/tty.usbserial',baudrate=9600,bytesize=8,parity='N',stopbits=1,timeout=1.00,dsrdtr=True)p.text("Hello World\n")p.qr("You can readme from your smartphone")p.cut()ContributingThis project is open for any contribution! Please seeCONTRIBUTING.rstfor more information.DisclaimerNone of the vendors cited in this project agree or endorse any of the patterns or implementations.
Its names are used only to maintain context.
Package: escposgen
escposgenDescriptionGenerator of printable binary files with helper methods based on ESC/POS protocol.Methods to:Create tables providing data and table format.Set text format in ESC/POS protocol.Open drawer.Ring buzzer.Print text.Predefined horizontal lines.Get ESC/POS commands to print images.Generate ESC/POS printable binary file.Supports spanish characters.InstalationRun the following to install:pipinstallescposgenUsagefromescposgenimportescGeneratora=escGenerator()options={"columns":[{"text":"Cant","type":"data","header_align":"center","data_align":"left"},{"text":"Descripción","type":"fill","header_align":"center","data_align":"left","data_fill_car":" "},{"text":"Precio","type":"data","header_align":"center","data_align":"right"}],"show_headers":True,"show_data":True,"border_top":False,"border_right":False,"border_bottom":True,"border_left":False,"separate_header":True,"separate_cols":True,"separate_rows":False,"row_separator_style":"blank-dashed","style":"blank-line","table_align":"center"}data=[["1","Hamburguesa con papas y mucho aguacate porfavor","$50.00"],["1","Cocacola ","$10.00"],["1","Sprite","$10.00"],["2","Tacos barbacoa","$24.00"],["1","Torta ahogada","$23.00"],["2","Torta ahogada","$23.00"],["3","Torta ahogada","$23.00"],["4","Torta ahogada","$23.00"]]a.table(data,options)data_to_print=a.generate()str_dev_printer=f"/dev/usb/lp2"dev_printer=open(str_dev_printer,'wb')dev_printer.write(data_to_print)
Package: escpos-gen
escpos_genDescriptionGenerator of printable binary files with helper methods based on ESC/POS protocol.Methods to:Create tables providing data and table format.Set text format in ESC/POS protocol.Open drawer.Ring buzzer.Print text.Predefined horizontal lines.Get ESC/POS commands to print images.Generate ESC/POS printable binary file.Supports spanish characters.InstalationRun the following to install:pipinstallescpos_genUsagefromescpos_genimportescGeneratora=escGenerator()options={"columns":[{"text":"Cant","type":"data","header_align":"center","data_align":"left"},{"text":"Descripción","type":"fill","header_align":"center","data_align":"left","data_fill_car":" "},{"text":"Precio","type":"data","header_align":"center","data_align":"right"}],"show_headers":True,"show_data":True,"border_top":False,"border_right":False,"border_bottom":True,"border_left":False,"separate_header":True,"separate_cols":True,"separate_rows":False,"row_separator_style":"blank-dashed","style":"blank-line","table_align":"center"}data=[["1","Hamburguesa con papas y mucho aguacate porfavor","$50.00"],["1","Cocacola ","$10.00"],["1","Sprite","$10.00"],["2","Tacos barbacoa","$24.00"],["1","Torta ahogada","$23.00"],["2","Torta ahogada","$23.00"],["3","Torta ahogada","$23.00"],["4","Torta ahogada","$23.00"]]a.table(data,options)data_to_print=a.generate()str_dev_printer=f"/dev/usb/lp2"dev_printer=open(str_dev_printer,'wb')dev_printer.write(data_to_print)
Package: escriptorium-fetcher
🐕 escriptorium-fetcher 🐕A CLI for downloading data from an eScriptorium server.Installationpipinstallescriptorium-fetcherUsage$fetcherYou will be prompted to select a project to fetch. Enter the number next to the project that you would like to fetch and press enter. For example, if you would like to fetch the first project, enter the following and press enter:0initial_batch-2024-02-211another_project-2024-02-21
🐾Selectaprojecttofetch:0By default, fetcher downloads images and transcriptions. You need to select which transcription you want to download. Enter the number next to the transcription that you would like to fetch and press enter. For example, if you would like to fetch the first transcription, enter the following and press enter:0vision1manual
Pleaseselectatranscriptiontofetch:0The first time that you run the script you will be prompted to enter:the url of the eScriptorium serveryour username for the eScriptorium serveryour password for the eScriptorium servera local path to save the image filesa local path to save the transcription files (ALTO xml)To clear  your settings and start over, run:$fetcher--clear-secretsIf you do not want to download images or transcriptions, you can use the--no-imagesor--no-transcriptionsflags. For example:$fetcher--no-images
Package: escrotum
Linux screen capture and screen recording program inspired by scrot.Why?Because scrot has glitches when selection is used in refreshing windowsFeaturesfullscreen screenshotsscreen recordingpartial(selection) screenshotswindow screenshot(click to select)screenshot by xidstore the image to the clipboardusage: escrotum [-h] [-v] [-s] [-x XID] [-d DELAY]
                [--selection-delay SELECTION_DELAY] [-c] [-C] [-e COMMAND]
                [-r]
                [FILENAME]

positional arguments:
  FILENAME              image filename, default is
                        %Y-%m-%d-%H%M%S_$wx$h_escrotum.png

optional arguments:
  -h, --help            show this help message and exit
  -v, --version         output version information and exit
  -s, --select          interactively choose a window or rectangle with the
                        mouse, cancels with Esc or Right Click
  -x XID, --xid XID     take a screenshot of the xid window
  -d DELAY, --delay DELAY
                        wait DELAY seconds before taking a shot
  --selection-delay SELECTION_DELAY
                        delay in milliseconds between selection/screenshot
  -c, --countdown       show a countdown before taking the shot (requires
                        delay)
  -C, --clipboard       store the image on the clipboard
  -e COMMAND, --exec COMMAND
                        run the command after the image is taken
  -r, --record          screen recording. Alt+Ctrl+s to stop the recording

  SPECIAL STRINGS
  Both the --exec and filename parameters can take format specifiers
  that are expanded by escrotum when encountered.

  There are two types of format specifier. Characters preceded by a '%'
  are interpreted by strftime(2). See man strftime for examples.
  These options may be used to refer to the current date and time.

  The second kind are internal to escrotum and are prefixed by '$'
  The following specifiers are recognised:
    $f image path/filename (ignored when used in the filename)
    $w image width
    $h image height
  Example:
    escrotum '%Y-%m-%d-%H%M%S_$wx$h_escrotum.png'
    Creates a file called something like 2013-06-17-082335_263x738_escrotum.png

  EXIT STATUS CODES
  1 can't get the window by xid
  2 invalid pixbuf
  3 can't save the image
  4 user canceled selection
  5 can't grab the mouse
  6 error with ffmpegInstallon archlinux, install with your favorite aur manager, ie. yay -S escrotum-gitwith pip, pip install escrotum
Package: escrutinar-jp
escrutinar_jpInformações sobre endereços IPEste projeto contém duas funções úteis para obtenção de informações sobre endereços IP:sondar_ip: consulta o serviçohttps://ipwho.is/e retorna informações sobre o endereço IP informado;pedir_ip_site: dado um endereço de site, retorna o endereço IP associado a esse site.Como usarsondar_ipA função sondar_ip pode ser usada para obter informações sobre um endereço IP específico ou, se nenhum endereço for informado, sobre o endereço IP público da máquina local. É possível escolher se a chave "flag" deve ou não ser incluída na resposta.Para utilizar a função sondar_ip, faça:fromescrutinar_jp.escrutinarimportsondar_ip# Obter informações sobre o endereço IP 8.8.8.8resultado=sondar_ip("8.8.8.8")print(resultado)# Obter informações sobre o endereço IP público da máquina local sem incluir a chave "flag" na respostaresultado=sondar_ip(mostrar_flag=False)print(resultado)A função retorna um dicionário contendo informações sobre o endereço IP. Exemplo de resposta:{"ip":"8.8.8.8","success":"True","type":"IPv4","continent":"North America","continent_code":"NA","country":"United States","country_code":"US","region":"California","region_code":"CA","city":"Mountain View","latitude":"37.3860517","longitude":"-122.0838511","postal":"94039","calling_code":"1","capital":"Washington D.C.","borders":"CA,MX","connection":{"asn":"15169","org":"Google LLC","isp":"Google LLC","domain":"google.com"},"timezone":{"id":"America/Los_Angeles","abbr":"PDT","is_dst":"True","offset":"-25200","utc":"-07:00","current_time":"2023-04-29T18:44:31-07:00"}}pedir_ip_siteA função pedir_ip_site recebe um endereço de site e retorna o endereço IP associado a esse site.Para utilizar a função pedir_ip_site, faça:fromescrutinar_jp.escrutinarimportpedir_ip_site# Obter o endereço IP do site google.comresultado=pedir_ip_site("google.com")print(resultado)A função retorna uma string contendo o endereço IP do site. Exemplo de resposta:"172.217.29.206"InstalaçãoUse o gerenciador de pacotepippara instalar escrutinar_jppip3 install escrutinar_jpAuthorJorge PauloLicenseMIT
Package: esctl
EsctlA Command-Line Interface designed to ease Elasticsearch administration.Key Features•Installation•How To Use•Examples•License•DevelopingEsctl is a CLI tool for Elasticsearch.I designed itto shorten hugecurlcommands Elasticsearch operators were running like :curl-XPUT--user"john:doe"'http://elasticsearch.example.com:9200/_cluster/settings'-d'{"transient" : {"cluster.routing.allocation.enable": "NONE"}}'The equivalent withesctlisesctlclusterroutingallocationenablenoneKey FeaturesEasy to use CLIrather than long curl commands (thanks tocliff)Cluster-level informations :stats,info,health,allocation explanationNode-level informations :list,hot threads,exclusion,statsCluster-level and index-levelsettings_catAPI forallocation,pluginsandthread poolsIndex management: open, close, create, delete, listrawcommand to perform raw HTTP calls when esctl doesn't provide a nice interface for a given route.Per-modulelog configurationX-Pack APIs :usersandrolesMultiple output formats: table, csv, json, value, yamlJMESPathqueries using the--jmespathflagColored output !Run arbitrary pre-commands before issuing the call to Elasticsearch (like runningkubectl port-forwardfor example)Fetch cluster's credentials from external commands instead of having them shown in cleartext in the config fileInstallationUsing PIPpipinstallesctlFrom sourcepipinstallgit+https://github.com/jeromepin/esctl.gitHow To UseEsctl relies on a~/.esctlrcfile containing its config. This file is automatically created on the first start if it doesn't exists :clusters:bar:servers:-https://bar.example.comusers:john-doe:username:johnexternal_password:command:run:kubectl --context=bar --namespace=baz get secrets -o json my-secret | jq -r '.data.password||@base64d'contexts:foo:user:john-doecluster:bardefault-context:fooRunning pre-commandsSometimes, you need to execute a shell command right before running theesctlcommand. Like running akubectl port-forwardin order to connect to your Kubernetes cluster.
There is apre_commandsblock inside the context which can take care of that :clusters:remote-kubernetes:servers:-http://localhost:9200contexts:my-distant-cluster:cluster:remote-kubernetespre_commands:-command:kubectl --context=my-kubernetes-context --namespace=elasticsearch port-forward svc/elasticsearch 9200wait_for_exit:falsewait_for_output:Forwarding fromuser:john-doeAlong withcommand, you can pass two options :wait_for_exit(default:true) : wait for the command to exit before continuing. Usually set tofalsewhen the command is running in the foreground.wait_for_output: ifwait_for_exitisfalse, look for a specific output in the command's stdout. The string to look-for is interpreted as a regular expression passed to Python'sre.compile().ExamplesLicenseesctlis licensed under the GNU GPLv3. SeeLICENCEfile.DevelopingInstallmakeinstallRun testsmaketestFormat codemakefmt
Package: esdc-api
Danube Cloud APIPython Library.Supported Python versions: >= 2.6 and >= 3.2Installationpipinstallesdc-apiDependencies:requestsUsage>>>fromesdc_apiimportClient>>>es=Client(api_url='https://danube.cloud/api',api_key='<your-api-key>')>>>es.get('/vm').contentComplete documentation is available athttps://erigones.github.io/esdc-api/LinksDanube Cloud:https://danubecloud.comDanube Cloud API Documentation:https://docs.danubecloud.org/api-reference/Bug Tracker:https://github.com/erigones/esdc-api/issuesTwitter:https://twitter.com/danubecloudMailing list:danubecloud@googlegroups.comIRC:irc.freenode.net#danubecloud
Package: esddns
ESDDNS--------------|----|----------
,---.,---.,---|,---|,---.,---.
|---'`---.|   ||   ||   |`---.
`---'`---'`---'`---'`   '`---'
          For Emil and Stella!ESDDNS(esddns) is an Open Source Dynamic DNS solution to automatically synchronize public
WAN IPv4 address with a target DNS A Record when there is a configuration drift
due to IPv4 address changes.Creates and manages dynamic states for WAN IPv4 and DNS Record.Utilizes dynamic public WAN IPv4 address discovered and retrieved from
external IPv4 check services, automatically synchronizes it with
managed DNS A record via REST APIs.Documentation
Package: esdk
ETECSA SDKSDK para integraciones de aplicaciones de ETECSA, el paquete es llamadoesdk.Table de contenidosEstructura de modulosInstalacion del paqueteModulo commercialModulo paymentModulo utilEstructura de modulosLos modulos estan conformados de la siguiente manera:-esdk--commercial---ecrm--payment---transfermovil--util---apideviceInstalacion del paqueteDebe instalarse ejecutando en el ambiente virtual o con la version de python deseada utilizando el gestor de paquetes pip de la siguiente manera:pip install esdkModulo commercialEl modulo comercial esta conformado por las aplicaciones comerciales de la empresa, hasta el momento se cuenta solamente con la integracion con ecrm.Ejemplodevalidaciondeserviciosenecrmfromesdk.commercial.ecrmimportAPICredentials,APIOperations,APIConstants,ServiceToValidate,ServiceToPaycredential=APICredentials("username","password")service=ServiceToValidate("nauta",APIConstants.SERVICE_TYPE_IDENTIFICATOR_NAUTA)service1=ServiceToValidate("number",APIConstants.SERVICE_TYPE_IDENTIFICATOR_INVOICE)service2=ServiceToValidate("propia",APIConstants.SERVICE_TYPE_IDENTIFICATOR_PROPIA)lst_services=[service.get_service(),service1.get_service(),service2.get_service()]operation=APIOperations(credential)operation.servicesvalidate(lst_services)Ejemplodepagodeserviciosfromesdk.commercial.ecrmimportAPICredentials,APIOperations,APIConstants,ServiceToValidate,ServiceToPaycredential=APICredentials("username","password")service=ServiceToPay("acc1",APIConstants.SERVICE_TYPE_IDENTIFICATOR_INVOICE,"number",10)service1=ServiceToPay("acc2",APIConstants.SERVICE_TYPE_IDENTIFICATOR_INVOICE,"number",10)service2=ServiceToPay("acc3",APIConstants.SERVICE_TYPE_IDENTIFICATOR_INVOICE,"number",10)lst_services=[service.get_service(),service1.get_service(),service2.get_service()]operation=APIOperations(credential)operation.servicespayment(lst_services,"id","source","pm","cup")Modulo paymentEl modulo payment esta conformado por las pasarelas de pago empleadas en el pais, hasta el momento se cuenta solamente con la integracion con transfermovil.fromesdk.payment.transfer_movilimportAPICredentials,APIPayload,APIPaymentcredential=APICredentials("username","source","seed")payload=APIPayload(10,'currency','id','source','url')payment=APIPayment()payment.charge(credential,payload)Modulo utilEl modulo util esta conformado por conjunto de funciones, hasta el momento se cuenta solamente con obtener los datos del agente de usuario de la peticion http.fromesdk.util.api_deviceimportAPIDeviceapi_device=APIDevice('user-agent')device=api_device.getdevice()
Package: esdm
ESDM  Easy-SSH-Device-ManagerA tool for managing SSH devices.Downloadsudo apt install sshpass

pip install esdmUsageOptions:-r, --remote Specify the name of the remote SSH device-a, --add Add a new SSH device-l, --list List all saved SSH devices-d, --delete Delete a saved SSH devicedd+-e, --edit Edit a saved SSH device-s, --sftp Open SFTP protocolExamplesList all saved SSH devicesesdm -lAdd a new SSH deviceesdm -a
Enter the device name: my_device
Enter the IP address: ip
Enter the username: usernam
Enter the password: passwordConnect to a remote deviceesdm -r my_deviceEddit a  SSH deviceesdm -e mydevice 
Enter the new IP address (leave empty to keep existing):new ip
Enter the new username (leave empty to keep existing): new user name
Enter the new password (leave empty to keep existing): new passwordOpen Sftp Protocol
esdm -s mydeviceHow it worksesdm uses a JSON file to store the SSH devices. The file is located in the home directory of the user who runs the tool. The file is named ~/.SDM/ssh_devices.json.The JSON file is a dictionary where the keys are the device names and the values are the device information. The device information includes the IP address, username, and password.When the user runs the esdm tool, it first checks if the JSON file exists. If it does not exist, the tool creates a new empty file.The tool then parses the command-line arguments. If the user specifies the -r option, the tool connects to the remote device. To do this, the tool uses the device information from the JSON file.If the user specifies the -a option, the tool adds a new SSH device to the JSON file. The tool prompts the user for the device name, IP address, username, and password.If the user specifies the -l option, the tool lists all of the saved SSH devices.If the user specifies the -d option, the tool deletes a saved SSH device from the JSON file.
Licenseesdm is licensed under the MIT License.