semvec/pypi-packages huggingface dataset:
drf-app-generators 0.1.5
Generate DRF Serializers, Views, Apis, Unit tests for your application.
License: MIT
Requires Python: >=3.7.*
Keywords: API REST framework generate scaffold

# DRF Application Generators
Generate DRF standard apps with a single command.

## Installation
Install with pip

```bash
$ pip install drf-app-generators
```

To use DRF app generators, add it to INSTALLED_APPS.

```code-block:: python
INSTALLED_APPS = (
    ...
    'rest_framework',
    'drf_app_generators',
    ...
)
```

## Usage

### Generate a new Django app.
To use the generators, run the following command.

```bash
$ python manage.py generate {app} {options}
```

| Options                 | Description                                                               |
|-------------------------|---------------------------------------------------------------------------|
|`--models`               | A list of model names.                                                    |
|`--apidoc`               | Generate written API document                                             |
|`--nested`               | Create nested folders for models, apis, factories and serializers         |
|`--force`                | Override existed files                                                    |


Example: Generate a new app with 3 models.
```bash
$ python manage.py generate books --models Book,Author,Label
```

```bash
    src/books/
    ├── __init__.py
    ├── admin.py
    ├── apis.py
    ├── apps.py
    ├── factories.py
    ├── filters.py
    ├── migrations
    │   ├── 0001_initial.py
    │   └── __init__.py
    ├── models.py
    ├── permissions.py
    ├── serializers.py
    └── tests
        ├── __init__.py
        ├── test_books_apis.py
        └── test_books_models.py
```

### Update an existing Django app.
When you finished adding fields to your models, you can update factories & admins by the following commands.

```bash
$ python manage.py app_update {app} {options}
```
| Options | Description             |
|---------|-------------------------|
|`--nested`| If you app is nested   |
| `--factory`| Update your factories. |
| `--api`| Update your APIs. |
| `--admin`| Update your admin. |
| `--serializer`| Update your serializers. |
| `--unittest`| Update your unittest. |
| `--filter`| Update your filters. |
| `--all`| Update all components. |
| `--add-models`| Add more models to your app. |

Example: Update books app we just generated.
```bash
python manage.py app_update books \
    --factory \
    --admin \
    --api \
    --serializer \
    --unittest \
    --filter \
    --add-models Label,Category
```

## Tests
A full application built with drf-generators can be found in the tests directory.

## License
MIT License. See [LICENSE](https://github.com/drf-tools/drf-app-generators/blob/master/LICENSE).
logupdate 0.3.1
Log by overwriting the previous output in the terminal
License: MIT
Requires Python: >=3.6,<4.0
Keywords: cli,terminal,log,logger,logging,shell,update,animation,progress

# logupdate.py

[![PyPI](https://img.shields.io/pypi/v/logupdate.svg)](https://pypi.org/project/logupdate/)
[![Supported Python Versions](https://img.shields.io/pypi/pyversions/logupdate.svg)](https://pypi.python.org/pypi/logupdate)
[![Build Status](https://travis-ci.org/AdrieanKhisbe/logupdate.py.svg?branch=master)](https://travis-ci.org/AdrieanKhisbe/logupdate.py)

> Log by overwriting the previous output in the terminal. 
> Useful for rendering progress bars, animations, etc.
> (Port of [sindresorhus/log-update](https://github.com/sindresorhus/log-update) from js to python)

## Install
Just pip install it, and you're good to go.

```bash
pip install logupdate
```

## Usage
```python
from logupdate import logupdate
from time import sleep

logupdate("Hello, a secret is about to be said to you")
sleep(1)
logupdate("You can pimp your interactive commands with logupdate")
sleep(1)
logupdate("Don't forget the secret ;)")
sleep(1)
logupdate.clear().done()
```

## Examples

You can find some example in the dedicated [examples](./examples) folder.

## API
- `logupdate(text, ...)`: log to stdout (overwriting previous input)
- `logupdate.clear([restore_cursor=None])`: Clear previous logged output. This can also restore the cursor if asked.
- `logupdate.done([restore_cursor=None])`: Persist the logged output. This enable to start a new "log session" below.
  This restores the cursor unless you ask not to.

- `logupdate.stderr(text, ...)`: log to stderr
- `logupdate.stderr.clear([restore_cursor=None])`: clear stderr.
- `logupdate.stderr.done([restore_cursor=None])`:  persist stderr.

- `logupdate.create(stream, [show_cursor=False])` : return a `logupdate` method dedicated to log to given `stream`.

## License
MIT © [AdrieanKhisbe](https://github.com/AdrieanKhisbe)
annotell-ams 1.3.0
Annotell AMS
License: MIT
Requires Python: ~=3.6
Keywords: API,Annotell

# Annotell Management System

Python 3 library providing access to AMS. 

To install with pip run `pip install annotell-ams`

Set env ANNOTELL_CREDENTIALS, see [annotell-auth](https://github.com/annotell/annotell-python/tree/master/annotell-auth). 

## Metadata Example
Stream all items matching a query
```python
from annotell.ams.query import QueryClient
query_client = QueryClient()
resp = query_client.stream_metadata(query_filter="id = X")
for item in resp.items():
    print(item)
```

## Change log
- Change constructor for authentication to only accept `auth`.