Saravanan666/pypi-org huggingface dataset:
Package: tinyble
IntroductionTinyble is a super lightweight database inheritingTinyDB. It is a document-oriented NoSQL but can also be used as a SQL database. It is most suitable for small applications where MongoDB is too way overkill.
The features are:Written in pure Python and works well with most Python versionsVery small, stored in JSON format and requires no external serverDifferent from TinyDB, flexible auto-paging is provided to enable fast write-in and read-outCombine in-memory caching with disk storage to trade-off speed and reliabilityDifference from TinyDBTinyDB stores each table in a single JSON file. For every IO operation, the JSON file will be wholly read and rewritten. As the file size gets larger or when there are many write-in operations, the speed can be dramatically slow.Tinyble uses a separate thread to manage all the write/update operations. Specifically, all newly-updated data will first be stored in memory and an internal timer expires, they will be batch-written in the JSON file.This reduces the number of IO operations. Moreover, a limit on the JSON file size is imposed when the size exceeds the limit, a new JSON file is created. This limits the volume of each read operation.The internal timer and the file size can be set by users.VersionThe latest version is v0.1.4. The current version is still on experimental status. Please use it with caution. Please contact me if you find any bugs/problems.v0.1.4(07.03.2015)added the close() functionadded the projection (partial search) functionadded the rst filev0.1.3(04.03.2015)fixed the print bugfixed the ‘get’ method bugHow to installThe easiest way to install is to use(sudo) pip install tinyblein the command line tool.Working with DjangoA very simple and ugly example showing the use of Tinyble with Django can be found inTinyble with DjangoExampleCreate a new database and a new collectiondb = Tinyble('data')
collection = db.collection('example')Insert some datacol = db.collection('example')

col.insert({'type': 'apple', 'number': 1})
col.insert({'type': 'pineapple', 'number': 2})
col.insert({'type': 'blueberry', 'number': 3})Update some datacol.update({'number':10}, cond= where('type')=='pineapple')Delete some datacol.remove(eids=[3])
col.remove(cond=where('number')<4)Other usages are very similar to TinyDB.Set the parameterscol.setting(file_size=100, query_cache_size=10, write_freq=5)The above setting means each JSON file is limited to 100 entries and the database will store the latest 10 query results in memory and write-to-disk frequency is 5s.Select some datacol.search(where('number')>2)Select part of data in a documentcol.search(where('type')!= 'pineapple', ['number'])This will only show the ‘number’ key, not the whole dictionary.
Package: tinyblock
InstallationInstall and update usingpip:$pipinstalltinyblockBlockdict({'previous_hash'(str):'...','timestamp'(int):'...','data'(any):'...','nonce'(int):'...','next_hash'(str):'...'})UsageDefine a simple blockchain:fromtinyblockimporttinyblock#The initial variable should be a list of blocks. If not set it, the default chain would be an empty list.my_blockchain=tinyblock()Add a block to the chain:#The parameter is the data of this blockmy_blockchain.add('This is a block.')Find a block with statement:#Find the blocks with features below. The return elements will content the index in origin chain list.#Completely match: previous_hash, nonce, next_hash.#Partly match: data. (Currently support str, int, float, list, dict, bool and tuple)#Range match: timestamp.(Could be an int, list or tuple)my_blockchain.find(previous_hash='',timestamp='',data='',nonce='',next_hash='')Pop the last block of the chain:my_blockchain.pop()Check wether the blockchain is anything correct:my_blockchain.chainCheck(print_option=True)Fix the blockchain(with start and stop index):my_blockchain.chainFix(start=0,stop=4)Get the block list:my_blockchain.getChain()Customise the rule for mining new block:#The default rule is hash start with '0000'.#To change the rule, you can override the mineRule function.defnewRule(hash):ifhash[0:5]=='0'*5:returnTruereturnFalsemy_blockchain.mineRule=newRule
Package: tiny-blocks
tiny-blocksTiny Blocks to build large and complex ETL data pipelines!Tiny-Blocks is a library fordata engineeringoperations.
Eachpipelineis made out oftiny-blocksglued with the>>operator.
This library relies on a fundamental streaming abstraction consisting of three
parts:extract,transform, andload. You can view a pipeline
as an extraction, followed by zero or more transformations, followed by a sink.
Visually, this looks like:extract -> transform1 -> transform2 -> ... -> transformN -> loadYou can alsofan-in,fan-outfor more complex operations.extract1 -> transform1 -> |-> transform2 -> ... -> | -> transformN -> load1
extract2 ---------------> |                        | -> load2Tiny-Blocks usegeneratorsto stream data. Eachchunkis aPandas DataFrame.
Thechunksizeor buffer size is adjustable per pipeline.InstallationInstall it usingpippipinstalltiny-blocksBasic usagefromtiny_blocks.extractimportFromCSVfromtiny_blocks.transformimportFillnafromtiny_blocks.loadimportToSQL# ETL Blocksfrom_csv=FromCSV(path='/path/to/source.csv')fill_na=Fillna(value="Hola Mundo")to_sql=ToSQL(dsn_conn='psycopg2+postgres://...',table_name="sink")# Pipelinefrom_csv>>fill_na>>to_sqlExamplesFor more complex examples please visit
thenotebooks' folder.DocumentationPlease visit thislinkfor documentation.
Package: tinyblog
tinyblog is a Django app for single-author blogging. It has three key
features:Delayed publication:Set a date and time when you want your
blog entry to be published.Email lists:Allow users to subscribe to email updates,
tinyblog will handle confirmation of email addresses, and will
always include unsubscribe links in any emails it sends.Syndication:tinyblog allows you to have the same content on
multiple sites, by exposing a JSON feed of posts, and allowing you
to import from that JSON feed from other sites.tinyblog is documented onhttps://tinyblog.readthedocs.org/.
Package: tinycache
Tiny CacheWhat is TinyCache?tinycache is a python modules base on local file for any python data structProgramming Languagepython 2.7python 3.7Installpip install tinycacheQuick Startuse python decorators syntax to wrap the call targetfrom tinycache import WithCache

