fnapy


Namefnapy JSON
Version 1.4.1 PyPI version JSON
download
home_pagehttps://github.com/alexandriagroup/fnapy
SummaryA Python API for FNAC WebServices
upload_time2023-06-30 10:02:44
maintainer
docs_urlNone
authorTaurus Olson
requires_python
licenseMIT
keywords api fnac python webservices
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            =====
FNAPY
=====

.. image:: https://travis-ci.org/alexandriagroup/fnapy.svg?branch=master
    :target: https://travis-ci.org/alexandriagroup/fnapy


Description
===========

**fnapy** is a Python library using the FnacMarketPlace API to connect to your
own sales application to your FnacMarketplace seller account.  It uses the REST
WebService protocol to exchange data.


Development
===========

We use pipenv_ to manage the dependencies in a virtual environment.

* To run a shell in the virtual environment:

  pipenv shell


.. _pipenv: https://pipenv.readthedocs.io/en/latest/




Change log
==========

All notable changes to this project will be documented in this file.
The format is based on `Keep a Changelog`_ and this project adheres to
`Semantic Versioning`_.

[1.4.1] - 2023-06-30
--------------------
Fixed
*****
* `update_offers` and `query_offers` accept the parameter `time_to_ship`

[1.4.0] - 2023-06-29
--------------------
Changed
*******
* Allow `update_offers` to accept more code types when passing a dictionary

[1.3.0] - 2021-01-07
--------------------
Changed
*******
* Change the argument for `query_pricing` to allow to specify any combination of code types
  and keep compatibility with the old version (a list of EANs when the code type is not specified)

[1.2.0] - 2021-01-07
--------------------
Changed
*******
* Allow more code types in `query_pricing` (not only Ean)

Fixed
*****
* Update the sandbox URL

[1.1.10] - 2020-06-23
---------------------
Fixed
*****
* Fix the encoding (raw bytes returned in FNAC responses not encoded in UTF8?)

[1.1.9] - 2019-06-11
--------------------
Fixed
*****
* Fix the encoding

[1.1.8] - 2019-03-13
--------------------
Fixed
*****
* Fix some tests and fixtures

Changed
*******
* Allow to send tracking information in orders_update (by rafaurl)

[1.1.7] - 2018-11-06
--------------------
Fixed
*****
* Prevent possible vulnerabilities due to requests<=2.19.1 (CVE-2018-18074)

Changed
*******
* Use pipenv for development
* FnapyResponseError is raised for invalid responses

[1.1.6] - 2017-04-26
--------------------
Fixed
*****
* Fix error when the content of a response is an empty string

[1.1.5] - 2017-01-12
--------------------
Fixed
*****
* Fix another utf-8 problem (from miss encoding xml)

[1.1.4] - 2017-01-12
--------------------
Fixed
*****
* Fix ``to_unicode``.

[1.1.3] - 2016-12-28
--------------------
Fixed
*****
* Fix ``extract_text``.


[1.1.2] - 2016-10-24
--------------------
Changed
*******
* No more tests in the package
* Display a message when no EAN is passed to ``query_pricing``.


[1.1.1] - 2016-10-21
--------------------
Changed
*******
* Display a message when the limit of EANs is reached in ``query_pricing``.

Fixed
*****
* Fix ``parse_xml``


[1.1.0] - 2016-10-17
--------------------
Changed
*******
* Display a log rather than raise a ``FnapyPricingError`` when a list of EANs is
  provided


[1.0.1] - 2016-10-17
--------------------
Fixed
*****
* Fixed bug in ``FnapyConnection``: when ``credentials`` is provided and if
  sandbox is False, a ``FnapyConnectionError`` is raised.


[1.0.0] - 2016-10-14
--------------------
Added
*****
* Working with sandbox or real account is now possible

Changed
*******
* ``FnapyConnection`` now accepts credentials dictionary or sandbox boolean
* ``query_pricing`` now accepts a list of EANs


[0.6.0] - 2016-10-07
--------------------
Added
*****
* In the ``Query`` class, added the ``was`` method to handle the states (especially
  the states of orders)


[0.5.1] - 2016-10-04
--------------------
Removed
*******
* Really remove ``BeautifulSoup`` (bs4) from the dependencies


[0.5.0] - 2016-10-04
--------------------
Removed
*******
* Remove ``BeautifulSoup`` dependency

Changed
*******
* Improve the text extraction from XML


[0.4.3] - 2016-09-29
--------------------
Changed
*******
* In ``update_offers``, ``FnapyUpdateOfferError`` is raised if: 
    - ``offer_reference`` and at least one of the optional parameters (except
      ``product_reference``) are not provided
    - ``offers_data`` is empty


[0.4.2] - 2016-09-28
--------------------
Changed
*******
* Update documentation


[0.4.1] - 2016-09-28
--------------------
Added
*****
* Implement ``delete_offers``


