This is an ever-growing package of core tools for use on client projects by Oreum Industries.
- Provides an essential workflow for data curation, EDA, basic ML using the core
scientific Python stack incl.
numpy,scipy,matplotlib,seaborn,pandas,scikit-learn,umap-learn - Optionally provides an advanced Bayesian modeling workflow in R&D and
Production using a leading probabilistic programming stack incl.
pymc,pytensor,arviz(dopip install oreum_core[pymc]) - Optionally enables a generalist black-box ML workflow in R&D using a leading
Gradient Boosted Trees stack incl.
catboost,xgboost,optuna,shap(dopip install oreum_core[tree]) - Also includes several utilities for text cleaning, sql scripting, file handling
This package is:
- A work in progress (v0.y.z) and liable to breaking changes and inconvenience to the user
- Solely designed for ease of use and rapid development by employees of Oreum Industries, and selected clients with guidance
This package is not:
- Intended for public usage and will not be supported for public usage
- Intended for contributions by anyone not an employee of Oreum Industries, and unsolicited contributions will not be accepted.
- Project began on 2021-01-01
- The
README.mdis MacOS and POSIX oriented - See
LICENCE.mdfor licensing and copyright details - See
pyproject.tomlfor various package details - This uses a logger named
'oreum_core', feel free to incorporate or ignore see__init__.pyfor details - Hosting:
- Implementation:
- This project is enabled by a modern, open-source, advanced software stack for data curation, statistical analysis and predictive modelling
- Specifically we use an open-source Python-based suite of software packages, the core of which is often known as the Scientific Python stack, supported by NumFOCUS
- Once installed (see section 2), see
LICENSES_THIRD_PARTY.mdfor full details of all package licences
- Environments: this project was originally developed on a Macbook Air M2
(Apple Silicon ARM64) running MacOS 15.5 (Sequoia) using
osx-arm64Accelerate
For local development on MacOS
- Install Homebrew, see instructions at https://brew.sh
- Install
direnv,git,git-lfs,graphviz,tad,zsh
$> brew update && upgrade
$> brew install direnv git git-lfs graphviz tad zshAssumes direnv, git, git-lfs and zsh installed as above
$> git clone https://github.com/oreum-industries/oreum_core
$> cd oreum_coreThen allow direnv on MacOS to autorun file .envrc upon directory open
Notes:
- We use
condavirtual envs controlled bymamba(quicker thanconda) - We install packages using
miniforge(sourced from theconda-forgerepo) wherever possible and only usepipfor packages that are handled better bypipand/or more up-to-date on pypi - Packages might not be the very latest because we want stability for
pymcwhich is usually in a state of development flux - See cheat sheet of conda commands
- The
Makefilecreates a dev env and will also download and preinstallminiforgeif not yet installed on your system
From the dir above oreum_core/ project dir:
$> make -C oreum_core/ devThis will also create some files to help confirm / diagnose successful installation:
dev/install_log/blas_info.txtfor theBLAS MKLinstallation fornumpydev/install_log/pipdeptree[_rev].txtlists installed package deps (and reversed)LICENSES_THIRD_PARTY.mddetails the license for each package used
From the dir above oreum_core/ project dir:
$> make -C oreum_core/ test-dev-envThis will also add files dev/install_log/[numpy|scipy].txt which detail
successful installation (or not) for numpy, scipy
From the dir above oreum_core/ project dir:
$> make -C oreum_core/ uninstall-envWe use pre-commit to run a suite of automated tests for code linting & quality control and repo control prior to commit on local development machines.
- Precommit is already installed by the
make devcommand (which itself callspip install -e .[dev]) - The pre-commit script will then run on your system upon
git commit - See this project's
.pre-commit-config.yamlfor details
We use Github Actions aka Github Workflows to run:
- A suite of automated tests for commits received at the origin (i.e. GitHub)
- Publishing to PyPi upon creating a GH Release
- See
Makefilefor the CLI commands that are issued - See
.github/workflows/*for workflow details
We use Git LFS to store any large files alongside the repo. This can be useful to replicate exact environments during development and/or for automated tests
- This requires a local machine install (see Getting Started)
- See
.gitattributesfor details
Some notes to help configure local development environment
[user]
name = <YOUR NAME>
email = <YOUR EMAIL ADDRESS>We strongly recommend using VSCode for all
development on local machines, and this is a hard pre-requisite to use
the .devcontainer environment (see section 3)
This repo includes relevant lightweight project control and config in:
oreum_core.code-workspace
.vscode/extensions.json
.vscode/settings.jsonEven when writing R&D code, we strive to meet and exceed (even define) best practices for code quality, documentation and reproducibility for modern data science projects.
We use a suite of automated tools to check and enforce code quality. We indicate the relevant shields at the top of this README. See section 1.4 above for how this is enforced at precommit on developer machines and upon PR at the origin as part of our CI process, prior to master branch merge.
These include:
ruff- extremely fast standardised linting and formatting, which replacesblack,flake8,isortinterrogate- ensure complete Python docstringsbandit- test for common Python security issues
We also run a suite of general tests pre-packaged in
precommit.
Copyright 2025 Oreum FZCO t/a Oreum Industries. All rights reserved. Oreum FZCO, IFZA, Dubai Silicon Oasis, Dubai, UAE, reg. 25515 oreum.io
Oreum Industries © 2025