Skip to main content
Help us improve Python packaging – donate today!

FloraExpress API python client library. www.floraexpress.ru

Project Description

Version 0.7.52

FloraConcierge is worldwide flowers delivery service. We provide api services for
building your own flowers delivery e-commerce and submit users orders into our system.

All information at http://www.floraexpress.ru/

You can simple install floraconcierge api client into your django environment by adding middleware
`floraconcierge.middleware.ApiClientMiddleware` to your `MIDDLEWARE_CLASSES`.

Also you can add `floraconcierge.middleware.ApiObjectNotFound404` to your middlewares for automatic 404 pages when
api result raises ResultObjectNotFoundError.

Available settings
------------------

All settings used in middleware only, if you want manual initiation of api client object, you can do it yourself.

* `FLORACONCIERGE_API_ID` Required. Your application ID.

* `FLORACONCIERGE_API_SECRET` Required. Your application secret.

* `FLORACONCIERGE_API_INIT_ENV` Optional. You can setup custom init function for env setup. Function takes params
`client, request, restored` where client is ApiClient instance, request is django request object and restored is flag
variable indicating client env was restored from request session.

* `FLORACONCIERGE_API_INIT_CLIENT` Optional. Custom api client initiation function. By default middleware initiate
client with function `floraconcierge.middleware.initialize_apiclient`. You can se your own function. Function take
only one param `request`.

* `FLORACONCIERGE_PRODUCT_IMAGES` Optional. Can be used to customize product images urls by this dict. Generated urls added automatically to
product `urls` field. You can get product image url with `product.urls['thumb']` or in Django Template by calling
`{{ product.urls.thumb }}`. Available default sizes: default, small, middle, big, thumb_100, thumb_250, thumb_500.

* `FLORACONCIERGE_CHAT_SECRET` Optional. Secret key for chat.

Django debug toolbar panel
--------------------------

Also available debug panel for django.

You can add `floraconcierge.panels.FloraConciergeRequests` to django debug panels settings `DEBUG_TOOLBAR_PANELS`.

And you must add `floraconcierge` to your `INSTALLED_APPS`.

Collection methods
------------------

Now you can search throught your result collections with find/findall methods.

Request cache middleware
------------------------

FloraConcierge api provides simple request lifetime cache object for caching offen queried data on page. This cache
cleares automatically every next request.

You can add `floraconcierge.middleware.RequestCacheMiddleware` to your `MIDDLEWARE_CLASSES` and get request cache
instance with function `floraconcierge.cache.get_request_cache()`.

You must inherit your cache object from `floraconcierge.cache.RequestCache` and setup it via `FLORACONCIERGE_CACHE_CLASS`.

ApiAuth authentication backend
------------------------------

You can add support for logging in users on your site with api by adding `floraconcierge.apiauth` to your `INSTALLED_APPS`.

After application installation to your apps, you must add `floraconcierge.apiauth.backends.FloraConciergeBackend` to
your `AUTHENTICATION_BACKENDS`.

After this users will can login on your site throught floraconcierge api by standart django authentication framework.

Release history Release notifications

This version
History Node

0.7.52

History Node

0.7.51

History Node

0.7.50

History Node

0.7.49

History Node

0.7.48

History Node

0.7.47

History Node

0.7.46

History Node

0.7.45

History Node

0.7.44

History Node

0.7.43

History Node

0.7.42

History Node

0.7.41

History Node

0.7.40

History Node

0.7.39

History Node

0.7.38

History Node

0.7.37

History Node

0.7.36

History Node

0.7.35

History Node

0.7.34

History Node

0.7.33

History Node

0.7.32

History Node

0.7.31

History Node

0.7.30

History Node

0.7.29

History Node

0.7.28

History Node

0.7.27

History Node

0.7.26

History Node

0.7.25

History Node

0.7.24

History Node

0.7.23

History Node

0.7.22

History Node

0.7.21

History Node

0.7.20

History Node

0.7.19

History Node

0.7.18

History Node

0.7.17

History Node

0.7.16

History Node

0.7.15

History Node

0.7.14

History Node

0.7.12

History Node

0.7.11

History Node

0.7.10

History Node

0.7.9

History Node

0.7.8

History Node

0.7.7

History Node

0.7.6

History Node

0.7.5

History Node

0.7.4

History Node

0.7.3

History Node

0.7.2

History Node

0.7.1

History Node

0.7.0

History Node

0.6.7

History Node

0.6.2

History Node

0.6.1

History Node

0.6.0

History Node

0.5.6

History Node

0.5.5

History Node

0.5.4

History Node

0.5.3

History Node

0.5.2

History Node

0.5.1

History Node

0.5.0

History Node

0.4.8

History Node

0.4.7

History Node

0.4.6

History Node

0.4.5

History Node

0.4.4

History Node

0.4.3

History Node

0.4.2

History Node

0.4.1

History Node

0.4.0

History Node

0.3.0

History Node

0.2.8

History Node

0.2.7

History Node

0.2.6

History Node

0.2.5

History Node

0.2.4

History Node

0.2.3

History Node

0.2.2

History Node

0.2.1

History Node

0.2.0

History Node

0.1.16

History Node

0.1.15

History Node

0.1.14

History Node

0.1.13

History Node

0.1.12

History Node

0.1.11

History Node

0.1.9

History Node

0.1.8

History Node

0.1.7

History Node

0.1.6

History Node

0.1.5

History Node

0.1.4

History Node

0.1.3b

History Node

0.1.2b

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
floraconcierge-client-0.7.52.tar.gz (23.9 kB) Copy SHA256 hash SHA256 Source None Nov 14, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page