[0.4.0] - 2016-09-27
--------------------
Changed
*******
* Use pricing_query (V2)
* Check the connection passed to ``FnapyManager`` is a ``FnapyConnection``
* Add a caveat in the README for the requests sent to the sandbox.
* Improve ``update_offers``

Fixed
*****
* Fix Unicode/string confusion bug in ``Response``


[0.2.0] - 2016-09-13
--------------------
Added
*****
* Support Python 3
* Implement the ``Query`` class to allow complex queries
* Added new classes for requests and responses 
  (respectively ``Request`` and ``Response``)

Changed
*******
* Update the documentation
* Make the manager authenticate when it is created.
* All the methods return a ``Response`` instance
* Store the XML requests as ``Request`` instances

Fixed
*****
* Fixed the packaging
* Fix minor things in the constructor of ``FnapyManager``


[0.1.0] - 2016-08-31
--------------------
Added
*****
* Create the ``fnapy`` package

.. _Keep a changelog: http://keepachangelog.com/ 
.. _Semantic Versioning: http://semver.org/

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/alexandriagroup/fnapy",
    "name": "fnapy",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "api,fnac,python,webservices",
    "author": "Taurus Olson",
    "author_email": "taurusolson@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/a6/42/078a30a504a872cf99ae033218f143a35bb099189c516561e4653c8a037a/fnapy-1.4.1.tar.gz",
    "platform": null,
    "description": "=====\nFNAPY\n=====\n\n.. image:: https://travis-ci.org/alexandriagroup/fnapy.svg?branch=master\n    :target: https://travis-ci.org/alexandriagroup/fnapy\n\n\nDescription\n===========\n\n**fnapy** is a Python library using the FnacMarketPlace API to connect to your\nown sales application to your FnacMarketplace seller account.  It uses the REST\nWebService protocol to exchange data.\n\n\nDevelopment\n===========\n\nWe use pipenv_ to manage the dependencies in a virtual environment.\n\n* To run a shell in the virtual environment:\n\n  pipenv shell\n\n\n.. _pipenv: https://pipenv.readthedocs.io/en/latest/\n\n\n\n\nChange log\n==========\n\nAll notable changes to this project will be documented in this file.\nThe format is based on `Keep a Changelog`_ and this project adheres to\n`Semantic Versioning`_.\n\n[1.4.1] - 2023-06-30\n--------------------\nFixed\n*****\n* `update_offers` and `query_offers` accept the parameter `time_to_ship`\n\n[1.4.0] - 2023-06-29\n--------------------\nChanged\n*******\n* Allow `update_offers` to accept more code types when passing a dictionary\n\n[1.3.0] - 2021-01-07\n--------------------\nChanged\n*******\n* Change the argument for `query_pricing` to allow to specify any combination of code types\n  and keep compatibility with the old version (a list of EANs when the code type is not specified)\n\n[1.2.0] - 2021-01-07\n--------------------\nChanged\n*******\n* Allow more code types in `query_pricing` (not only Ean)\n\nFixed\n*****\n* Update the sandbox URL\n\n[1.1.10] - 2020-06-23\n---------------------\nFixed\n*****\n* Fix the encoding (raw bytes returned in FNAC responses not encoded in UTF8?)\n\n[1.1.9] - 2019-06-11\n--------------------\nFixed\n*****\n* Fix the encoding\n\n[1.1.8] - 2019-03-13\n--------------------\nFixed\n*****\n* Fix some tests and fixtures\n\nChanged\n*******\n* Allow to send tracking information in orders_update (by rafaurl)\n\n[1.1.7] - 2018-11-06\n--------------------\nFixed\n*****\n* Prevent possible vulnerabilities due to requests<=2.19.1 (CVE-2018-18074)\n\nChanged\n*******\n* Use pipenv for development\n* FnapyResponseError is raised for invalid responses\n\n[1.1.6] - 2017-04-26\n--------------------\nFixed\n*****\n* Fix error when the content of a response is an empty string\n\n[1.1.5] - 2017-01-12\n--------------------\nFixed\n*****\n* Fix another utf-8 problem (from miss encoding xml)\n\n[1.1.4] - 2017-01-12\n--------------------\nFixed\n*****\n* Fix ``to_unicode``.\n\n[1.1.3] - 2016-12-28\n--------------------\nFixed\n*****\n* Fix ``extract_text``.\n\n\n[1.1.2] - 2016-10-24\n--------------------\nChanged\n*******\n* No more tests in the package\n* Display a message when no EAN is passed to ``query_pricing``.\n\n\n[1.1.1] - 2016-10-21\n--------------------\nChanged\n*******\n* Display a message when the limit of EANs is reached in ``query_pricing``.\n\nFixed\n*****\n* Fix ``parse_xml``\n\n\n[1.1.0] - 2016-10-17\n--------------------\nChanged\n*******\n* Display a log rather than raise a ``FnapyPricingError`` when a list of EANs is\n  provided\n\n\n[1.0.1] - 2016-10-17\n--------------------\nFixed\n*****\n* Fixed bug in ``FnapyConnection``: when ``credentials`` is provided and if\n  sandbox is False, a ``FnapyConnectionError`` is raised.\n\n\n[1.0.0] - 2016-10-14\n--------------------\nAdded\n*****\n* Working with sandbox or real account is now possible\n\nChanged\n*******\n* ``FnapyConnection`` now accepts credentials dictionary or sandbox boolean\n* ``query_pricing`` now accepts a list of EANs\n\n\n[0.6.0] - 2016-10-07\n--------------------\nAdded\n*****\n* In the ``Query`` class, added the ``was`` method to handle the states (especially\n  the states of orders)\n\n\n[0.5.1] - 2016-10-04\n--------------------\nRemoved\n*******\n* Really remove ``BeautifulSoup`` (bs4) from the dependencies\n\n\n[0.5.0] - 2016-10-04\n--------------------\nRemoved\n*******\n* Remove ``BeautifulSoup`` dependency\n\nChanged\n*******\n* Improve the text extraction from XML\n\n\n[0.4.3] - 2016-09-29\n--------------------\nChanged\n*******\n* In ``update_offers``, ``FnapyUpdateOfferError`` is raised if: \n    - ``offer_reference`` and at least one of the optional parameters (except\n      ``product_reference``) are not provided\n    - ``offers_data`` is empty\n\n\n[0.4.2] - 2016-09-28\n--------------------\nChanged\n*******\n* Update documentation\n\n\n[0.4.1] - 2016-09-28\n--------------------\nAdded\n*****\n* Implement ``delete_offers``\n\n\n[0.4.0] - 2016-09-27\n--------------------\nChanged\n*******\n* Use pricing_query (V2)\n* Check the connection passed to ``FnapyManager`` is a ``FnapyConnection``\n* Add a caveat in the README for the requests sent to the sandbox.\n* Improve ``update_offers``\n\nFixed\n*****\n* Fix Unicode/string confusion bug in ``Response``\n\n\n[0.2.0] - 2016-09-13\n--------------------\nAdded\n*****\n* Support Python 3\n* Implement the ``Query`` class to allow complex queries\n* Added new classes for requests and responses \n  (respectively ``Request`` and ``Response``)\n\nChanged\n*******\n* Update the documentation\n* Make the manager authenticate when it is created.\n* All the methods return a ``Response`` instance\n* Store the XML requests as ``Request`` instances\n\nFixed\n*****\n* Fixed the packaging\n* Fix minor things in the constructor of ``FnapyManager``\n\n\n[0.1.0] - 2016-08-31\n--------------------\nAdded\n*****\n* Create the ``fnapy`` package\n\n.. _Keep a changelog: http://keepachangelog.com/ \n.. _Semantic Versioning: http://semver.org/\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A Python API for FNAC WebServices",
    "version": "1.4.1",
    "project_urls": {
        "Homepage": "https://github.com/alexandriagroup/fnapy"
    },
    "split_keywords": [
        "api",
        "fnac",
        "python",
        "webservices"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "be7aa74df35b06c37696a0e9afa0713bb03b0893c786071ab81161b1124da5b3",
                "md5": "0d7850399530e797f4be1492a8f1aff2",
                "sha256": "004c3de54ec741f6fd2e6e8ad777b28c3d79fd61dbef596bf60a753e4b5502d8"
            },
            "downloads": -1,
            "filename": "fnapy-1.4.1-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0d7850399530e797f4be1492a8f1aff2",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 41225,
            "upload_time": "2023-06-30T10:02:42",
            "upload_time_iso_8601": "2023-06-30T10:02:42.326082Z",
            "url": "https://files.pythonhosted.org/packages/be/7a/a74df35b06c37696a0e9afa0713bb03b0893c786071ab81161b1124da5b3/fnapy-1.4.1-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a642078a30a504a872cf99ae033218f143a35bb099189c516561e4653c8a037a",
                "md5": "43edaf9f7a0573110f5cd8c7f25f6bf7",
                "sha256": "f1c247337aa64d3df21c4ac4745b67d831a151ae4ac741bd03d4aea55fa612c4"
            },
            "downloads": -1,
            "filename": "fnapy-1.4.1.tar.gz",
            "has_sig": false,
            "md5_digest": "43edaf9f7a0573110f5cd8c7f25f6bf7",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 26999,
            "upload_time": "2023-06-30T10:02:44",
            "upload_time_iso_8601": "2023-06-30T10:02:44.369438Z",
            "url": "https://files.pythonhosted.org/packages/a6/42/078a30a504a872cf99ae033218f143a35bb099189c516561e4653c8a037a/fnapy-1.4.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-06-30 10:02:44",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "alexandriagroup",
    "github_project": "fnapy",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": false,
    "tox": true,
    "lcname": "fnapy"
}
        
Elapsed time: 0.08836s