semvec/pypi-packages huggingface dataset:
mongoflex 0.3.0
Mongoflex is a ORM-like wrapper for mongodb to allow declarative creation and management of mongo collections.
License: MIT
Requires Python: >=3.8,<4.0

# Mongoflex

Mongoflex is a ORM-like wrapper for mongodb to allow declarative creation and management of mongo collections.

## Installation

```
pip install mongoflex
```

## Usage
First you need to connect to a mongodb database:

```python
from mongoflex import connect

connect("mongodb://localhost:27017/test")
```

And define a model for your collection using python dataclass syntax and extending mongoflex `Model` class.

```python
from dataclasses import dataclass

from mongoflex import Model

@dataclass
class Person(Model):
    age: int
    name: str
```

You can create a record with:

```python
>>> Person(age=10, name="John").save()
>>> list(Person.objects.find())
[{'_id': ObjectId('64d53e4e137297ea7f307086'), 'age': 10, 'name': 'John'}]
```

And you have full access to pymongo `Collection` using:

```python
>>> Person.objects # Collection
Collection(Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'test'), 'people')
```

## Important Points

1. The name of the collection on mongo will be the combination of the words in the name of the `Model` class, with the last pluralized. eg.: `FeedConfig` will become `feed_configs` on mongodb.
2. The `_id` is a default field on every model, but you can define it on constructor.
djangorestframework-jwt-v2 1.11.2
JSON Web Token based authentication for Django REST framework
License: MIT

REST framework JWT Auth
=======================

|build-status-image| |pypi-version|

**JSON Web Token Authentication support for Django REST Framework**

Full documentation for the project is available at `docs`_.

Overview
--------

This package provides `JSON Web Token Authentication`_ support for
`Django REST framework`_.

If you want to know more about JWT, check out the following resources:

-  DjangoCon 2014 - JSON Web Tokens `Video`_ \| `Slides`_
-  `Auth with JSON Web Tokens`_
-  `JWT.io`_

Requirements
------------

-  Python (2.7, 3.3, 3.4, 3.5)
-  Django (1.8, 1.9, 1.10, 1.11)
-  Django REST Framework (3.0, 3.1, 3.2, 3.3, 3.4, 3.5)

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

Install using ``pip``\ ...

.. code:: bash

    $ pip install djangorestframework-jwt-v2

Documentation & Support
-----------------------

Full documentation for the project is available at `docs`_.

You may also want to follow the `author`_ on Twitter.

.. _docs: http://getblimp.github.io/django-rest-framework-jwt
.. _JSON Web Token Authentication: http://tools.ietf.org/html/draft-ietf-oauth-json-web-token
.. _Django REST framework: http://django-rest-framework.org/
.. _Video: https://www.youtube.com/watch?v=825hodQ61bg
.. _Slides: https://speakerdeck.com/jpadilla/djangocon-json-web-tokens
.. _Auth with JSON Web Tokens: http://jpadilla.com/post/73791304724/auth-with-json-web-tokens
.. _JWT.io: http://jwt.io/
.. _author: https://twitter.com/blimp

.. |build-status-image| image:: https://secure.travis-ci.org/GetBlimp/django-rest-framework-jwt.svg?branch=master
   :target: http://travis-ci.org/GetBlimp/django-rest-framework-jwt?branch=master
.. |pypi-version| image:: https://img.shields.io/pypi/v/djangorestframework-jwt.svg
   :target: https://pypi.python.org/pypi/djangorestframework-jwt-v2