Skip to main content

API para gestão de contas financeiras

Project description

contas_orama
======================================

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

Descrição
-------------

Sistema de controles de finanças pessoais.
Usuário pode criar uma conta e fazer lançamentos na mesma.

Usuário poderá ver o extrato e consultar o saldo em períodos e
datas arbitrárias.

Requerimentos
--------------

- Python
- Django
- Django REST Framework

Instalação
------------

Instalação usa ``pip``\ …

.. code:: bash

$ pip install contas_orama

Utilização
----------

1. Em settings.py adicione "contas_orama" e "rest_framework" em INSTALLED_APPS:

.. code:: bash

INSTALLED_APPS = [
...
'rest_framework',
'contas_orama',
]

Ainda em settings.py adicione o seguinte bloco de comando:

.. code:: bash

REST_FRAMEWORK = {
'DEFAULT_PAGINATION_CLASS':
'rest_framework.pagination.PageNumberPagination',
'PAGE_SIZE': 20
}

O código acima se refere a [paginação](http://www.django-rest-framework.org/api-guide/pagination/#pagination).

Dessa forma, em views onde ocorrem listagens de objetos, só serão listados
20 contas e/ou 20 lançamentos.

Mudar o parâmetro 'PAGE_SIZE' se desejar um número diferente.


2. Inclua a URL no urls.py do seu projeto.

.. code:: bash

url('^contas_orama/', include('contas_orama.urls')),

3. Crie os modelos ...

.. code:: bash

$ python manage.py migrate

4. Crie novos usuários (não é permitido acessar as contas sem login) ...

... code:: bash

$ python manage.py createsuperusers

5. Visitar http://127.0.0.1:8000/contas/ para gerir as contas.


Testando
--------

Para executar os testes:

.. code:: bash

$ python manage.py test contas_orama


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

contas_orama-0.1.0.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

contas_orama-0.1.0-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

Details for the file contas_orama-0.1.0.tar.gz.

File metadata

  • Download URL: contas_orama-0.1.0.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.2

File hashes

Hashes for contas_orama-0.1.0.tar.gz
Algorithm Hash digest
SHA256 66f8a0a65032b723ec50cfaef64ffa07ca841ea2ebe4d60bc704fc173cbe6b7e
MD5 eafa6d775e3dc0181bd18810fab29877
BLAKE2b-256 9cd96ab78bc82a7b003219399b7f83d3e34592ed95a64ad7c90d1d6c4de5316a

See more details on using hashes here.

File details

Details for the file contas_orama-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: contas_orama-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 16.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.2

File hashes

Hashes for contas_orama-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c87631ddca6d84061a761c77567f9051f131c88621abab6eac0557c636d4ea57
MD5 0344e1523062d38d3c550b7b63fecbb1
BLAKE2b-256 ea0adc3fa8daf8672b3bf8042fb0bc2928535b640401a112c4af90b7dd78a606

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page