semvec/pypi-packages huggingface dataset:
django-postgres-reindex-command 2020.12.3
reindex postgres indexes using django command
License: Unlicense
Keywords: Django postgres reindex

<!--
https://readme42.com
-->


[![](https://img.shields.io/pypi/v/django-postgres-reindex-command.svg?maxAge=3600)](https://pypi.org/project/django-postgres-reindex-command/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ [sudo] pip install django-postgres-reindex-command
```

##### `settings.py`
```python
INSTALLED_APPS = [
    ...
    'django_postgres_reindex_command',
    ...
]
```

#### Examples
dev
```bash
$ python manage.py reindex
```

prod
```bash
$ ssh user@hostname sudo docker run --env-file .env image python manage.py reindex
```

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>
django-postgres-matviews-commands 2020.12.2
Django postgres matviews commands (REFRESH, DROP)
License: Unlicense
Keywords: Django postgres matviews

<!--
https://readme42.com
-->


[![](https://img.shields.io/pypi/v/django-postgres-matviews-commands.svg?maxAge=3600)](https://pypi.org/project/django-postgres-matviews-commands/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ [sudo] pip install django-postgres-matviews-commands
```

##### `settings.py`
```python
INSTALLED_APPS = [
    ...
    'django_postgres_matviews_commands',
    ...
]
```

#### Examples
dev
```bash
$ python manage.py refresh_matviews
$ python manage.py drop_matviews
```

prod
```bash
$ ssh user@hostname sudo docker run --env-file .env image python manage.py refresh_matviews
$ ssh user@hostname sudo docker run --env-file .env image python manage.py drop_matviews
```

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>
django-postgres-indexes 2020.12.3
load sql file(s)
License: Unlicense
Keywords: django load sql

<!--
https://readme42.com
-->


[![](https://img.shields.io/pypi/v/django-postgres-indexes.svg?maxAge=3600)](https://pypi.org/project/django-postgres-indexes/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ [sudo] pip install django-postgres-indexes
```

#### Examples
variant 1:

`settings.py`
```python
INSTALLED_APPS+= ["django_loadsql"]
```

```bash
$ find . -name '*.sql' | xargs python manage.py loadsql
```


variant 2:
```bash
export DJANGO_SETTINGS_MODULE=settings.dev
find . -name '*.sql' | xargs python -m django_loadsql
```

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>
django-postgres-dropdb 2020.12.3
drop postgres database
License: Unlicense
Keywords: django postgres dropdb

<!--
https://readme42.com
-->


[![](https://img.shields.io/pypi/v/django-postgres-dropdb.svg?maxAge=3600)](https://pypi.org/project/django-postgres-dropdb/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ [sudo] pip install django-postgres-dropdb
```

#### Examples
example 1 - management command:

`settings.py`

```python
INSTALLED_APPS+=['django_postgres_dropdb']

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql',
        'NAME': os.getenv('DB_NAME'),
        'USER': os.getenv('DB_USER'),
        'PASSWORD': os.getenv('DB_PASS'),
        'HOST': os.getenv('DB_HOST'),
        'PORT': os.getenv('DB_PORT'),
    }
}
```

```bash
$ python manage.py dropdb
$ python manage.py dropdb "default"
```

example 2 - python module cli:

`settings.py`

```python
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql',
        'NAME': os.getenv('DB_NAME'),
        'USER': os.getenv('DB_USER'),
        'PASSWORD': os.getenv('DB_PASS'),
        'HOST': os.getenv('DB_HOST'),
        'PORT': os.getenv('DB_PORT'),
    }
}
```

```bash
$ export DJANGO_SETTINGS_MODULE=settings
$ python -m django_postgres_dropdb
$ python -m django_postgres_dropdb "default"
```

#### Related
+   [django-postgres-createdb](https://pypi.org/project/django-postgres-createdb/)
+   [django-postgres-dropdb](https://pypi.org/project/django-postgres-dropdb/)

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>
django-postgres-createdb 2020.12.3
create postgres database
License: Unlicense
Keywords: django postgres create

<!--
https://readme42.com
-->


[![](https://img.shields.io/pypi/v/django-postgres-createdb.svg?maxAge=3600)](https://pypi.org/project/django-postgres-createdb/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ [sudo] pip install django-postgres-createdb
```

#### Examples
example 1 - management command:

`settings.py`

```python
INSTALLED_APPS+=['django_postgres_createdb']

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql',
        'NAME': os.getenv('DB_NAME'),
        'USER': os.getenv('DB_USER'),
        'PASSWORD': os.getenv('DB_PASS'),
        'HOST': os.getenv('DB_HOST'),
        'PORT': os.getenv('DB_PORT'),
    }
}
```

```bash
$ python manage.py createdb
$ python manage.py createdb "default"
```

example 2 - python module cli:

`settings.py`

```python
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql',
        'NAME': os.getenv('DB_NAME'),
        'USER': os.getenv('DB_USER'),
        'PASSWORD': os.getenv('DB_PASS'),
        'HOST': os.getenv('DB_HOST'),
        'PORT': os.getenv('DB_PORT'),
    }
}
```

```bash
$ export DJANGO_SETTINGS_MODULE=settings
$ python -m django_postgres_createdb
$ python -m django_postgres_createdb "default"
```

#### Related
+   [django-postgres-createdb](https://pypi.org/project/django-postgres-createdb/)
+   [django-postgres-dropdb](https://pypi.org/project/django-postgres-dropdb/)

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>
django-passwordless-auth 2020.12.3
Django passwordless auth
License: Unlicense
Keywords: Django passwordless auth

<!--
https://readme42.com
-->


[![](https://img.shields.io/pypi/v/django-passwordless-auth.svg?maxAge=3600)](https://pypi.org/project/django-passwordless-auth/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ [sudo] pip install django-passwordless-auth
```

#### Pros
+   3rd party/social authentication without password

#### Examples
`settings.py`
```python
# from django_passwordless_auth.settings import AUTHENTICATION_BACKENDS

AUTHENTICATION_BACKENDS = (
    'django_passwordless_auth.backend.PasswordlessAuthBackend',
)
```

`views.py`
```python
from django.contrib.auth import login

def view(request):
    ...
    login(request, user, backend='django_passwordless_auth.backend.PasswordlessAuthBackend')
```

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>
django-owner-required 2020.7.1
Django OwnerRequiredMixin - object.created_by==request.user required
License: Unlicense
Keywords: django

<!--
https://readme42.com
-->


[![](https://img.shields.io/pypi/v/django-owner-required.svg?maxAge=3600)](https://pypi.org/project/django-owner-required/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ [sudo] pip install django-owner-required
```

#### Examples
```python
from django_owner_required.views import OwnerRequiredMixin

class MyView(OwnerRequiredMixin,...):
    def get_object(self):
        return ...
```

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>
django-next-view 2020.12.3
Django view redirect mixin ?next=url
License: Unlicense
Keywords: django view redirect

<!--
https://readme42.com
-->


[![](https://img.shields.io/pypi/v/django-next-view.svg?maxAge=3600)](https://pypi.org/project/django-next-view/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ [sudo] pip install django-next-view
```

#### Examples
```python
from django_next_view.views import NextViewMixin

class MyView(NextViewMixin,...):
    def post(self,request,*args,**kwargs):
        ...
        return self.next()
```

add `next` arg to forms/links
```html
<form action="..." method="POST">
<input type="hidden" name="next" value="url" />
</form>

<a href="{% url 'view_name' %}?next=url">GET</a>
```

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>
django-manage 2020.12.2
standalone global manage.py
License: Unlicense
Keywords: django

<!--
https://readme42.com
-->



[![](https://img.shields.io/badge/OS-Unix-blue.svg?longCache=True)]()
[![](https://img.shields.io/pypi/v/django-manage.svg?maxAge=3600)](https://pypi.org/project/django-manage/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ [sudo] pip install django-manage
```

```bash
$ [sudo] npm i -g django-manage
```

#### Examples
```bash
$ export DJANGO_SETTINGS_MODULE="<settings>"
$ manage.py <command>
$ python -m django_manage <command>
```

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>
django-makesuperuser 2020.12.3
manage.py makesuperuser --username admin --password admin
License: Unlicense
Keywords: django superuser

<!--
https://readme42.com
-->


[![](https://img.shields.io/pypi/v/django-makesuperuser.svg?maxAge=3600)](https://pypi.org/project/django-makesuperuser/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ [sudo] pip install django-makesuperuser
```

#### Examples
example#1 - management command:

`settings.py`
```python
INSTALLED_APPS+= ["django_makesuperuser"]
```

```bash
$ python manage.py makesuperuser --username admin --password admin
$ python manage.py makesuperuser --username admin --password admin --email foo@foo.foo
```

example#2 - python module cli:
```bash
$ export DJANGO_SETTINGS_MODULE=settings
$ python -m django_makesuperuser "username" "password"
$ python -m django_makesuperuser "username" "password" foo@foo.foo
```

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>
django-loadsql 2020.12.3
load sql file(s)
License: Unlicense
Keywords: django load sql

<!--
https://readme42.com
-->


[![](https://img.shields.io/pypi/v/django-loadsql.svg?maxAge=3600)](https://pypi.org/project/django-loadsql/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ [sudo] pip install django-loadsql
```

#### Examples
variant 1:

`settings.py`
```python
INSTALLED_APPS+= ["django_loadsql"]
```

```bash
$ find . -name '*.sql' | xargs python manage.py loadsql
```


variant 2:
```bash
export DJANGO_SETTINGS_MODULE=settings.dev
find . -name '*.sql' | xargs python -m django_loadsql
```

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>
django-listview-queryset 2020.12.3
ListView QuerySet with custom `count()`
License: Unlicense
Keywords: django listview queryset

<!--
https://readme42.com
-->


[![](https://img.shields.io/pypi/v/django-listview-queryset.svg?maxAge=3600)](https://pypi.org/project/django-listview-queryset/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ [sudo] pip install django-listview-queryset
```

#### Pros
+   custom `count()`

#### Examples
`ListViewQuerySet`

```python
from django_listview_queryset import ListViewQuerySet

class Name(models.Model):
    objects = ListViewQuerySet.as_manager()
```
```python
q = Name.objects.filter().order_by().setcount(42)
```

`ListViewRawQuerySet`

```python
from django_listview_queryset import ListViewRawQuerySet

class Name(models.Model):
    objects = ListViewRawQuerySet.as_manager()
```
```python
q = Name.objects.raw('select * from table').setcount(42)
```

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>
django-installed-apps-command 2020.12.3
prints settings.INSTALLED_APPS
License: Unlicense
Keywords: django

<!--
https://readme42.com
-->


[![](https://img.shields.io/pypi/v/django-installed-apps-command.svg?maxAge=3600)](https://pypi.org/project/django-installed-apps-command/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ [sudo] pip install django-installed-apps-command
```

##### `settings.py`
```python
INSTALLED_APPS = [
    ...
    'django_installed_apps_command',
    ...
]
```

#### Examples
```bash
$ python manage.py installed_apps
```

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>
django-github-colors 2020.12.3
Github colors for all the programming languages
License: Unlicense
Keywords: github colors

<!--
https://readme42.com
-->


[![](https://img.shields.io/pypi/v/django-github-colors.svg?maxAge=3600)](https://pypi.org/project/django-github-colors/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ [sudo] pip install django-github-colors
```

##### `settings.py`
```python
INSTALLED_APPS+ = [
    "django_github_colors",
]
```

#### Examples
```html
{% load github_colors %}

{% github_colors repo.language %}
```

```html
<span class="repo-language-color ml-0" style="background-color:{% github_colors repo.language %}"></span>
```

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>
django-find-apps 2020.12.3
find django apps
License: Unlicense
Keywords: django apps

<!--
https://readme42.com
-->


[![](https://img.shields.io/pypi/v/django-find-apps.svg?maxAge=3600)](https://pypi.org/project/django-find-apps/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ [sudo] pip install django-find-apps
```

#### Examples
`settings.py`
```python
import django_find_apps

INSTALLED_APPS = django_find_apps.find_apps(".")
```

```
apps
├── app1
|   ├── __init__.py
|   └── models.py
├── app2
|   ├── __init__.py
|   └── templatetags
└── app3
    ├── __init__.py
    └── management
```

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>
django-embed-gist 2020.12.3
embed gist
License: Unlicense
Keywords: django gist

<!--
https://readme42.com
-->


[![](https://img.shields.io/pypi/v/django-embed-gist.svg?maxAge=3600)](https://pypi.org/project/django-embed-gist/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ [sudo] pip install django-embed-gist
```

#### Pros
+   native (html links)

#### How it works
input:
```html
<a href="https://gist.github.com/user/id" target="_blank">title</a>
```

output:
```html
<script src="https://gist.github.com/user/id.js"></script>
```

##### `settings.py`
```python
INSTALLED_APPS+= [
    'django_embed_gist'
]
```

#### Examples
```html
{% load embed_gist %}

{{ post.body|embed_gist|safe }}
```

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>
django-dev-urls 2020.12.3
Django development urlpatterns
License: Unlicense
Keywords: Django dev urls

<!--
https://readme42.com
-->


[![](https://img.shields.io/pypi/v/django-dev-urls.svg?maxAge=3600)](https://pypi.org/project/django-dev-urls/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ [sudo] pip install django-dev-urls
```

#### Examples
`urls.py`
```python
from django_dev_urls.urls import urlpatterns

urlpatterns += [
    ...
]
```

equivalent of
```python
from django.conf import settings
from django.conf.urls.static import static

urlpatterns = [
    ...
]

if settings.DEBUG:
    urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
    urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
```

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>
django-daemon-command 2020.12.3
django DaemonCommand
License: Unlicense
Keywords: django daemon command

<!--
https://readme42.com
-->


[![](https://img.shields.io/pypi/v/django-daemon-command.svg?maxAge=3600)](https://pypi.org/project/django-daemon-command/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ [sudo] pip install django-daemon-command
```

#### Pros
+   never stops after exception
    +   exception traceback is saved in the database (`SELECT * FROM daemon_command_exc_traceback`)
+   logs (`SELECT * FROM daemon_command_log`)

##### `settings.py`
```python
INSTALLED_APPS = [
    ...
    'django_daemon_command',
    ...
]
```

```bash
$ python manage.py migrate
```

#### Examples
`app/management/commands/command.py`
```python
from django_daemon_command.management.base import DaemonCommand

class Command(DaemonCommand):
    sleep = 5

    def process(self,*args,**options):
        self.log('msg') # SELECT * FROM daemon_command_log
```

```bash
$ python manage.py command
```

customize
```python
class Command(DaemonCommand):
    def handle(self, *args, **options):
        ... # init
        self.daemonize(*args, **options)

    def on_exception(self,exc):
        self.print_exception(exc)
        self.save_exception(exc)
```

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>
django-createsuperuser 2020.12.3
createsuperuser with password
License: Unlicense
Keywords: django superuser

<!--
https://readme42.com
-->


[![](https://img.shields.io/pypi/v/django-createsuperuser.svg?maxAge=3600)](https://pypi.org/project/django-createsuperuser/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ [sudo] pip install django-createsuperuser
```

#### Examples
example#1 - management command:

`settings.py`
```python
INSTALLED_APPS+= ["django_createsuperuser"]
```

```bash
$ python manage.py createsuperuser --username admin --password admin
$ python manage.py createsuperuser --username admin --password admin --email foo@foo.foo
```

example#2 - python module cli:
```bash
$ export DJANGO_SETTINGS_MODULE=settings
$ python -m django_createsuperuser "username" "password"
$ python -m django_createsuperuser "username" "password" foo@foo.foo
```

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>
django-commands-manager 2020.12.2
Django commands manager
License: Unlicense
Keywords: django commands manager

<!--
https://readme42.com
-->


[![](https://img.shields.io/pypi/v/django-commands-manager.svg?maxAge=3600)](https://pypi.org/project/django-commands-manager/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ [sudo] pip install django-commands-manager
```

##### `settings.py`
```python
INSTALLED_APPS+=['django_commands_manager']
```

##### migrate
```bash
$ python manage.py migrate
```

#### Examples
Queue
```python
from django_postgres_refresh_matviews.models import Matview
from django_postgres_refresh_matviews.utils import refresh_matviews_queue

Matview.objects.get_or_create(schemaname='public',matviewname='matview1')
Matview.objects.get_or_create(schemaname='public',matviewname='matview2')

refresh_matviews()

Matview.objects.filter(schemaname='public').update(is_completed=False)
```

Log
```python
from django_commands_manager.models import Log

for l in Log.objects.filter(schemaname='public',matviewname='matview1'):
    l.started_at, l.completed_at
```

Exc
```python
from django_commands_manager.models import Exc

for l in Log.objects.filter(schemaname='public',matviewname='matview1'):
    l.started_at, l.completed_at
```

cli
```bash
$ python manage.py run_commands "group1"
$ python manage.py run_commands "group2"
```

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>
django-base-url 2020.12.3
{{ BASE_URL }} django template variable
License: Unlicense
Keywords: django base_url

<!--
https://readme42.com
-->


[![](https://img.shields.io/pypi/v/django-base-url.svg?maxAge=3600)](https://pypi.org/project/django-base-url/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ [sudo] pip install django-base-url
```

#### How it works
settings `BASE_URL` if defined, else scheme+`request.get_host()`

##### `settings.py`
```python
TEMPLATE_CONTEXT_PROCESSORS = (
    "django_base_url.context_processors.base_url",
)
```

#### Examples
`settings.py`:
```python
BASE_URL="http://host/"
```

```html
<base href="{{ BASE_URL }}">
```

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>
django-admin-parent-filter 2020.12.3
django admin parent filter
License: Unlicense
Keywords: django admin filter

<!--
https://readme42.com
-->


[![](https://img.shields.io/pypi/v/django-admin-parent-filter.svg?maxAge=3600)](https://pypi.org/project/django-admin-parent-filter/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ [sudo] pip install django-admin-parent-filter
```

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>
direnv 2020.12.3
direnv (environment switcher) python implementation
License: Unlicense
Keywords: direnv env

<!--
https://readme42.com
-->


[![](https://img.shields.io/pypi/v/direnv.svg?maxAge=3600)](https://pypi.org/project/direnv/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ [sudo] pip install direnv
```

#### Examples
`path/to/parent-folder/current-folder/.envrc`

`path/to/parent-folder/.envrc`

```python
>>> import direnv
>>> direnv.load()
```

#### Links
+   [direnv.net](https://direnv.net/)

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>
dir-exec 2020.12.3
execute command from every dir
License: Unlicense
Keywords: exec dir

<!--
https://readme42.com
-->



[![](https://img.shields.io/badge/OS-Unix-blue.svg?longCache=True)]()
[![](https://img.shields.io/pypi/v/dir-exec.svg?maxAge=3600)](https://pypi.org/project/dir-exec/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ [sudo] pip install dir-exec
```

```bash
$ [sudo] npm i -g dir-exec
```

#### Examples
```bash
$ find ~/git/gists -type d -mindepth 1 -maxdepth 1 -print0 | xargs -0 dir-exec command
```

execute function
```bash
func() {
    ...
}
export -f func
find ~/git/gists -type d -mindepth 1 -maxdepth 1 -print0 | xargs -0 dir-exec func
```

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>
dict 2020.12.3
dict replacement
License: Unlicense
Keywords: dict

<!--
https://readme42.com
-->


[![](https://img.shields.io/pypi/v/dict.svg?maxAge=3600)](https://pypi.org/project/dict/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ [sudo] pip install dict
```

#### Features
*	**attribute-style access**
* 	**None** instead of **KeyError**
* 	safe **remove**
* 	jQuery like **methods chaining**

#### Examples
```python
>>> from dict import dict

>>> dict(k="v")["k"]
"v"

>>>  dict(k="v").k
"v"

>>> dict(k="v")["not_existing"]
None

>>> dict(k="v").not_existing
None

>>> dict(k="v").get("K",i=True) # case insensitive
```

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>