Skip to main content

django-sap

Starting

These instructions will allow you to install the library in your python project.

Current features

  • Send invoice reserve.
  • Send incoming payment.

Pre-requisitos

  • Python >= 3.7
  • Django >= 3
  • requests >= 2

Installation

  1. To get the latest stable release from PyPi:
pip install django-sap

or

  1. From a build
git clone https://gitlab.com/linets/ecommerce/oms/integrations/oms-sap
cd {{project}}
python setup.py sdist

and, install in your project django

pip install {{path}}/oms-sap/dist/{{tar.gz file}}
  1. Settings in django project
DJANGO_SAP = {
    'SAP': {
        'BASE_URL': '<SAP_BASE_URL>',
        'USERNAME': '<SAP_USERNAME>',
        'PASSWORD': '<SAP_PASSWORD>',
        'COMPANY_DB': '<SAP_COMPANY_DB>',
        'SERIE': '<SAP_SERIE>',
        'CARD_CODE': '<SAP_CARD_CODE>',
        'WAREHOUSE_CODE': '<SAP_WAREHOUSE_CODE>',
        'TAX_CODE': '<SAP_TAX_CODE>',
        'COSTING_CODE': '<SAP_COSTING_CODE>',
        'COSTING_CODE2': '<SAP_COSTING_CODE2>',
        'COSTING_CODE3': '<SAP_COSTING_CODE3>',
        'INDICATOR': '<SAP_INDICATOR>',
        'RESERVE_INVOICE': '<SAP_RESERVE_INVOICE>',
        'U_TIPO_PED_WMS': '<SAP_U_TIPO_PED_WMS>',
    }
}

Usage

  1. Send invoice reserve:
from sap.handler import SapHandler

handler = SapHandler()

default_data = handler.default_payload_invoice_reserve(instance)
response = handler.send_invoice_reserve(default_data)
  1. Send incoming payment:
from sap.handler import SapHandler

handler = SapHandler()

default_data = handler.default_payload_incoming_payment(instance)
response = handler.send_incoming_payment(default_data)

Metadata

Release files for django-sap 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-sap 1.0.0
File Size Uploaded Provenance Actions
django-sap-1.0.0.tar.gz 5.8 kB Without provenance Details for django-sap-1.0.0.tar.gz

Release files / django-sap-1.0.0.tar.gz

Download URL django-sap-1.0.0.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
6bca8918bf0b2abe73458d7c2b5da39659e55af1a970a9cc34a11873f5c8e29e
BLAKE2b-256 checksum
How to use checksums
1c60b12474b11a4c2cfc5612414a79b00f18374eb18a71c10de1503eb85be2c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.0

Security for django-sap 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page