The openIMIS Backend Core reference module.
Project description
| :bomb: Disclaimer |
| --- |
| This repository currently only contains bootsrapping material for the modularized openIMIS. Don't use it (or even connect it) to a production database. |
# openIMIS Backend Core reference module
This repository holds the files of the openIMIS Backend Core reference module.
It provides following basis entities:
* User and Language
* UUIDModel: abstract model for new entities (and later on migrated entities), enforcing the use of UUID is identifier
* ModuleConfiguration: a generic entity each module should use to let (admin)users providing the expected configuration (via a central management console).
Note:
openimis-be-core itself uses the ModuleConfiguration to define which calendar to 'mount'.
For example, to mount the nepali calendar (instead of the default gregorian one), set the following keys in the 'core' ModuleConfigyration:
```
{
"calendar_module": ".calendars.ne_calendar",
"datetime_module": ".datetimes.ne_datetime",
}
```
The core also exposes the configured calendar to be used instead of the standard python (gregorian) calendar. This calendar is dedicated to be switchable (and today openIMIS supports gregorian and nepali calendars) and provides helpers method to perform date calculations according to the configured calendar (add months, years,....)
Ensure you profit from this feature by importing calendar and datetime from core instead of the python standard ones:
```
from core import calendar, datetime
```
Your models should also use the provided custom fields:
```
from core.fields import DateField, DateTimeField
```
| --- |
| This repository currently only contains bootsrapping material for the modularized openIMIS. Don't use it (or even connect it) to a production database. |
# openIMIS Backend Core reference module
This repository holds the files of the openIMIS Backend Core reference module.
It provides following basis entities:
* User and Language
* UUIDModel: abstract model for new entities (and later on migrated entities), enforcing the use of UUID is identifier
* ModuleConfiguration: a generic entity each module should use to let (admin)users providing the expected configuration (via a central management console).
Note:
openimis-be-core itself uses the ModuleConfiguration to define which calendar to 'mount'.
For example, to mount the nepali calendar (instead of the default gregorian one), set the following keys in the 'core' ModuleConfigyration:
```
{
"calendar_module": ".calendars.ne_calendar",
"datetime_module": ".datetimes.ne_datetime",
}
```
The core also exposes the configured calendar to be used instead of the standard python (gregorian) calendar. This calendar is dedicated to be switchable (and today openIMIS supports gregorian and nepali calendars) and provides helpers method to perform date calculations according to the configured calendar (add months, years,....)
Ensure you profit from this feature by importing calendar and datetime from core instead of the python standard ones:
```
from core import calendar, datetime
```
Your models should also use the provided custom fields:
```
from core.fields import DateField, DateTimeField
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file openimis_be_core-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: openimis_be_core-0.0.8-py3-none-any.whl
- Upload date:
- Size: 23.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/40.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb39063809d708f7676d2cc1df1b5596daff95485f44a64bbf883220181348cf |
|
MD5 | dac75cfd3e13ad2ebfb6806e89f27418 |
|
BLAKE2b-256 | d7892c04d75e265d9efb5e83222490c895f81e59c6d51364c6e62032a610f27f |