Skip to main content

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'

Нужно обратиться к администраторам profitbase.ru чтоб они добавили ваш ip в белый список.

Использование

Для получения данных от profitbase.ru используйте следующую manage.py команду:

python3 backend/manage.py profitbase_update

Changelog

Смотри CHANGELOG.md.

Contributing

Смотри CONTRIBUTING.md.

License

MIT


Developed by Garpix / https://garpix.com

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

garpix_profitbase-1.0.0.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

garpix_profitbase-1.0.0-py3-none-any.whl (21.7 kB view details)

Uploaded Python 3

File details

Details for the file garpix_profitbase-1.0.0.tar.gz.

File metadata

  • Download URL: garpix_profitbase-1.0.0.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

File hashes

Hashes for garpix_profitbase-1.0.0.tar.gz
Algorithm Hash digest
SHA256 c4cbb388e2f6f45bafbd4765816805fc509c65ed96785db900c0ad273983c140
MD5 d147d5751c0ce05eb6d190adc5264914
BLAKE2b-256 b0a38fe452ac7e96ab1a52ea0fd00f1799480cfb82ea381ee7051c0c4d705812

See more details on using hashes here.

File details

Details for the file garpix_profitbase-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: garpix_profitbase-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 21.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

File hashes

Hashes for garpix_profitbase-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9c8692e9e54cac1ec6d8bb933e6078fac33b42acfa37fa161b41848bf9a3afa7
MD5 9dd78ac7d31ac54a414c37afe1050594
BLAKE2b-256 4ccae60d2481631487b3b189e6dbd3d670ad2229436dcdfdb3045f6440916735

See more details on using hashes here.

Supported by

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