Skip to main content

It's data based!

Project description

Limber Timber

It's data based!


status PyPI version Python Tests Last Commit License

pip install limber-timber

Overview

I am writing the migration system I always wanted but did not exist, until now. Read the docs to learn more!

Docs

https://Wopple.github.io/limber-timber

Roadmap

These are listed in rough priority order.

  • ✅ CLI
  • ✅ Publish to PyPI
  • ✅ Templating
  • ➡️ Documentation
  • ➡️ Unit Tests
    • ➡️ Templating
  • ✅ JSON Schema
  • ✅ In-memory Database
  • ✅ In-memory Metadata
  • ➡️ Big Query Database
    • ➡️ Create Snapshot Table
    • ➡️ Create Table Clone
  • ✅ Big Query Metadata
  • ✅ Database Adoption
  • ✅ Raise Unsupported Operations
  • ✅ Scan Topologically with Foreign Keys
  • ✅ Database Specific Validation
  • ➡️ Github Actions
    • ➡️ Release
  • ➡️ Grouped Operation Application
    • To reduce round trips with the backend and reduce migration time
  • ➡️ Expand Grouped Operations
    • To handle complex operations that do not have atomic support in the backend
  • ✅ Minimize Scan Output
  • ✅ Arbitrary DML SQL Migrations
  • ➡️ File System Metadata
  • ➡️ SQLite Database
  • ➡️ SQLite Metadata
  • ➡️ Postgres Database
  • ➡️ Postgres Metadata
  • ➡️ MySQL Database
  • ➡️ MySQL Metadata
  • ➡️ Optional Backend Installation
    • To minimize dependency bloat

Contribution

If you want to contribute, read the docs and check out the roadmap. I will only accept contributions if:

  1. I agree with the design decisions
  2. The code style matches the existing code
  3. Unit tests are included (if needed)

If you have any questions, you can reach out to me on discord.

Design Principles

  • The default behavior is safe and automated
  • The behavior can be configured to be fast and efficient
  • High flexibility to support future and unknown use-cases
  • Prefer supporting narrow use cases well rather than broad use cases poorly
  • Apply heavy importance to the Single Responsibility Principle
  • Put complex logic in easily testable functions

Code Style

  • 4-space indentation
  • Prefer single quotes
    • exceptions
      • pyproject.toml
      • docstrings
      • nested f-strings
  • Use newlines to visually separate blocks and conceptual groups of code
  • Include explicit else blocks
    • exceptions
      • assertive if-statements
  • Naming
    • balance brevity and clarity: say exactly what is needed
    • do not restate what is already clear from the context
  • Comments
    • dos
      • clarify confusing code
      • explain the 'why'
      • first try to explain with the code instead of a comment
    • do nots
      • make assumptions about the reader
      • state that which is explained by the nearby code
      • cover up for poor code
      • just because
  • Multiline strings use concatenated single line strings
    • exceptions
      • docstrings
  • No from my.module import *
    • instead: from my import module as md

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

limber_timber-0.4.0.tar.gz (41.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

limber_timber-0.4.0-py3-none-any.whl (54.0 kB view details)

Uploaded Python 3

File details

Details for the file limber_timber-0.4.0.tar.gz.

File metadata

  • Download URL: limber_timber-0.4.0.tar.gz
  • Upload date:
  • Size: 41.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.11.9 Darwin/24.6.0

File hashes

Hashes for limber_timber-0.4.0.tar.gz
Algorithm Hash digest
SHA256 328b7d2717f4f21cfb45c4555081036b469e1cd44deed03cf3e70558ea07bc65
MD5 781743e633a53f78f2118d7c7becca6d
BLAKE2b-256 f461684d924133578b875363bf8d26fb2d07c9d9c58f4af872ef82d815561864

See more details on using hashes here.

File details

Details for the file limber_timber-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: limber_timber-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 54.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.11.9 Darwin/24.6.0

File hashes

Hashes for limber_timber-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 28d50d127d2c6a59d8dd291835cc4746b5f289e5590340692cc745b93d4c97ec
MD5 eb0bd48e91fc8daa6b0b8d58de83f7d4
BLAKE2b-256 0870fea9f127767bd0d4172a9c922f2314be0acd3bcaffd8bdffc5c47bada450

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page