Saravanan666/pypi-org huggingface dataset:
Package: in3
Python Incubed clientThis library is based on theC version of Incubed, which limits the compatibility for Cython, so please contribute by compiling it to your own platform and sending us a pull-request!Go to ourreadthedocspage for more.QuickstartInstall with pippipinstallin3In3 Client APIimportin3in3_client=in3.Client()# Sends a request to the Incubed Network, that in turn will collect proofs from the Ethereum client,# attest and sign the response, then send back to the client, that will verify signatures and proofs.block_number=in3_client.eth.block_number()print(block_number)# Mainnet's block numberin3_client# incubed network apiin3_client.eth# ethereum apiin3_client.eth.account# ethereum account apiin3_client.eth.contract# ethereum smart-contract apiDeveloping & TestsInstall dev dependencies, IDEs should automatically recognize interpreter if done like this.python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txtCompile local libraries and run tests. Make sure you have cmake installed../buidl_libs.sh
coveragerun-mpytest--pylama&&coveragereport&&coverage-badge-fodocs/coverage.svgIndexExplanation of this source code architecture and how it is organized. For more on design-patterns seehereor onMartin Fowler'sCatalog of Patterns of Enterprise Application Architecture.in3.init.py: Library entry point, imports organization. Standard for any pipy package.in3.client: Incubed Client and API.in3.model: MVC Model classes for the Incubed client module domain.in3.transport: HTTP Transport function and error handling.in3.wallet: WiP - Wallet API.in3.exception: Custom exceptions.in3.eth: Ethereum module.in3.eth.api: Ethereum API.in3.eth.account: Ethereum accounts.in3.eth.contract: Ethereum smart-contracts API.in3.eth.model: MVC Model classes for the Ethereum client module domain. Manages serialization.in3.eth.factory: Ethereum Object Factory. Manages deserialization.in3.libin3: Module for the libin3 runtime. Libin3 is written in C and can be foundhere.in3.libin3.shared: Native shared libraries for multiple operating systems and platforms.in3.libin3.enum: Enumerations mapping C definitions to python.in3.libin3.lib_loader: Bindings using Ctypes.in3.libin3.runtime: Runtime object, bridging the remote procedure calls to the libin3 instances.
Package: ina238
py-ina238Python driver for theTexas Instruments INA238 85-V, 16-Bit, High-Precision Power Monitor With I2C InterfaceInstallationLatest release:pipinstallpy-ina238From git clone:gitclonehttps://github.com/GSI-HPC/py-ina238cdpy-ina238
pipinstall-e.Licensepy-ina238is distributed under the terms of theGNU LGPLv3.
Package: ina260
INA260 DriverIntroductionThis Python package provides a platform agnostic driver for theTI INA260precision power monitor. Conveniently, the INA260 has a built-in sense resistor so it's very easy to integrate into your projects. It can sense from 0 to 36V and up to 15A(!) with 16-bit resolution. Thus, it's perfect for pretty much all hobbyist projects.The only dependency for this library issmbus2so provided your I2C device is addressable by that, this library should work (for example on a Raspberry Pi or other dev board).Examplesfromina260.controllerimportControllerc=Controller(address=0x40)print(c.voltage())print(c.current())print(c.power()))see the example script in the repository. Note that the power measurement is usually not the same as voltage times current unless you read all three registers instantaneously.Obviously check what address you've set the chip to (there is a table in the datasheet).Hardware notesThe chip itself is very easy to hook up (although it comes in a VSSOP package which can be challenging to solder if you've not had much experience with SMD soldering).Be sure to follow TI's guidelines in the datasheet about proper power planes and PCB layout. The package is designed so that your power rail goes in one side and out the other. Otherwise the chip is very easy to integrate and minimally just needs a standard 0.1uF bypass capacitor.Test suiteThis package has a comprehensive test suite which you can use to check that commands are being recieved and interpreted properly. You needpytest. Run with:python -m pytest testCoverage is 99% because there should also be a check for reverse current which is obviously difficult to do simultaneously with forward current.
Package: inab
When reading a file containing bytes using Python, you are often looking to read it like this b"\xd8\xa7\xd9\x84\xd8\xa8\xd9\x84\xd9\x8a\xd8\xba,
for example
o = open("bytes.txt", "rb")
y = x.read()
In fact, the exit is like this b"\\xd8\\xa7\\xd9\\x84\\xd8\\xa8\\xd9\\x84\\xd9\\x8a\\xd8\\xba, and when you try to decode it, you will get this back \xd8\xa7\xd9\x84\xd8\xa8\xd9\x84\xd9\x8a\xd8\xba, but it is a literal type, and whenever you code it, it will give you two slashback, and when you decode it, it takes you back to \xd8\xa7\xd9\x84\xd8\xa8\xd9\x84\xd9\x8a\xd8\xba.
This problem I encountered when I was scraping a website and recving the data in bytes in a string type that included HTML. and it will face you in the future or you may have encountered before,
I recently built a library to solve this problem where it is enough to pass it a byte with two slashback and it will decode it to the original text.decode arabic utf-8from inab import arabic_de
str_bytes = "\\xd8\\xa7\\xd9\\x84\\xd8\\xa8\\xd9\\x84\\xd9\\x8a\\xd8\\xba"
x = bytes(str_bytes, "utf-8")
print(x)
text = arabic_de(x)
print(text)decode english utf-16from inab import eng_de
str_bytes = "\\xff\\xfei\\x00n\\x00a\\x00b\\x00 \\x00l\\x00i\\x00b\\x00"
text = eng_de(str_bytes)
print(text)
Package: inageoportal
Inageoportal PackageA helper pip package for InageoportalAssumptions:Assuming python is installed on your system.Installation sets up commandSituation before installation::$ inageoportal
bash: inageoportal: command not foundInstallation right from the source tree (or via pip from PyPI)::$ python setup.py install

