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'
GARPIX_PROFITBASE_LAYOUT_PLAN_MIXIN = 'garpix_profitbase.models.empty_mixin.EmptyMixin'

Если вам необходимо, чтобы помещения отправлялись на дальнейшую обработку при удалении/добавлении/изменении акции, можно указать путь к функции.

# example:
GARPIX_PROFITBASE_RECALCULATE_NEW_PRICE = 'app.service.recalculate_new_price'

RECALCULATE_NEW_PRICE Нужно обратиться к администраторам 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.12.0.tar.gz (23.8 kB view details)

Uploaded Source

Built Distribution

garpix_profitbase-1.12.0-py3-none-any.whl (38.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: garpix_profitbase-1.12.0.tar.gz
  • Upload date:
  • Size: 23.8 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.15

File hashes

Hashes for garpix_profitbase-1.12.0.tar.gz
Algorithm Hash digest
SHA256 ee37e170b2d0d7fe83f9c961dcb63850c4efff2562bff12f0ec0e0291e72f5ea
MD5 b0a7228211c644c6af3a861f4c0ddb6b
BLAKE2b-256 76ca4b9d140153463b261d0fadec33319af64e3cd2d5aabaa9dda9e9f6b00b10

See more details on using hashes here.

File details

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

File metadata

  • Download URL: garpix_profitbase-1.12.0-py3-none-any.whl
  • Upload date:
  • Size: 38.4 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.15

File hashes

Hashes for garpix_profitbase-1.12.0-py3-none-any.whl
Algorithm Hash digest
SHA256 12a2665f953c5e490e5fcdb0038dd962d7936beac46d4857921eba26640c900b
MD5 4dbe9db3572cbccb84777645a9e64ea3
BLAKE2b-256 f55df807452d940ff8f4af64a991a2216bf8111e5466366cbd4563afc88e63d0

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