semvec/pypi-packages huggingface dataset:
tinyrecord 0.2.0
Atomic transactions for TinyDB
License: MIT
Requires Python: >=3.5
Keywords: tinydb nosql database transaction

::

    TinyDB __  _                                   __
          / /_(_)__  __ _________ _______  _______/ /
         / __/ / _ \/ // / __/ -_) __/ _ \/ __/ _  /
         \__/_/_//_/\_, /_/  \__/\__/\___/_/  \_,_/
                   /___/


**Supported Pythons:** 3.5+

Tinyrecord is a library which implements atomic
transaction support for the `TinyDB`_ NoSQL database.
It uses a record-first then execute architecture which
allows us to minimize the time that we are within a
thread lock. Usage example:

.. code-block:: python

    from tinydb import TinyDB, where
    from tinyrecord import transaction

    table = TinyDB('db.json').table('table')
    with transaction(table) as tr:
        # insert a new record
        tr.insert({'username': 'john'})
        # update records matching a query
        tr.update({'invalid': True}, where('username') == 'john')
        # delete records
        tr.remove(where('invalid') == True)
        # update using a function
        tr.update(updater, where(...))
        # insert many items
        tr.insert_multiple(documents)

Note that due to performance reasons you cannot view
the data within a transaction unless you've comitted.
You will have to call operations on the transaction
object and not the database itself. Since tinyrecord
works with dictionaries and the latest API, it will
only support the latest version (**4.x**).

Installation is as simple as ``pip install tinyrecord``.

.. image:: https://travis-ci.org/eugene-eeo/tinyrecord.svg?branch=master
    :target: https://travis-ci.org/eugene-eeo/tinyrecord
.. _TinyDB: https://github.com/msiemens/tinydb
pylrc 0.1.2
A library for parsing .lrc files
License: MIT

=====
PyLRC
=====
.. image:: https://img.shields.io/pypi/v/pylrc.svg
.. image:: https://img.shields.io/pypi/dm/pylrc.svg
.. image:: https://img.shields.io/github/license/doakey3/pylrc.svg

A python library for parsing and converting .lrc files

Usage
=====

.. code:: python

    import pylrc
    
    lrc_file = open('example.lrc')
    lrc_string = ''.join(lrc_file.readlines())
    lrc_file.close()
    
    subs = pylrc.parse(lrc_string)
    for sub in subs:
        sub.shift(minutes=1, seconds=13, milliseconds=325) # offset by 01:13.325
    
    srt = subs.toSRT() # convert lrc to srt string
    
    lrc_string = subs.toLRC() # convert to lrc string
    
Installation
============

.. code::

    sudo pip install pylrc