Skip to main content

Core tools for use on projects by Oreum Industries

Project description

Oreum Core Tools oreum_core

This is an ever-growing package of core tools for use on client projects by Oreum Industries.

CI code style: black code style: flake8 code style: isort code style: interrogate code security: bandit GitHub Release publish PyPI


1. Description and Scope

This project uses a scientific Python stack, and enables & supports:

  • Exploratory data analysis via custom tabulations and plots using seaborn
  • Bayesian inferential modelling in R&D and Production via model helpers and custom distributions in pymc and arviz
  • Assorted data transformations, text cleaning, sql scripting and file handling

Technical Overview

  • Project began on 2021-01-01
  • The README.md is MacOS and POSIX oriented
  • See LICENCE.md for licensing and copyright details
  • See CONTRIBUTORS.md for list of contributors
  • This uses a logger named 'oreum_core', feel free to incorporate or ignore
  • Hosting:
    • Source code repo on GitHub
    • Source code release on GitHub
    • Package release on PyPi

Scope

  • This package is:

    • A work in progress (v0.y.z) and liable to breaking changes and inconveniences 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 unsolicitied contributions will not be accepted

2. Instructions to Create Dev Environment

For local development on MacOS

2.0 Pre-requisite installs via homebrew

  1. Install Homebrew, see instuctions at https://brew.sh
  2. Install git and direnv
$> brew update && upgrade
$> brew install git direnv

2.1 Git clone the repo

Assumes git and direnv already installed

$> git clone https://github.com/oreum-industries/oreum_core
$> cd oreum_core

Then allow direnv on MacOS to automatically run file .envrc upon directory open

2.2 Create virtual environment and install dev packages

Notes:

  • We use conda virtual envs provided by miniconda
  • We install packages with compound method handled by mamba (quicker than conda) for the main environment and packages, and pip` for selected packages that are handled better by pip and/or more up to date on pypi
  • Packages might not be the very latest because we want stability for pymc3 which is usually in a state of development flux
  • See cheat sheet of conda commands
  • The Makefile creates a dev env and will also download and preinstall Miniconda if not yet installed on your system.
$> make dev

2.3 Code Linting & Repo Control

2.3.1 Pre-commit

We 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 dev command (which itself calls pip install -e .[dev])
  • The pre-commit script will then run on your system upon git commit
  • See this project's .pre-commit-config.yaml for details

2.3.2 Github Actions

We use Github Actions aka Workflows to run a suite of automated tests for commits received at the origin (i.e. GitHub)

  • See Makefile for the CLI commands that are issued
  • See .github/workflows/* for workflow details


Copyright 2023 Oreum OÜ t/a Oreum Industries. All rights reserved. See LICENSE.md.

Oreum OÜ t/a Oreum Industries, Sepapaja 6, Tallinn, 15551, Estonia, reg.16122291, oreum.io


Oreum OÜ © 2023

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

oreum_core-0.4.18.tar.gz (73.0 kB view details)

Uploaded Source

Built Distribution

oreum_core-0.4.18-py3-none-any.whl (72.3 kB view details)

Uploaded Python 3

File details

Details for the file oreum_core-0.4.18.tar.gz.

File metadata

  • Download URL: oreum_core-0.4.18.tar.gz
  • Upload date:
  • Size: 73.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.28.2

File hashes

Hashes for oreum_core-0.4.18.tar.gz
Algorithm Hash digest
SHA256 62a0b9b6dc5671a95d586a9378c71bb24021babd7f223b97a5aadc69aff4d807
MD5 b3f6e287cee034c1cfe816bbd886daa2
BLAKE2b-256 4b8b83ab15af29986921e0f93f7a57bb2033352535d16788795a42dfa1903dbb

See more details on using hashes here.

File details

Details for the file oreum_core-0.4.18-py3-none-any.whl.

File metadata

File hashes

Hashes for oreum_core-0.4.18-py3-none-any.whl
Algorithm Hash digest
SHA256 ea1ba94f146a9dee95ec189377be2ef16b3b0d48aa24ff19aad2b790b517ca2a
MD5 51c63c9f7a255fe9269f38ec99449812
BLAKE2b-256 62f414c8d395c2ae43d45c4e5f5f3438f02e4dd9ac30606cb315994c49ce2444

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