Saravanan666/pypi-org huggingface dataset:
Package: i0
使い方:)pip install i0Then run:i0Or:i0 –path ~/.metadrive –host 0.0.0.0 –port 8000ノート( we could say, general interfaces are missing in federation, e.g.:Can’t comment in RSS.Can’t reply emails serialized in RSS.Can’t reply telegram in RSS.Can’t confirm money transfers serialized in RSS.Can’t sign contracts serlized in RSS (work contracts, service contracts, supply contracts, cooperation contracts, etc.).In general, objects don’t carry their interfaces provided by drivers.
Package: i10-bluesky
This is where you should write a short paragraph that describes what your module does,
how it does it, and why people should use it.PyPIpip installi10-blueskySource codehttps://github.com/Relm-Arrowny/i10-blueskyReleaseshttps://github.com/Relm-Arrowny/i10-bluesky/releasesThis is where you should put some images or code snippets that illustrate
some relevant examples. If it is a library then you might put some
introductory code here:fromi10_blueskyimport__version__print(f"Hello i10_bluesky{__version__}")Or if it is a commandline tool then you might put some example commands here:$ python -m i10_bluesky --version
Package: i18
i18Apply nlp tasks into some grammar (i.e. html, yaml, json)Installation from Pypipipinstalli18Installation from Gitpipinstallgit+https://github.com/api-market-company/i18.gitCLIApply i18 in Batchfind.-name'*.blade.php'|xargs-P8-I{}i18-s{}2>"error.txt"|jq-s|jq'reduce .[] as $item ({}; .en += $item.en | .es += $item.es)'>translation.jsonPythonConsult ournotebooksto learn more. We recommend you starting withGetting started.NoteThis project has been set up using PyScaffold 4.4. For details and usage
information on PyScaffold seehttps://pyscaffold.org/.
Package: i18nize
# i18nizeThis is a simple Client that integrates with the localization service www.i18nize.com```pip install i18nize```### Config parameters| Name        | Type | Required | What? || ------------- |-------------|-------------|-------------|| PROJECT_ID | String | Yes | This should be the id of your project. || DESTINATION_PATH | String | Yes | The path where you want your locale to get saved. || LIVE | Boolean | Yes | Set to *true* if you want to download your live locales otherwise your dev locales will get downloaded. |### Example usage```pythonfrom i18nize.client import Clientclient = Client(project_id='86416ce4-fd52-4daf-9764-46f35b07af23',destination_dir='locales/',live=False)client.get_all_locales()OUTPUT:>> Downloaded en to dist/locales/en.json (live: True)>> Downloaded sv to dist/locales/sv.json (live: True)```
Package: i18nize_templates
i18nize-templates=================A tool to automatically add i18n markup to jinja2 and handlebarstemplates.  It may also work for django, though this is not tested.This is part of a process to make a non-i18n-aware jinja2 orhandlebars file i18n-aware.  i18n-ness support is mostly a matter ofmarking natural-language text in the file that needs to be translated.While some complicated natural language constructs (like plurals)require a bit more work, the simple case is very simple: replace<p>Hello <b>world</b></p>with<p>{{ _("Hello <b>world</b>") }}</p>This script helps with that process.Use---i18nize_templates <file> ...ORi18nize_templates [--handlebars] < <infile> > <outfile>
Package: i18nparse
i18nparseLocalization of the Python argparse moduleCurrent statusThe French language translation is provided from the beginning of the project.
A Brazilian Portuguese translation has been added in 0.8.0 version by anselmobd.The binary wheel file contains litte endian mo translation files. Users of big endian systems should use the source distribution to generate the mo files on their own system.GoalsThe argparse module makes it easy to write user-friendly command-line interfaces. Specifically, it automatically generates help and usage messages and issues errors when users give the program invalid arguments. Unfortunately, even if the module is able to usegettexttype localization strings, none is provided by the standard library.This module provides some translations (at least a French one) and will be simply installable throughpipInstallingEnd user installationWith pip:pip install i18nparse.Developper installationIf you want to contribute, you should get a copy of the full tree fromGitHUB:git clone https://github.com/s-ball/i18nparse.git [your_working_copy_folder]UsageThei18nparsemodule defines 2 functions:def activate(lang = None)which activates the usage of the translation for the required language.
By default, the language forlocale.getlocale()is used.
Note: In order to use the expected locale, it should be loaded prior to
the call toactivatewithlocale.setlocale(locale.LC_ALL, locale_name)wherelocale_nameis the name of a known locale or''(empty string) for
the default locale.def deactivate()which reverts to the original texts.Example:import argparse
import i18nparse
import locale

locale.setlocale(locale.LC_ALL, '') # sets a locale
i18nparse.activate()     # Ok use current locale (if translation file exists)

parser = argparse.ArgumentParser('foo')
parser.print_help()      # displays the help message for the current localeAssuming afr_FRlocale, this displays:usage : foo [-h]

arguments optionnels:
  -h, --help  affiche ce message et termine le programmeContributingContribution for new language translations or improvement of existing ones are welcome. SeeCONTRIBUTINGfor detailsVersioningThis project uses a standard Major.Minor.Patch versioning pattern. Inside a major version, public API stability is expected (at least after 1.0.0 version will be published).LicenseThis project is licensed under the MIT License - see theLICENSEfile for details
Package: i18npy
i18npyThis is Python implementation ofroddeh/i18njs(http://i18njs.com/).
It's fully compatible with it's  JSON dictionaries syntax.UsageInstallationpipinstalli18npySamplesWith external dictionary and global i18n instancepl.json{"values":{"Hello World":"Witaj świecie","I have %n cookies":[[null,null,"Nie ma rączek, nie ma ciasteczek"],[0,0,"Nie mam ciasteczek"],[1,1,"Mam jedno ciasteczko"],[2,4,"Mam %n ciasteczka"],[5,null,"Mam %n ciasteczek"]]}}codefromi18npyimporti18n,i18n_loadi18n_load("./pl.json")i18n("Hello World")# Witaj świecieKEY="I have %n cookies"i18n(KEY,None)# Nie ma rączek, nie ma ciasteczeki18n(KEY,0)# Nie mam ciasteczeki18n(KEY,1)# Mam jedno ciasteczkoi18n(KEY,3)# Mam 3 ciasteczkai18n(KEY,5)# Mam 5 ciasteczekCreate translator instancesimporti18npylang_pl=i18npy.create({"values":{"Hello World":"Witaj świecie","I have %n cookies":[[None,None,"Nie ma rączek, nie ma ciasteczek"],[0,0,"Nie mam ciasteczek"],[1,1,"Mam jedno ciasteczko"],[2,4,"Mam %n ciasteczka"],[5,None,"Mam %n ciasteczek"]]}})lang_pl.translate("Hello World")# Witaj świecielang_pl.translate("I have %n cookies",3)# Mam 3 ciasteczkaWord of appreciationThe original i18njs library ha been written byroddeh.
The library code is based on his code, which is also licensed by MIT.LicenseThis project is licensed under MIT License - see theLICENSEfile for details.
Package: i18nx
I18n for PythonLightweight i18n for Python.Installpipinstalli18nxUsagefromi18nximportI18ni18n=I18n(locale='en',fallback='fr',translations={'en':{'message':{'hello':'Hello World!'}},'fr':{'message':{'hello':'Bonjour le monde !'}},},)print(i18n.tr("message.hello"))# Hello World!Message Format SyntaxInterpolationi18nxuse the Mustache like placeholders{}syntax for interpolation.fromi18nximportI18ni18n=I18n(locale='en',fallback='fr',translations={'en':{'message':{'hello':'Hello{name}!'}},'fr':{'message':{'hello':'Bonjour{name}!'}},},)print(i18n.tr("message.hello",name='Mario'))# Hello Mario!PluralizationUse a pipe|separator in combination with the paramcountto define
plurals on the locale translations.fromi18nximportI18ni18n=I18n(locale='en',fallback='fr',translations={'en':{'car':'car | cars','apple':'no apples | one apple |{count}apples',},},)print(i18n.tr("car"))# 'car'print(i18n.tr("car",count=0))# 'car'print(i18n.tr("car",count=1))# 'car'print(i18n.tr("car",count=2))# 'cars'print(i18n.tr("apple",count=0))# 'no apples'print(i18n.tr("apple",count=1))# 'one apple'print(i18n.tr("apple",count=15))# '15 apples'List of Messagesfromi18nximportI18ni18n=I18n(locale='en',fallback_locale='fr',translations={'en':{"greetings":["Hey{firtname}!","Hi{firtname}!",],},},)print(i18n.tr("greetings.0",firtname='Mario'))# 'Hey Mario!'print(i18n.tr("greetings.1",firtname='Mario'))# 'Hi Mario!'I18n APIinterfaceclassI18n:constructor(locale:str,fallback_locale:str,translations:Dict[str,Dict[str,Any]],show_warning=False)# Active locale@propertylocale:str# Fallback locale@propertyfallback_locale:str# Available locales@getteravailable_locales:List[str]# Raw translations object for the active locale@getterraw:dict# Get translated text for the given dot path@methodtr(path: str, **params) ->str# Get the raw message for the given dot path@methodget_raw_message(path: str) ->Union[str,None]# Format the given raw message with the given params@methodformat_raw_message(message: str, **params) ->strDevelopment SetupInstall Nix Package ManagerInstalldirenvwith your OS package managerHook itdirenvinto your shellAt the top-level of your project run:direnvallowThe next time your launch your terminal and enter the top-level of your
project,direnvwill check for changes.Scripts# run testsmaketest# run tests with coveragemakecoverage# run lintermakelint# run build processmakedist# publishmakepublishLicenseUnder the MIT license.
SeeLICENSEfile for more details.
Package: i2
i2Core tools for minting code.Documentation here.What's mint?Mint stands for "Meta-INTerface".Minting is core technique of i2i: It can be seen as the encapsulation of a construct’s interface into a (data)
structure that contains everything one needs to know about the construct to perform a specific action
with or on the construct.A little note on the use of “encapsulation”. The term is widely used in computer science,
and is typically tied to object oriented programming. Wikipedia provides two definitions:A language mechanism for restricting direct access to some of the object's components.A language construct that facilitates the bundling of data with the methods (or other functions)
operating on that data.Though both these definitions apply to minting,
the original sense of the word “encapsulate” is even more relevant (from google definitions):express the essential features of (something) succinctlyenclose (something) in or as if in a capsuleIndeed, minting is the process of enclosing a construct into a “mint” (for “Meta INTerface”)
that will express the features of the construct that are essential to the task at hand.
The mint provides a declarative layer of the construct that allows one to write code that operates with this layer,
which is designed to be (as) consistent (as possible) from one system/language to another.For example, whether a (non-anonymous) function was written in C, Python, or JavaScript,
it will at least have a name, and it’s arguments will (most often) have names, and may have types.
Similarly with “data objects”: The data of both JavaScript and Python objects can be represented by a tree whose
leaves are base types, which can in turn be represented by a C struct.
Package: i21y
i21yi21y (a.k.a internationalization.py) is library for support i18n in Python. It is easy to use.Features:Zero dependencies by defaultSimple designTools to Simplify KeysInstallationNormal:pip install i21yYAML support:pip install i21y[yaml]Fast JSON (by orjson) support:pip install i21y[fast-json]ExampleBasicfromi21yimportTranslatorfromi21y.loaders.jsonimportLoadert=Translator(Loader("locale"))assertt("main.responses.not_found",locale="ja")=="見つからなかった。"Advancedfromi21yimportlocale_strLONG_KEY=locale_str("very.long.locale.key.yeah_so_long")print(LONG_KEY.but_easy_to_use)# very.long.locale.key.yeah_so_long.but_easy_to_useassertt(LONG_KEY.but_easy_to_use,locale="ja")=="とても長いキーでも簡単に使える。"DocumentationSee thedocumentationfor usage and details.Licensei21y is licensed under theMIT license.
Package: i2a
i2a creates ASCII art from images right on your terminal.InstallationStep 1: Install dependenciesOSX:$brewinstalllibtifflibjpegwebplittle-cms2Linux (Ubuntu):$sudoapt-getbuild-deppython-imaging$sudoapt-getinstalllibjpeg8libjpeg62-devlibfreetype6libfreetype6-devFor other operating systems, check out the instructionson this page.Step 2: Install i2aOption 1:Pip$pipinstalli2aOption 2: From source$gitclone--recursivehttp://github.com/mavidser/i2a.git$cdi2a/$pythonsetup.pyinstallUsageBasic usage$i2aimage.jpgColored output$i2a--colorsimage.jpgWrite the art to a file$i2aimage.jpg>ascii.txtIf the terminal has a light background$i2aimage.jpg--invertor$ i2a image.jpg --bg=BLACKOptionsA complete list of available options:--colors: Show colored output. i2a assumes that the terminal
supports 256 colors.--bold: Show bold characters. Makes the output is easier on eyes.--invert: Invert the colors. Suitable for a light background.--bg=(BLACK|WHITE): Specify your own background color.--height=<val>: Set the height in number of characters.--width=<val>: Set the width in number of characters.--contrast=<factor>: Manually set contrast (default value: 1.5,
for original image: 1.0).--alt-chars: Use an alternate set of (more detailed) characters.ContributingCreate an issue in theissue
trackerdescribing the
feature.Fork the project.Create a new branch -git checkout-bnew-featureCommit the changes and push to your branch -git push originnew-featureOpen apull request,
referencing the issue you created.LicenseSee theLICENSEfile.
Package: i2a-oauth2-api-client
#Installationpipinstalli2a-oauth2-api-client#Usagefromi2a_oauth2_api_client.clientimportI2AOauth2Clientfromi2a_oauth2_api_client.enumsimportEnvironmentclient=I2AOauth2Client(client_id='your client id',client_secret='your client secret',environment=Environment.QA# default)#EnumsfromenumimportEnumclassEnvironment(Enum):QA=1PROD=2
Package: i2b
IMAGE TOBASE64 STRINGConvert Image into base64 format.Supprted image format is:jpgpngjpegJPGJPEGTIFInstall PackageInstall package frompypi.orgpip install i2bUsagei2b -h
usage: i2b [-h] [-i IMG]

Convert Image into base64 format, supported format is jpg and png.

optional arguments:
  -h, --help         show this help message and exit
  -i IMG, --img IMG  Input image or image path to convert into base64
Package: i2c-adapter
A Simple USB to I2C Adapter that works.The I2C Adapter allows python programs to connect to I2C/QUIIC/STEMMA-QT devices using off the shelf low cost boards such the Raspberry Pico or SparkFun Pro Micro - RP2040. The I2C adapter appears on the computer as a serial port (no device installation required) and acts as a USB to I2C bridge, and this Python package  provides an easy to use API to interact with it using high level commands.For example, the schematic below shows the wiring for theoled_demo.pyexample which drive an I2C OLED display using an I2C Adapter and the luma.oled python package.HighlightsProvides USB to I2C-master bridge.Supports Windows/Mac/Linux.Uses low cost low cost off-the-shelf boards as adapters.Does not require driver installation (it appears on the computer as standard a serial port).Comes with an easy to use Python API.Easy to modify/extend and to adapt to new hardware.Permissive open source license. Comercial use OK, sharing and attribution not required.Python API ExamplePackage installationpipinstalli2c-adapter--upgradeIn the example below, we use an I2C Adapter that appears as serial port "COM7" to access an I2C device at address 0x08. First we write a single byte 0x00 and then read 20 bytes. Upon completion, the 'data' variable contains a bytearray with 20 bytes.fromi2c_adapterimportI2cAdapteri2c=I2cAdapter(port="COM7")i2c_addr=0x08asserti2c.write(i2c_addr,bytearray([0]))data=i2c.read(i2c_addr,20)print(data)In the example below we scan the I2C bus address range 0x00 to 0x7f and look for devices that response to an empty write.fromi2c_adapterimportI2cAdapteri2c=I2cAdapter(port="COM18")print(f"Scanning I2C bus 0x00 to 0x7f:")foradrinrange(0,127):ifi2c.write(adr,bytearray([0]),silent=True):print(f"  - Device at 0x{adr:02x}")DocumentationFull documentation is available athttps://i2c-adapter.readthedocs.io/
Package: i2c-for-esp32
i2c-for-esp32Extended Arduino Library for I2C Slave on ESP32This repository contains modifications to the original Arduino library found athttps://github.com/gutierrezps/ESP32_I2C_Slave.
The key enhancement enables the sending of longer packets.Packet Format
The expected packet format is detailed below:[0]: start byte (0x02)
[1]: number of packet length bytes (L)
[2:2+L]: packet length (N)
[2+L]: data[0]
[3+L]: data[1]
...
[N+1+L]: data[N-1]
[N+2+L]: CRC8 of packet length and data
[N+3+L]: end byte (0x04)Feel free to expand on this by adding any installation, usage instructions or any other relevant details as required.Python libraryWe provide a Python library for exchanging bytearrays received in Python.You can install it using the following command:pip install i2c-for-esp32For usage instructions, please refer to:https://github.com/iory/i2c-for-esp32/blob/master/examples/radxa_with_atom_echo/radxa_i2c_audio_publisher.pySampleRadxa with Atom EchoA sample that communicates with radxa and atom echo to retrieve audio data from a microphone can be found at:https://github.com/iory/i2c-for-esp32/tree/master/examples/radxa_with_atom_echo
Package: i2clcd
Python I2CLCD modulePython I2CLCD module for LCD1602/2002/2004 screen with I2C adapterCan be used on embedded devices like the Raspberry PiFeaturesImplemented most of the built-in instructions of LCD1602/2002/2004Support for custom charactersSupport backlight settingsSupport 'Cursor or Display Shift' instructionsHints for each methodQuick startimporti2clcdlcd=i2clcd.i2clcd(i2c_bus=1,i2c_addr=0x27,lcd_width=16)lcd.init()# fill a line by the textlcd.print_line('hello',line=0)lcd.print_line('world!',line=1,align='RIGHT')# print text at the current cursor positionlcd.move_cursor(1,0)lcd.print('the')# custom characterchar_celsius=(0x10,0x06,0x09,0x08,0x08,0x09,0x06,0x00)lcd.write_CGRAM(char_celsius,0)lcd.move_cursor(0,6)lcd.print(b'CGRAM: '+i2clcd.CGRAM_CHR[0])
Package: i2c_lcd
I2C LCDI2C LCD interface in Python made for RPi.Free software: GNU General Public License v3Documentation:https://i2c-lcd.readthedocs.io.FeaturesInterface with I2C-connected LCD screens, by means of the SMBus, most commonly with Raspberry Pi boards.Display text on the screen, given as a string or characters.CreditsThe code in this package is based almost entirely on code by DenisFromHR
(Denis Pleic), taken 2017-3-26 fromGitHub Gists.This package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2017-05-29)First release on PyPI.
Package: i2csense
Another library to handle sensors connected viaI2c bus(SDA, SCL pins) to theRaspberry Pi.This library implements the following i2c sensors:
-Bosch BME280 Environmental sensor (temperature, humidity and pressure)-HTU21D temperature and humidity sensor-BH1750FVI light level sensorInstallationThis library needs thei2c busto be enabled, and uses thesmbus-cffimodule to communicate with it, so, before installing withpip, make sure the bus is enabled, and the necessary dependencies
are available:Directions for installing smbus support on Raspberry Pi:Enable I2c interface with the Raspberry Pi config utility:# Enable i2c interfacesudoraspi-configSelectInterfacingoptions->I2Cchoose<Yes>and hitEnter,
then go toFinishand you’ll be prompted to reboot.Install dependencies for use thesmbus-cffimodule and reboot:sudoapt-getinstallbuild-essentiallibi2c-devi2c-toolspython-devlibffi-devsudorebootCheck the i2c address of the sensorsAfter installingi2c-tools, a new utility is available to scan the
addresses of the connected sensors:/usr/sbin/i2cdetect-y1It will output a table like this:0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- 23 -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: 40 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- 77So you can see three sensors are present at0x23 (BH1750),0x40
(HTU21D)and0x77 (BME280)addresses.Install with pipFinally, in your python environment,pipinstalli2csenseUsageThis library is intended to be used by other applications, where sensors
are instantiated with their configuration parameters, to be read at the
desired intervals. However, if you want to use as a simple logger via
command line, a simple CLI is also available to test the sensors.importsmbusfromi2csense.bme280importBME280bus=smbus.Bus(1)sensor=BME280(bus)delta_secs=5whileTrue:sensor.update()ifnotsensor.sample_ok:print("An error has occured")breakprint(sensor.current_state_str)sleep(delta_secs)CLI usageFind sensors:i2csense# or specify the i2c bus:i2csense-b0Test sensors:# Test BME280 sensor with default params:i2csense-sbme280# Test BME280 sensor with custom params every 10 secs:i2csense-d10--bus0--address0x77--sensorbme280--paramsosrs_t=4osrs_p=4osrs_h=4mode=2filter_mode=1Changelogv0.0.1: First release with 3 sensors:BME280, BH1750, HTU21D.v0.0.2: Minor fixes.v0.0.3: Minor fixes forBH1750, fixREADME.rst.TODO:Append more sensors.finish CLI interface with better help and more configuration options.Although the library only covers three sensors, it would be ideal to
continue completing it with more sensors or actuators running in the i2c
bus, so I encourage you to contribute with more sensors, or to copy,
change, edit, or suggest any changes.