معرفی شرکت ها


django-doclib-1.2.2


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

A Document library
ویژگی مقدار
سیستم عامل -
نام فایل django-doclib-1.2.2
نام django-doclib
نسخه کتابخانه 1.2.2
نگهدارنده []
ایمیل نگهدارنده []
نویسنده -
ایمیل نویسنده -
آدرس صفحه اصلی https://github.com/Pratyush1606/doclib
آدرس اینترنتی https://pypi.org/project/django-doclib/
مجوز MIT
# DOCLIB A document library that integrates with multiple data sources (like digiLocker, Google Drive, local storage etc.) and storage services (like S3 and Google Cloud Storage) and uploads data from these data sources to the chosen storage service. It can be integrated with any Django Project. ## **TECHNOLOGIES** * [Python](https://www.python.org/) * [Django](https://www.djangoproject.com/): Django builds better web apps with less code * [DRF](www.django-rest-framework.org/): A powerful and flexible toolkit for building Rest APIs with Django * Frontend: HTML5, Bootstrap, JS * Architecture of the Library ![Architecture](https://drive.google.com/uc?export=view&id=1klItD0DEG-0b9NExLGSS_QUkOwYDNs8v) ## **CURRENT SUPPORTED SERVICES** ### DATA SOURCES * [Google Drive](https://www.google.com/intl/en_in/drive/) * Local Storage * Digimocker (mock of [Digilocker](https://digilocker.gov.in/)) ### STORAGE SERVICES * [Amazon S3](https://aws.amazon.com/s3/) * [Google Cloud Storage](https://cloud.google.com/storage) ## **QUICKSTART** Install the package ```py pip install django-doclib ``` ### Before running the server, make sure ```Directory``` looks like ``` demo_proj ├── credentials_dir | └── credentials_gcs.json ├── media └── django_project_folder ├── settings.py ├── asgi.py ├── .env ├── wsgi.py └── urls.py ``` ### Follow the steps 1. Add ``doclib`` and ``rest_framework`` to your INSTALLED_APPS setting like this INSTALLED_APPS = [ ... 'doclib', 'rest_framework', ] 2. Include the doclib URLconf in your project urls.py like this ``path('doclib/', include('doclib.urls'))`` 3. Provide ``MEDIA_ROOT`` in your project settings.py, something like this ``MEDIA_ROOT = os.path.join(BASE_DIR, 'media')`` 4. For integrating with Google Drive * Make a directory with name ``credentials_dir`` at the project root level * Put the google api client secret json file with name as ``credentials_gcs.json`` in ``credentials_dir`` directory For getting the API and Developer keys, visit [here](https://cloud.google.com/docs/authentication/production#create_service_account). * Make a ``.env`` file in the project folder directory (at the project settings.py level) and put the Browser API keys obtained from the Google API Console like this (don’t use quotations around strings) ``DEVELOPER_KEY``=################## ``CLIENT_ID``=################## ``APP_ID``=################## 5. For setting the environment variables, follow this * Add these below lines in the project ``settings.py`` ```py import environ env = environ.Env() environ.Env.read_env() ``` * For setting the above API Keys put these below lines in the ``settings.py`` ```py DEVELOPER_KEY = env("DEVELOPER_KEY") CLIENT_ID = env("CLIENT_ID") APP_ID = env("APP_ID") ``` 6. Run ``python manage.py migrate`` to create the doclib models. 7. Start the development server and visit ``http://localhost:8000/doclib/`` to access the doclib.


نیازمندی

مقدار نام
==3.3.1 asgiref
==1.17.42 boto3
==1.20.42 botocore
==4.2.1 cachetools
==2020.12.5 certifi
==1.14.5 cffi
==4.0.0 chardet
==3.1.7 Django
==3.12.4 djangorestframework
==0.4.5 django-environ
==1.26.3 google-api-core
==2.1.0 google-api-python-client
==1.28.0 google-auth
==0.1.0 google-auth-httplib2
==0.4.4 google-auth-oauthlib
==1.6.0 google-cloud-core
==1.37.0 google-cloud-storage
==1.1.2 google-crc32c
==1.2.0 google-resumable-media
==1.53.0 googleapis-common-protos
==0.19.1 httplib2
==2.10 idna
==0.10.0 jmespath
==3.1.0 oauthlib
==20.9 packaging
==3.15.6 protobuf
==0.4.8 pyasn1
==0.2.8 pyasn1-modules
==2.20 pycparser
==2.4.7 pyparsing
==2.8.1 python-dateutil
==2021.1 pytz
==2.25.1 requests
==1.3.0 requests-oauthlib
==4.7.2 rsa
==0.3.6 s3transfer
==1.15.0 six
==0.4.1 sqlparse
==3.0.1 uritemplate
==1.26.4 urllib3


نحوه نصب


نصب پکیج whl django-doclib-1.2.2:

    pip install django-doclib-1.2.2.whl


نصب پکیج tar.gz django-doclib-1.2.2:

    pip install django-doclib-1.2.2.tar.gz