@WithCache(5)
def Add(a, b):
    return a + b

class Foo():
    @WithCache(5)
    def Bar(self, a, b):
        return a - bCache File Formatcache file is json format, with filename look like './cache/<md5_of_key_str>'{
    "created_at": 1581652043.872242,
    "expired_at": 1581652048.872242,
    "key_str": "Add(&<class 'int'>=1&<class 'int'>=2)",
    "key": "9d0aa1c9634aa575696710c7dfb9f018",
    "value": 3
}
Package: tinycalltrace
OverviewTrace function call , and generate call tree graph which is sutable for
using vim.Using this module, understanding large python module is more easier.Instalationpip install tinycalltracerUsageSimply add following code in the file defined ‘main’,from tinycalltrace import TinyCallTrace

if __name__ == '__main__':
         TinyCallTrace()And run your scripts, call tree graphs generate in trace-0xXXXXXXX.txt
file in your current directory. Thease files are call tree graph of each
threads.This call tree graphs are sutable for examination using vim fold mode.
You can open thease file with vim, and simply type:set foldmethod=markerthen you can see folded call tree graph. It is so helpful to understand
call graph, easy to search specified function call/caller.And also with vim ‘goto file command’ on a line of call tree graph, you
can easily examin source code of call/caller.Enjoy!
Package: tinycardl
TinycardlTinycards downloaderTinycardl downloads decks, deck groups and your pinned in CSV, along with the pictures.🚧 This is a work in progress which will never be finished, but I hope it will be useful for some of you.UsageInstallation:python3.8 -m pip install --user tinycardlBasic usage, downloading decks or deck groups:tinycardl 3AbdmJDP NZHWAfTo download you pinned decks, you need you JWT token.
Once logged in Tinycard with your Duolingo account, look for the cookiejwt_tokenin the Development Tools of your browser (press F12).For Chrome it’s underApplication > Cookies >https://tinycards.duolingo.com> jwt_token > ValueFor Firefox it’s underStorage > Cookies >https://tinycards.duolingo.com> jwt_token > ValueJWT_TOKEN=myVery.l0ng.t0k3n tinycardl
Package: tinycc
TinyCC (or tcc) is a small, fast C compiler capable of compiling python
extensions that can be loaded as python modules or producing DLLs that
can be loaded via ctypes.  This version includes compilers for 32-bit and
64-bit Windows.  MacOS and Linux are not supported in this release.Compiler version: 0.9.26 2013-02-16Installation of the compiler and the python interface is simply:pip install tinyccFull documentation for the compiler is available athttp://bellard.org/tcc.
Source and binaries are available fromhttps://savannah.nongnu.org/projects/tinycc/.
The tinycc python package is hosted athttps://github.com/SasView/tinycc.TCCis the full path to the tcc.exe executable. Note that the executable
path may contain spaces so it must be wrapped in quotes when used as part
of an os.system command.TCC_VERSIONis the compiler version.Python extensionAdding tinycc as a compiler option to setup.py:import tinycc.distutilsWhen this is done, then you can build your project with:python setup.py build --compiler=tinyccNote that tinycc does not support C++ so it cannot be used a replacement
for MS Visual C++ for Python or mingw as generic compiler for python
installs.Also note that the compiler does not fully support C99, and some constructs
which compile (e. g., returning a structure from a function call) may not
work in properly.  Be sure to test thoroughly before setting tinycc as a
recommended compiler for your python package.Shared libraryBuilding a DLL:from tinycc import compile
dll_path = compile("hello.c")This creates “hello.dll” in the same directory as “hello.c”, raising
RuntimeError if the compile fails.  The exception contains the compiler
output.  Usecompile(source, target)to control the path to the dll.For more flexibility, you can call the compiler directly:import os
import subprocess
from tinycc import TCC

source, target = "hello.c", "hello.dll"
command = [TCC, "-shared", "-rdynamic", "-Wall", source, "-o", target]
try:
    # need shell=True on windows to keep console box from popping up
    subprocess.check_output(command, shell=True, stderr=subprocess.STDOUT)
except subprocess.CalledProcessError as exc:
    raise RuntimeError("compile failed.\n%s\n%s"%(command_str, exc.output))
if not os.path.exists(target):
    raise RuntimeError("compile failed.  File is in %r"%source)Usedata_filesto gather the data files required for bundling tinycc
in a py2exe package.  This places the compiler in the tinycc-data directory
beside the library.zip generated by py2exe.  The following should appear in
the setup.py for the py2exe build:import tinycc

data_files = []
...
data_files.extend(tinycc.data_files())
...
setup(
    ...
    data_files = data_files,
    ...
    )Note: if you have put tcc.exe somewhere unusual (i.e., not in the tinycc
package and not in tinycc-data next to the py2exe generated library or exe),
then you can set the environment variable TCC_ROOT to the directory
containing tcc.exe.Release Notes2017-11-20 R 1.1support distutils build of python packages2016-05-31 R 1.0.2support build of DLLs for windows 32 and windows 64
Package: tinycert
A wrapper library around TinyCert’s v1 rest api.API details (including your API key) can be found athttps://www.tinycert.org/docs/apiPreferred method of use is via the provided ContextManager.fromtinycertimportauto_sessionwithauto_session(api_key,account,passphrase)assession:ca_list=session.ca.list()cert_list=session.cert.list(ca_list[0]['id'])Or, connect and disconnect manually.fromtinycertimportSessionsession=Session(api_key)session.connect(account,passphrase)ca_list=session.ca.list()cert_list=session.cert.list(ca_list[0]['id'])session.disconnect()LinksTinyCertHome
Package: tiny-changelog
Yet another approach to generate simple and slim CHANGELOG file.Installpipinstalltiny-changelogUsageusage:tiny-changelog[-h][-tTOKEN]-pPROJECT[-sSTART_DATE][-oOUTPUT][--with-unreleased]GenerateCHANGELOGfile.optionalarguments:-h,--helpshowthishelpmessageandexit-tTOKEN,--tokenTOKENGithubtoken-pPROJECT,--projectPROJECTGithubproject(<owner>/<repo>)-sSTART_DATE,--start-dateSTART_DATEListentriesstartingasearlyasYYYY-MM-DD-oOUTPUT,--outputOUTPUTOutputfile,defaultstoCHANGELOG.md--with-unreleasedIncludeunreleasedmergedpullrequests
Package: tinycio
Project site & docsPyPiAboutA primitive, lightweight Python color library for PyTorch-involved projects. It implements color space conversion, tone mapping, LUT usage and creation, basic color correction and color balancing, and HDR-LDR encoding/decoding.Getting startedRecommended: set up a clean Python environmentInstall PyTorch  as instructed hereRunpip install tinycioRuntcio-setup(installs freeimage binaries;iio docs on fi)See the docsfor the rest.RequiresPython >=3.8PyTorch >=2.0 (earlier versions untested)NumPy >=1.21imageio >=2.9 (with PNG-FI FreeImage plugin)tqdm >=4.64toml >=0.10
Package: tinycircuits-a1454
TinyCircuits Wireling Analog Hall Effect Sensor Python AST1006This repository holds a python package and example meant for using a TinyCircuitsAnalog Hall Effect Sensor Wirelingwith a Raspberry Pi and Wireling Pi Hat.To install the package, use:pip3 install tinycircuits-a1454or if your default is Python 3:pip install tinycircuits-a1454Software written by:TinyCircuitsfor use with TinyCircuits hardware
Package: tinycircuits-attiny25
TinyCircuits ATtiny25 PythonThis repository holds a python package and examples meant for using the TinyCircuitsSoil Moisture Wirelingwith a Raspberry Pi and Wireling Pi Hat.To install the package, use:pip3 install tinycircuits-attiny25or if your default is Python 3:pip install tinycircuits-attiny25Software written by:TinyCircuitsfor use with TinyCircuits hardware
Package: tinycircuits-bma250
TinyCircuits Wireling Acceleromter Python AST1001This repository holds a python example meant for using a TinyCircuitsAccelerometer Sensor Wirelingwith a Raspberry Pi and Wireling Pi Hat.To install, usepip3 install tinycircuits-bma250or if your default is Python 3:pip install tinycircuits-bma250Software written by:TinyCircuitsfor use with TinyCircuits hardware
Package: tinycircuits-sx1505
TinyCircuits SX1505 PythonThis repository holds a python package and examples meant for using the TinyCircuitsJoystick WirelingandRotary Wirelingwith a Raspberry Pi and Wireling Pi Hat.To install the package, use:pip3 install tinycircuits-sx1505or if your default is Python 3:pip install tinycircuits-sx1505Software written by:TinyCircuitsfor use with TinyCircuits hardware
Package: tinycircuits-tsl2572
TinyCircuits Wireling Light Sensor Python AST1012This repository holds a python example meant for using a TinyCircuits Ambient Light Sensor Wireling with a Raspberry Pi and Wireling Pi Hat.To install, usepip3 tinycircuits-tsl2572or if your default is Python 3:pip install tinycircuits-tsl2572Software written by:TinyCircuitsfor use with TinyCircuits hardware
Package: tinycircuits-wireling-light-sensor
TinyCircuits Wireling Light Sensor Python AST1012This repository holds a python example meant for using a TinyCircuits Ambient Light Sensor Wireling with a Raspberry Pi and Wireling Pi Hat.To install, usepip3 install tinycircuits-wireling-light-sensoror if your default is Python 3:pip install tinycircuits-wireling-light-sensorSoftware written by:TinyCircuitsfor use with TinyCircuits hardware
Package: tinycloud
tinycloudWhat is tinycloudtinycloud is a lightweight personal stroage solutionQuick startStart from wheelsudopip3installtinycloud
sudopython3-mtinycloud.setup-c/etc/tinycloud
sudotinycloud-c/etc/tinycloudSrart from sourcegitclonehttps://github.com/calvinweb/tinycloud.git#TODO
Package: tinycoinlib
TinyCoinLib (pre-release, v0.0.1)A minimalistic any coin (Bitcoin, Litecoin, Dogecoin..)
RPC client and utilities for Python 3.TinyEasy to reviewFree and open source (GPLv3)No external dependenciesNo API breaking changes in horizonIt allows you to build Python programs thatTalk with the Core Wallet's RPC server
(TinyCoinTalk @ talk.py)Receive coin payments
(TinyCoinReceive @ receive.py)Make coin payments
(TinyCoinSend @ send.py)Warning!TinyCoinLib comes without any warranty.
Improper use or software bugs can lead to loss of coins.
Run only on trusted platforms.
Proceed at your own risk.Warning!TinyCoinLib is in early development and not
production ready yet. Its features remain mainly untested.
This will change in future revisions.Warning!Pre-release versions (v.0.0.Z) are completely
untested. Functionality is likely broken.💿 InstallingFirst, install TinyCoinLib form the Python Package Indexpip install tinycoinlibNext, download the Core Wallet
froma trusted sourceand verify its integrity
(checksumsandsignature).
Start the bundled coind program
(bitcoind, litecoind, dogecoind, ...) and
wait for the blockchain to synchronise.Then you are ready to go.📚 Examples1) General RPC commandsfromtinycoinlib.talkimportTinyCoinTalktalker=TinyCoinTalk('litecoin')response=talker.call('getblockhash 69')The constructor takes a URL as its first parameter.
It points to the {}coind RPC server or
is a special value listed in
thePRESET_PORTSdictionary.Thecallmethod takes in a command and returns
the server's response.2) Accept payments (receive coins)fromtinycoinlib.receiveimportTinyCoinReceivereceiver=TinyCoinReceive('127.0.0.1:18933')trans_id='my-transaction-id'paymend_address=receiver.get_payment_address(trans_id)is_complete,amount=receiver.payment_completed(trans_id,42)Theget_payment_addressmethod adds (if not already existing)
a receive address with the labelmy-transaction-idto the Core wallet. Thepayment_completedmethod checks
if the payment has been completed (42 or more coins in the address).3) Make payments (send coins)fromtinycoinlib.sendimportTinyCoinSendsender=TinyCoinSend('dogecoin')transaction_id=sender.send(1.38,'DMrzmskQzXJ9pDHQBxBu5de36UaH5EYtDa')TinyCoinSendhas two more methods,get_balanceandget_detailsfor wallet balance and
transaction details (confirmations, fee, ...) enquery, respectively.ContributingFor bugs and ideas, please see ourIssues.
Further details are inCONTRIBUTING.md.☕Supporting the projectFinancial support is highly appreciated as it allows me (BigCoinBoy)
to work on this projectBitcoin:bc1qp4xyynjqzfffxjsq8xucd7jfjs58sm0reunm9d|URI|QR-code|HistoryLitecoin:ltc1quaqg6kfragqcfg3z4w2jlupsf4dcf4e59gujcg|URI|QR-code|HistoryDogecoin:DMrzmskQzXJ9pDHQBxBu5de36UaH5EYtDa|URI|QR-code|HistoryThank you to everyone who has donated!
Package: tinycom
A simple line based serial terminal GUI written in Python. This is a
tool that’s useful for talking to a variety of serial based hardware
that can involve custom protocols or just a standard command line
interface. It runs on anything that supports Python and Qt.TinyCom is inspired by the originalCuteCom.FeaturesLine oriented input and output, with configurable line ending.Customizeable serial port configuration.Automatically enumerates platform serial ports.History of input lines, to easily regenerate them with a click.Log the session to a file.Runtime RequirementsThis is just an overview of runtime requirements. All major versions of
both the Python interpreter and QT API are supported.Python2 or Python3PyQt4 or
PyQt5orPySideQtpySerialInstallationFor simplicity, instructions for only PyQt4 and Python2 are listed here.
However, you can adjust to use any combination of Python2/Python3 and
PyQt4/PyQt5/Pyside if you prefer when it comes to runtime dependencies.On Ubuntu, first install dependencies using the system package manager.sudo apt-get install python python-qt4 python-serial python-pipThen, use pip to install tinycom.pip install [--user] tinycomOr, if you’re installing from source:pip install [--user] tinycom-<version>.tar.bz2The –user option causes tinycom to be installed in your home directory
under ~/.local.Then, if you somehow get fed up with TinyCom’s awesomeness, uninstall
it.pip uninstall tinycomRunningJust executetinycom.ScreenshotsMain WindowPyQt4/PyQt5/PySideTinyCom can use PyQt4, PyQt5, or PySide for its Qt API. As long as you
have one installed, it will be automatically detected and used at
runtime. However, if you wish to force a specific Qt API, you can set
the QT_API environment variable to one of the following values when
running.QT_API=pyqt4 tinycom
QT_API=pyqt5 tinycom
QT_API=pyside tinycomLicenseTinyCom is licensed under GPL Version 3. See theLICENSE.txtfile.qt.pyis licensed under 3-clause BSD.pyside_dyanmic.pyis MIT
licensed.TinyCom Release NotesVersion 1.1     22 Feb 2017Ignore pylint wrong-import-position warningConvert README.md to rst long_description for PyPiSwitch sdist to gztar by defaultFull support for PyQt4, PyQt5, and Pyside at runtimeRemove dead code commentEnable universal package support by defaultVersion 1.0     20 Feb 2017Initial alpha release.
Package: tinyconf
tinyconfA small library for declarative config interpretationInstallingDownloadtinyconfpip install .within the folderimport tinyconftinyconf.__version__UsageAn example usage:main.pyfrom tinyconf.deserializers import IniDeserializer
from tinyconf.fields import *

class Config(IniDeserializer):
    token = Field(strict=True) # Loads field called 'token'. Fails if not present

    client_id = IntegerField('client') # Loads field called 'client'

    api_version = Field('apiv', default="8") # Loads field called 'apiv', if not present uses "8"

    permitted_users = ListField(map=lambda x: int(x.strip()), default=[], delimiter=";")


config = Config(filename="conf.ini", section="DEFAULT")

assert(config.token == "abcdefghijklmno")
assert(config.client_id == 123456789)
assert(config.api_version == "8")
assert(config.permitted_users == [1111, 2222])conf.ini[DEFAULT]
token = "abcdefghijklmno"
client = 123456789
permitted_users = 1111; 2222Docshttps://tinyconf.readthedocs.io/en/latest/tinyconf.htmlDocs can be built with Sphinx indocsfolder