MCPcopy Index your code
hub / github.com/andres-torres-marroquin/django-dropbox

github.com/andres-torres-marroquin/django-dropbox @0.1.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release 0.1.2 ↗ · + Follow
32 symbols 135 edges 19 files 6 documented · 19% updated 8y ago0.1.2 · 2017-07-16★ 897 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

django-dropbox

Version 0.1.2

What

django-dropbox is a Django App that contains a Django Storage which uses Dropbox.

Installing

First of all

pip install django-dropbox

Add it to your Django Project

INSTALLED_APPS on settings.py

INSTALLED_APPS = (
    ...
    'django_dropbox',
    ...
)

additionally you must need to set the next settings:

DROPBOX_ACCESS_TOKEN = 'xxx'

if you don't have DROPBOX_ACCESS_TOKEN you can create one after creating a Dropbox app at Dropbox for Developers. If you have your Dropbox App key and App secret, you can set DROPBOX_CONSUMER_KEY and DROPBOX_CONSUMER_SECRET settings in settings.py, then run:

$ python manage.py get_dropbox_token

And follow up on screen instructions, finally set the and DROPBOX_ACCESS_TOKEN_SECRET in settings.py

Contributing

When contributing, please follow these steps:

  • Clone the repo and make your changes.
  • Make sure your code has test cases written against it.
  • Make sure all the tests pass.
  • Lint your code with Flake8.
  • Add your name to the list of contributers.
  • Submit a Pull Request.

Tests

Tests are written following Django best practices. You can run them all easily using the example django_project.

$ cd django_dropbox_project
$ python manage.py test --settings=settings

To check the unit tests coverage you can:

$ pip install coverage
$ cd django_dropbox_project
$ coverage run manage.py test --settings=settings
$ coverage report -m

Core symbols most depended-on inside this repo

exists
called by 14
django_dropbox/storage.py
_get_abs_path
called by 6
django_dropbox/storage.py
delete
called by 6
django_dropbox/storage.py
write
called by 6
django_dropbox/storage.py
close
called by 4
django_dropbox/storage.py
read
called by 2
django_dropbox/storage.py
get_packages
called by 1
setup.py
listdir
called by 1
django_dropbox/storage.py

Shape

Method 23
Class 7
Function 2

Languages

Python100%

Modules by API surface

django_dropbox/storage.py17 symbols
django_dropbox/tests.py6 symbols
django_dropbox_project/dropbox_testing/tests.py2 symbols
django_dropbox_project/dropbox_testing/admin.py2 symbols
django_dropbox/management/commands/get_dropbox_token.py2 symbols
setup.py1 symbols
django_dropbox_project/dropbox_testing/models.py1 symbols
django_dropbox/__init__.py1 symbols

For agents

$ claude mcp add django-dropbox \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact