No project description provided
Project description
Garpix ProfitBase
Пакет интеграции с profitbase.ru
Быстрый старт
Установка:
pip install garpix_profitbase
Добавьте garpix_profitbase в INSTALLED_APPS:
# settings.py
INSTALLED_APPS = [
# ...
'garpix_profitbase',
]
Также, добавьте переменные окружения (файл .env) значениями, полученными от profitbase.ru:
PROFITBASE_API_KEY=app-?????????
PROFITBASE_CLIENT_NAME=???????
PROFITBASE_COMPANY_ID=????
ENABLE_GARPIX_AUTH=False
Также, в settings.py необходимо добавить миксины:
GARPIX_PROFITBASE_CITY_MIXIN = 'garpix_profitbase.models.empty_mixin.EmptyMixin'
GARPIX_PROFITBASE_HOUSE_MIXIN = 'garpix_page.models.BasePage'
GARPIX_PROFITBASE_HOUSE_FLOOR_MIXIN = 'garpix_profitbase.models.empty_mixin.EmptyMixin'
GARPIX_PROFITBASE_HOUSE_SECTION_MIXIN = 'garpix_profitbase.models.empty_mixin.EmptyMixin'
GARPIX_PROFITBASE_PROJECT_MIXIN = 'garpix_page.models.BasePage'
GARPIX_PROFITBASE_PROPERTY_MIXIN = 'garpix_page.models.BasePage'
GARPIX_PROFITBASE_SPECIAL_OFFER_MIXIN = 'garpix_profitbase.models.empty_mixin.EmptyMixin'
GARPIX_PROFITBASE_LAYOUT_PLAN_MIXIN = 'garpix_profitbase.models.empty_mixin.EmptyMixin'
Нужно обратиться к администраторам profitbase.ru чтоб они добавили ваш ip в белый список.
Использование
Для получения данных от profitbase.ru используйте следующую manage.py команду:
python3 backend/manage.py profitbase_update
Changelog
Смотри CHANGELOG.md.
Contributing
Смотри CONTRIBUTING.md.
License
Developed by Garpix / https://garpix.com
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
garpix_profitbase-1.9.0.tar.gz
(14.9 kB
view details)
Built Distribution
File details
Details for the file garpix_profitbase-1.9.0.tar.gz
.
File metadata
- Download URL: garpix_profitbase-1.9.0.tar.gz
- Upload date:
- Size: 14.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac915160acef57f7f3c08f90a686c7d3d416a8b25d57c4e56fcdecdb1ef1d35c |
|
MD5 | 6906b6fecb9eaa49c904934a6d542310 |
|
BLAKE2b-256 | 3ba21aa6cb1a295079eec6907d736a4fd2b9d96f8eae095e6c8f1517a78b818d |
File details
Details for the file garpix_profitbase-1.9.0-py3-none-any.whl
.
File metadata
- Download URL: garpix_profitbase-1.9.0-py3-none-any.whl
- Upload date:
- Size: 27.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 618dc2c0e64a43431e6763e7e8b401c7b159ac96619b4232638281ee99ed26b8 |
|
MD5 | ddb8dce8cfdb789203471c880e577aff |
|
BLAKE2b-256 | aea6fdabb4bd014f4b9c75e93482831a12572df92d07894695c4dc744c42753f |