Skip to main content

A SAP API for SIFAC

Project description

Code Health

Django-SIFAC is a API to interact with the financial repository called SIFAC and deployed in many french universities. It is not really a django specific app for SIFAC but it’s easy to use with Django. For the moment, only data on cost centers, eotp, funds and functional domains are available for reading, but not for writing.

Installation

To install the saprfc library, please refer to this documentation. If you place the rcfsdk headers in the right place, you can run this command

pip install django-sifac

Integrate with your django app

You need to add this lines to the settings file of your django project

SIFAC = {
    'HOST': '' #  Hostname to connect (i.e sap.host.com)
    'SYSNR': '' # System number to connect to (i.e '00')
    'CLIENT': '' # Client number logged in (i.e '500')
    'USER': '' # Username
    'PASSWORD': '' # Password
}

If you want to use the SAP models filter application, you must activate the administration interface in the settings file of your project and add the sifac application in your INSTALLED_APPS setting

INSTALLED_APPS = (
    ...,
    django.contrib.admin,
    ...,
    sifac
)

To create tables needed by the sifac application, syncing your database is necessary

$> python manage.py syncdb

Basic usage

If you’re using filters and pattern for your SAP Models (or not), it is really easy to use the library to retrieve filtered data. Filters and patterns for each SAP models can be created or updated in the admnistration interface

from sifac import service

sifac_service = SifacService()
cost_centers = sifac_service.get_filtered_cost_center_list()

Launching tests

To launch tests, you should install django, saprfc and packages in file requirements-test.txt

$> python run_tests.py sifac

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

django-sifac-0.3.2.tar.gz (13.2 kB view details)

Uploaded Source

File details

Details for the file django-sifac-0.3.2.tar.gz.

File metadata

File hashes

Hashes for django-sifac-0.3.2.tar.gz
Algorithm Hash digest
SHA256 ecfdade814a7919d6fb12d367d41b607682c1511d4b607a709839e903a7268bb
MD5 9dc7a161daa7ed27fd508ae38d084c05
BLAKE2b-256 55b8e8ae36b32a2cd8263dec8dc4044528f9ed43947802fcc15437bba6ddbd4a

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