$ pip install inageoportalNow, theinageoportalcommand is available::$ inageoportal
Welcome to Inageoportal!
Package: inapp-purchases
# inapp-purchasesManage in-app purchases for Apple AppStore and Google Play[![PyPI version](https://badge.fury.io/py/inapp-purchases.svg)](https://badge.fury.io/py/inapp-purchases)[![Code Health](https://landscape.io/github/adanmauri/inapp-purchases/master/landscape.svg?style=flat)](https://landscape.io/github/adanmauri/inapp-purchases/master)## Installation```shellpip install inapp-purchases```## UsageCurrently inapp-purchases supports Google Play and App Store subscription services. But, product purchases is available retrieving raw data.### Google Play:```pythonfrom inapp_purchases.google_play import GooglePlayServiceservice = GooglePlayService(service_account_file='service-info.json',# or service_account_info='service-info.json'package_name='com.package.name')purchase = service.get_subscription_purchase(subscription_id='com.subscription.id',token='purchase-token')```### AppStore:```pythonfrom inapp_purchases.app_store import AppStoreServiceservice = AppStoreService(sandbox=True,password='secret-password')purchase = service.get_subscription_purchase(receipt_data='receive-hash')```## Response```python{'bundle_id': unicode,'subscription_id': unicode,'purchase_id': unicode,'original_purchase_id': unicode,'purchase_date_ms': int,'original_purchase_date_ms': int,'auto_renewing': bool,'expires_date_ms': int,'country_code': unicode,'price_currency_code': unicode,'price_amount': float,'cancellation_date_ms': int,'cancellation_reason': unicode,,'payment_state': int,'status': unicode,'is_active': bool,'is_trial_period': bool,'expiration_intent': unicode,}```## TODO- Exceptions- Google Play products data response (the raw content is returned)- AppStore products data response (the raw content is returned)- Get list of products from AppStore- Tests- Retrieve more information from the services- Documentation- Examples
Package: inappropriate-notifications
Ever want to get inappropriate notifications on your computer while
you’re presenting? Well now you can!Based off the homepage ofhttps://muzzleapp.com/. Check out their
website to see an example of what this does.This program uses notifications fromhttps://muzzleapp.com/notifications/notifications.json, as well as those
we came up with ourself.User names and images downloaded fromhttps://randomuser.me.RequirementsLinuxpython3.6+ libnotifyWindowspython3.6+ win10toast (installed automatically)Installationpip installinappropriate-notificationsAlternative installationgit clonehttps://github.com/riley-martine/inappropriate-notifications.gitcdinappropriate-notificationspython3.6 setup.py installUsageDisplay help:inappropriate-notifications-hDisplay one inappropriate notification:inappropriate-notifications--onceDisplay notifications about 2 seconds apart:inappropriate-notifications-t2Display 20 notifications about 5 seconds apart:inappropriate-notifications-c20-t5Caveats (To fix / to-do)Only tested on Debian+Gnome and (at some point) Windows 10 (MacOS and Windows 7 on roadmap)Relies on libnotify on LinuxIcons are for Mac apps when on windowsNo fields on notifications (reply, dismiss) where applicableDoes not pull names/images from people you know when applicableOnly suited to work env – students don’t need messages about getting
firedNo testsNo version command line argumentctrl-c when running command line should fail nicerRight-to-left names mess up first line
Package: inari
inariWrite docstrings in Markdown!FeaturesMinimum configuration.No dependencies by default(butMkDocsis recommended!).CLI and MkDocs Plugin.Cross reference in API documents.Installpipinstallinari[mkdocs]Example# sample.py"""This is a sample module."""variable=42"""(`int`):  Docstrings for module-level variables."""deffunc(foo:str,bar:int)->str:"""Docstrings for functions.**Args*** foo (`str`): First argument.* bar (`int`): Second argument.**Returns*** `str`: Type of return value."""returnfoo*barclassSampleClass:"""Class docstrings.**Attributes*** baz (`str`): Docstrings for attributes."""baz:strdef__init__(self,b:str):"""**Args*** b (`str`): Arguments for initializing."""self.baz=bdefmethod(self,bar:int)->str:"""Method docstrings.Cross reference available. `sample.func`**Args*** bar(`int`)**Returns*** `str`"""returnfunc(self.baz,bar)inarisampledocsinarimakes this Markdown file:<!-- docs/sample-py.md --># Module sampleThis is a sample module.## Variables-**variable**{:#variable} (`int`): Docstrings for module-level variables.## Classes### SampleClass {: #SampleClass }```pythonclassSampleClass(self,b:str)```Class docstrings.**Attributes**-**baz**(`str`): Docstrings for attributes.**Args**-**b**(`str`): Arguments for initializing.

