semvec/pypi-packages huggingface dataset:
dynamore 0.1.1
Dynamore is extremely simple Python library for managing entities on DynamoDb.
License: MIT
Requires Python: >=3.8,<4.0

DYNAMORE
--------

Dynamore is extremely simple Python library for **managing entities** on DynamoDb. It's designed to be used together with REST API and only supports **single table design**.

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

Install from Pypi:

.. code-block:: bash

   $ pip install dynamore

Quick start
-----------

Dynamore doesn't manage your tables so create DynamoDb table beforehand e.g. provisioning by CloudFormation.

Here's the simple example on how to create Person schema and store it to DynamoDb:

.. code-block:: Python

    from dynamore.dynamodb_proxy import DynamoDbProxy
    from dynamore.entity import Entity


    class Person(Entity):
        SCHEMA = {
            "title": "PERSON",
            "type": "object",
            "required": ["name", "age", "gender", "id_number"],
            "properties": {
                "name": {"type": "string"},
                "age": {"type": "integer", "min": 0, "max": 123},
                "gender": {"type": "string", "enum": ["male", "female"]},
                "id_number": {"type": "string"},
            },
            "additionalProperties": False,
        }

        ID_ATTRIBUTE = "id_number"

    db = DynamoDbProxy(table_name="MyTable")
    data = {
        "name": "Jeanne",
        "age": 123,
        "gender": "female", 
        "id_number": "123456"
    }
    _ = db.post(entity_class=Person, data=data)
    # Get single item
    item = db.get(
        entity_class=Person, data={"id_number": data["id_number"]}
    )
    # Get all items of type "Person"
    items = dynamodb_proxy.get(entity_class=Person)

First a new entity class Person defined. It's **schema** is defined using jsonschema and **id attribute** defines the name of the attribute that is used for uniqueness.

Dynamore stores data to DynamoDb in the following format:

+--------+--------+--------+-----+--------+
| PK     | SK     | name   | age | gender |
+========+========+========+=====+========+
| PERSON | 123456 | Jeanne | 123 | female | 
+--------+--------+--------+-----+--------+

By default entity uses partition key "PK" and sort key "SK" value but you can define them otherwise by overriding pr_keys-method.
douban-movie 0.0.4
Get movie info from Douban (豆瓣) and display in your terminal
License: MIT
Keywords: douban terminal movie

Douban-Movie
====================================
Display movie information retrieved from Douban (豆瓣) in your terminal. 

![alt text](screenshots/douban-movie.png "douban movie" )
![alt text](screenshots/douban-movie-list.png "douban movie list" )


[![PyPI](https://img.shields.io/pypi/v/nine.svg?maxAge=2592000)](https://pypi.python.org/pypi/douban-movie)
[![Python 3.6](https://img.shields.io/badge/python-3.6-blue.svg)](https://www.python.org/downloads/release/python-360)

------------------
# Requirements
- Python 3.6
- [Urwid](https://github.com/urwid/urwid)
- Requests
- BeautifulSoup
- lxml

# Installation
```
$ pip install douban-movie
```
Clone the repository  
```
 $ git clone https://github.com/chishui/douban-movie.git  
 $ cd douban-movie
 $ sudo python setup.py install  
```
# Usage
Display movie infomation
```
$ douban zootopia
```
Output
```
===============   Douban Movie   ===============
Title: 疯狂动物城
Score: 9.2
Year: 2016
Director: 拜伦·霍华德 / 瑞奇·摩尔 / 杰拉德·布什
Actors: 金妮弗·古德温 / 杰森·贝特曼 / 伊德里斯·艾尔巴 / 珍妮·斯蕾特 / 内特·托伦斯 / 邦尼·亨特 / 唐·雷克 / 汤米·钟 / J·K·西蒙斯 / 奥克塔维亚·斯宾瑟 / 艾伦·图代克 / 夏奇拉 / 雷蒙德·S·佩尔西 / 德拉·萨巴 / 莫里斯·拉马奇 / 菲尔·约翰斯顿 / 约翰·迪·玛吉欧 / 凯蒂·洛斯 / 吉塔·雷迪 / 杰西·科尔蒂 / 汤米·利斯特 / 乔希·达拉斯 / 瑞奇·摩尔 / 凯特·索西 / 彼得·曼斯布里奇 / 拜伦·霍华德 / 杰拉德·布什 / 马克·史密斯 / 乔西·特立尼达 / 约翰·拉维尔 / 克里斯汀·贝尔 / 吉尔·科德斯 / 梅利莎·古德温
================================================
```

List all movies which match the name
```
$ douban 星球 -l
```