semvec/pypi-packages huggingface dataset:
wurm 0.1.0
Simple sqlite3-based ORM
License: MIT

wurm
====

Wurm is a simple sqlite3-based ORM.

.. contents:: **Table of Contents**
    :backlinks: none

Usage
-----

.. code-block:: python

    # create a table:

    @dataclass
    class Point(wurm.Table):
        x: int
        y: int

    # types currently supported: int, str, bytes, bool, float, datetime.time,
    #     datetime.date, datetime.datetime, pathlib.Path

    # sqlite3 connections cannot be shared, so call setup_connection once per thread

    wurm.setup_connection(sqlite3.connect(":memory:"))

    # adding new instances to the database:

    point = Point(1, 0)
    print(point.rowid) # None
    point.insert()
    print(point.rowid) # 1

    # making changes:

    point.x = 2
    point.commit()

    # simple queries:

    point = Point[1] # get by rowid
    del Point[1] # delete by rowid
    point.delete() # delete from an object
    all_points = list(Point) # iterate over a table to get instances for all rows
    number_of_points = len(Point) # get the total number of rows in the table



Installation
------------

wurm is distributed on `PyPI <https://pypi.org>`_ as a universal
wheel and is available on Linux/macOS and Windows and supports
Python 3.7+.

.. code-block:: bash

    $ pip install wurm

Changelog
---------

0.1.0
=====

* Add ``wurm.Table.query()`` and ``wurm.Query``.
* Remove ``wurm.Table[rowid]`` getter and deleter.
* Add documentation for the public interface.

0.0.2
=====

* Ensure tables are created, even in edge cases.
* Add support for ``date``, ``time``, ``datetime`` and ``Path``.
* Add ``wurm.Unique[T]``.


License
-------

wurm is distributed under the terms of the
`MIT License <https://choosealicense.com/licenses/mit>`_.
atcodes-chappie 0.1.61
A collection of tools and utilities commonly for python projects.
License: MIT
Keywords: utilities clients

# chappie is a module including common tools and utilities for python projects.

**Environment variables**

---------------------

  
***CHAPPIE_AWS_PROFILE***

Connect to an aws account, if not defined, it takes the default account by default.

In the current version it is used to connect aws s3 and sns client (the sns client is not completed yet).

***CHAPPIE_STORAGE_SERVICE***

Define the storage service to use, if one is not indicated, chappie will select the local file system to be used by default.

*Supported services:*
 - **local** (for local file system)
 - **s3** (for aws s3 service)
 
 ***CHAPPIE_STORAGE_BUCKET_NAME***

Define the file container for your application, if not specified, it will create by default a container called: main-storage-bucket-nqhnuwm4u8jakcxu inside a folder called file_manager.

***CHAPPIE_NOTIFIER_SERVICE***

Define the notification service to use, if one is not specified, it will use "[rollbar](https://rollbar.com/)" by default.

Note: the integration configuration must be previously defined in the configuration file of your project.
 
 *Supported services:*
 - **[rollbar](https://rollbar.com/)** (for local file system).
 - **[sentry](https://sentry.io/)** (for aws s3 service).
  
 ***CHAPPIE_BASE_PROJECT_DIR***

This variable is used to create the file container folder at the same level of your project for when using the local file system; if it is not defined, the location of the folder will be at the same level as where the chappie project was installed.


**Installation**

------------

- Create a virtual environment:
    *> virtualenv -p python3 venv*

- Activate the virtual environment:
    *> source venv/bin/activate*
   
- Install the chappie utilities:
    *> pip install atcodes-chappie; pip freeze > requirements.txt*
 
 
 
 
## This project is for free use, if you have any questions please write to admin@atcodes.co