---#### Methods {: #SampleClass-methods }[**method**](#SampleClass.method){:#SampleClass.method }```pythondefmethod(self,bar:int)->str```Method docstrings.

Cross reference available. [`func `](#func)**Args**-**bar**(`int`)**Returns**-`str`## Functions### func {: #func }```pythondeffunc(foo:str,bar:int)->str```Docstrings for functions.**Args**-**foo**(`str`): First argument.-**bar**(`int`): Second argument.**Returns**-`str`: Type of return value.LicenseMIT
Package: inarpa
The module exposes thecreatefunction which takes a ipv4-address and optionally a suffix.Example>>> import inarpa

>>> inarpa.create('192.168.0.1')
'1.0.168.192.in-addr.arpa'
>>> inarpa.create('192.168.0.1', 'ix.dnsbl.manitu.net')
'1.0.168.192.ix.dnsbl.manitu.net'InstallationInstall inarpa withpip install inarpaor justdownload inarpa.pyand place it in your project directory.LicenseBSD
Package: ina-segmenter-modified
ina-segmenter-modifiedCredit To:https://github.com/ina-foss/inaSpeechSegmenterImportant ModificationWe added numerical outputs for probabilities of each genderModified Usage:seg=Segmenter()data=seg(file_path)df=pandas.DataFrame(data,columns=['Prediction','Start','End','Confidence'])print(df)Output Format:list[ResultFrame(prediction, start_time_seconds, end_time_seconds, confidence or probability)]
Package: inaSpeechSegmenter
Split audio signal into homogeneous zones of speech, music and noise. Then detects speaker gender.inaSpeechSegmenter has been presented at the IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP) 2018 conference in Calgary, Canada. If you use this toolbox in your research, you can cite the following work in your publications :@inproceedings{ddoukhanicassp2018,author={Doukhan, David and Carrive, Jean and Vallet, Félicien and Larcher, Anthony and Meignier, Sylvain},title={An Open-Source Speaker Gender Detection Framework for Monitoring Gender Equality},year={2018},organization={IEEE},booktitle={Acoustics Speech and Signal Processing (ICASSP), 2018 IEEE International Conference on}}inaSpeechSegmenter won MIREX 2018 speech detection challenge.http://www.music-ir.org/mirex/wiki/2018:Music_and_or_Speech_Detection_ResultsDetails on the speech detection submodule can be found bellow:@inproceedings{ddoukhanmirex2018,author={Doukhan, David and Lechapt, Eliott and Evrard, Marc and Carrive, Jean},title={INA’S MIREX 2018 MUSIC AND SPEECH DETECTION SYSTEM},year={2018},booktitle={Music Information Retrieval Evaluation eXchange (MIREX 2018)}}
Package: inat2wiki
[Repository in construction - sorry for the mess!]https://api.inaturalist.org/v1/docs/"The iNaturalist technology infrastructure and open source software is administered by the California Academy of Sciences as part of their mission to explore, explain, and sustain life on Earth."Code for commons import adapted from:https://github.com/kaldari/iNaturalist2Commons/blob/main/inat2commons.jsBasic usageTo add an observation via its iNaturalist id:chmod+xparse_observation_in_cli
./parse_observation_in_cliobservationidhereThen, just click the link to upload the image to commons.To get personalized curation queriespython3list_user_observations.pyAnd then type in your username of interest and langcode for Wikipedia query.Cheers!
Package: inators
inatorsis a collection of useful utilities mostly used by the…inatorproject family, whence its name.RequirementsPython>= 3.5InstallTo useinatorsin another project, it can be added tosetup.cfgas an
install requirement (if usingsetuptoolswith declarative config):[options]install_requires=inatorsTo installinatorsmanually, e.g., into a virtual environment, usepip:pip install inatorsThe above approaches install the latest release ofinatorsfromPyPI.
Alternatively, for the development version, clone the project and perform a
local install:pip install .Copyright and LicensingLicensed under the BSD 3-ClauseLicense.
Package: inattrails
iNaturalist observations along hiking trailsThis utility reads the route of a hike and generates a table of iNaturalist
observations along the way. It also displays the observations and the route of
the hike on a map. It stores waypoints of the iNaturalist observations for
offline navigation with a GPS device or smartphone.DocumentationOur documentation is atinat-trails.readthedocs.org.UtilitiesInstallationAPI TutorialAPI Reference
Package: inaturalist
iNaturalist Photo ScraperRequirements🐍python>=3.7⬇️ Installationpipinstallinaturalist⌨️ Usageusage: inat [-h] -t TAXON_ID [-o OUTPUT_DIR] [-p RESUME_FROM_PAGE]
            [-P STOP_AT_PAGE] [-u RESUME_FROM_UUID_INDEX] [--upload-to-s3]
            [-O] [-r RESULTS_PER_PAGE] [-s START_YEAR] [-e END_YEAR] [-Y]
            [--check-multiple-buckets CHECK_MULTIPLE_BUCKETS] [-g]

