Skip to main content

Computations and Utility Functions for Database/Relation Functional Dependencies

Project description

DB-FDs

DB-FDs is a simple package containing utility functions to work with Functional Dependencies for Database design.

Installation

You can install the package from PyPI using pip:

python3 -m pip install db-fds

or simply,

pip3 install db-fds

Note: The 3 in either command may be omitted if your system uses Python 3 by default.

The package is supported on Python 3.0 and above.

How to use

After installation, import it into a Python program with

from db_fds import fdfuncs

and use it like

fdfuncs.Symbol("")

or

from db_fds.fdfuncs import *

Symbol("")

Classes

The package comes with 2 classes to create objects to work with: Symbol and FunctionalDependency. Use Symbol to represent an attribute in a relation, and create FunctionalDependency objects between 2 or more Symbols. See the class and constructor docstrings for details.

Functions available

Here is a list of currently available functions. Use the docstrings per method to see how to use it.

  • all_subset_closures
  • canonical_cover
  • combinations
  • compute_closure
  • find_keys
  • find_superkeys
  • get_augmented
  • get_reflexive
  • get_transitive
  • make_decomposed
  • make_union
  • minimal_cover
  • non_trivial_n_decomposed

Planned future additions

  • BCNF and 3NF checks
  • Normalization functions
  • Checking for lossless decompositions

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

db_fds-0.3.0.tar.gz (12.7 kB view details)

Uploaded Source

Built Distribution

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

db_fds-0.3.0-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file db_fds-0.3.0.tar.gz.

File metadata

  • Download URL: db_fds-0.3.0.tar.gz
  • Upload date:
  • Size: 12.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.7

File hashes

Hashes for db_fds-0.3.0.tar.gz
Algorithm Hash digest
SHA256 08367656f13718b75397514804bf204b5c49219ab41f2b56a3f0bff318c485a7
MD5 b1a88f1d60d6b6c493da67f0d720577b
BLAKE2b-256 fef2f4a965441ee6bae02c930ed94871975e231afa44151da79a6c83a8eb5716

See more details on using hashes here.

File details

Details for the file db_fds-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: db_fds-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 11.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.7

File hashes

Hashes for db_fds-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6a27265c10ad4b40945aff23bb35d48de1087dce166d063f19620304faea573d
MD5 a6a46d6da77ac8b1c0f34321888e1ce7
BLAKE2b-256 16499d854c2a31b17bafb57ad26b85924a722903079890783af0345abfd773b7

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