options:
  -h, --help            show this help message and exit
  -t TAXON_ID, --taxon-id TAXON_ID
                        Taxon id
  -o OUTPUT_DIR, --output-dir OUTPUT_DIR
                        Output directory
  -p RESUME_FROM_PAGE, --resume-from-page RESUME_FROM_PAGE
                        Page to resume from
  -P STOP_AT_PAGE, --stop-at-page STOP_AT_PAGE
                        Page to stop at
  -u RESUME_FROM_UUID_INDEX, --resume-from-uuid-index RESUME_FROM_UUID_INDEX
                        UUID index to resume from
  --upload-to-s3        Upload to a S3-compatible bucket
  -O, --one-page-only   Terminate after completing a single page
  -r RESULTS_PER_PAGE, --results-per-page RESULTS_PER_PAGE
                        Number of results per page
  -s START_YEAR, --start-year START_YEAR
                        Year to start from (only relevant when number of
                        observations > 10,000)
  -e END_YEAR, --end-year END_YEAR
                        Year to stop at (only relevant when number of
                        observations > 10,000)
  -Y, --one-year-only   Terminate after completing a single year
  --check-multiple-buckets CHECK_MULTIPLE_BUCKETS
                        Check multiple buckets for existing files
  -g, --github-actions-strategy
                        Get optimal github actions strategy for the pages and
                        years per workflow run
Package: inaturalist-to-sqlite
inaturalist-to-sqliteCreate a SQLite database containing your observation history fromiNaturalist.How to install$ pip install inaturalist-to-sqliteUsage$ inaturalist-to-sqlite inaturalist.db yourusername(Or trysimonwif you don't yet have an iNaturalist account)This will import all of your iNaturalist observations into a SQLite database calledinaturalist.db.
Package: inauconf
InauconfInauconf is the script to hidden real Text
Ce projet est une application Python qui effectue diverses opérations. Il est écrit en utilisant le langage de programmation Python.InstallationUse the package managerpipto install foobar.pipinstallinauconf==1.2.3FonctionnalitésCryptage et décryptage: L'application permet de crypter et de décrypter des chaînes de caractères ou des fichiers en utilisant un algorithme personnalisé.Manipulation de fichiers: Vous pouvez également utiliser l'application pour chiffrer ou déchiffrer des fichiers.Hashage de fichiers: L'application calcule également la valeur de hachage SHA-256 d'un fichier.Comment utiliser l'applicationVoici comment utiliser l'application :Assurez-vous d'avoir Python installé sur votre système.Clonez ce dépôt Git :git clone https://github.com/ndjieudja/inauconf.gitAccédez au répertoire du projet :cd mon-projet-pythonInstallez les dépendances :pip install -r requirements.txtExécutez l'application :frominauconf.cryptimportEncryptAll# crypt functionEncryptAll.encrypt('inauconf')# output: ˫105ɒ110/97Ƞ117W99Ǻ111Ʀ110˯102 .... sample# uncrypt functionEncryptAll.decrypt('Ŷ105ǝ110a97ʙ11799à111̶110ƻ102')# output: inauconf# crypt & bloc fileEncryptAll.crypt_file('inauconf.txt')Suivez les instructions à l'écran pour utiliser les différentes fonctionnalités de l'application.Note importante: Lorsque vous utilisez la fonctionnalité de chiffrement ou de déchiffrement de fichiers, assurez-vous que le fichier source et le fichier chiffré/déchiffré portent le même nom, à l'exception de l'extension de fichier. Par exemple, si vous avez un fichiermon_fichier.txtque vous souhaitez chiffrer, le fichier chiffré seramon_fichier.inc. Veillez à ne pas séparer les deux fichiers pour garantir le bon fonctionnement de l'application.ContributionLes contributions à ce projet sont les bienvenues ! Si vous souhaitez apporter des modifications ou ajouter de nouvelles fonctionnalités, n'hésitez pas à ouvrir une demande de pull.
Pull requests are welcome. For major changes, please open anissuefirst
to discuss what you would like to change.Please make sure to update tests as appropriate.AuteursGabriel Ndjieu djagabrielndjieudja@gmail.comLicenseCe projet est sous licence MIT. Veuillez consulter le fichier LICENSE pour plus de détails.
Package: inbac
inbacDescriptioninbac is aninteractivebatchcropper made for quick cropping of images.I made this program because cropping thousands of images with image viewers or image manipulation programs was too slow.InstallationThe easiest way to use this application is to download the single file executable created with PyInstaller, which can be found on the releases page.If you have python installed you can install with pip by typing:pip install inbacIf you want to use the current master branch you can clone the repository and run the project using poetry.Development RequirementspoetrytkinterAfter installing above dependencies runpoetry installin project directory to install remaining dependencies.Examplespoetry run inbac /home/user/pictures/Opens images in /home/user/pictures/ and saves cropped images to /home/user/pictures/cropspoetry run inbac -a 1 1 -r 256 256 /home/user/pictures/ /home/user/crops/Opens images in /home/user/pictures/ in 1:1 ratio selection mode and saves images resized to 256x256px in /home/user/crops/Usageusage: inbac [-h] [-a ASPECT_RATIO ASPECT_RATIO] [-r RESIZE RESIZE]
             [-s SELECTION_BOX_COLOR] [-w WINDOW_SIZE WINDOW_SIZE]
             [-f IMAGE_FORMAT] [-q IMAGE_QUALITY]
             [input_dir] [output_dir]

inbac - interactive batch cropper

Left Mouse Button                 - select part of image

Z                                 - save selection and go to the next picture

X                                 - save selection and stay on the same picture

Hold Left Shift or Left Ctrl      - drag selection

Right Arrow or Right Mouse Button - go to next picture

Left Arrow or Middle Mouse Button - go to previous picture

positional arguments:
  input_dir             input directory (defaults to current working
                        directory)
  output_dir            output directory (defaults to folder crops in input
                        directory)

optional arguments:
  -h, --help            show this help message and exit
  -a ASPECT_RATIO ASPECT_RATIO, --aspect_ratio ASPECT_RATIO ASPECT_RATIO
                        selection should have specified aspect ratio
  -r RESIZE RESIZE, --resize RESIZE RESIZE
                        cropped image will be resized to specified width and
                        height
  -s SELECTION_BOX_COLOR, --selection_box_color SELECTION_BOX_COLOR
                        color of the selection box (default is black)
  -w WINDOW_SIZE WINDOW_SIZE, --window_size WINDOW_SIZE WINDOW_SIZE
                        initial window size (default is 800x600)
  -f IMAGE_FORMAT, --image_format IMAGE_FORMAT
                        define the croped image format
  -q IMAGE_QUALITY, --image_quality IMAGE_QUALITY
                        define the croped image quality
Package: inbloom
https://github.com/EverythingMe/inbloom/tree/master/pyhttps://pypi.python.org/pypi/inbloom/Package inbloom implements a portable bloom filter that can export and
import data to and from implementations of the same library in different
languages.This implementation is a C extension which wraps libbloom
(https://github.com/jvirkki/libbloom)InstallationpipinstallinbloomUsageimportinbloombf=inbloom.Filter(entries=100,error=0.01)bf.add("abc")bf.add("def")assertbf.contains("abc")assertbf.contains("def")assertnotbf.contains("ghi")bf2=inbloom.Filter(entries=100,error=0.01,data=bf.buffer())assertbf2.contains("abc")assertbf2.contains("def")assertnotbf2.contains("ghi")Serializationimportinbloomimportbinasciipayload='620d006400000014000000000020001000080000000000002000100008000400'assertbinascii.hexlify(inbloom.dump(inbloom.load(binascii.unhexlify(payload))))==payload