Skip to main content

The seano command-line interface

Project description

Seano

Seano (a sea of notes) is a primitive, lightweight database that automatically associates records with the Git tags where the records where first created.

Records in a Seano database are Json objects, which are stored on disk as distinct YAML files to improve human-readability. The primary key of the records is an arbitrary string, which is encoded into the filename of the YAML file, and is colloquially referred to as the "note ID". Note IDs are random hex strings by default, but under the hood, they can be pretty much any filesystem-safe string.

Seano is heavily inspired by reno, written by Doug Hellmann at OpenStack, and bears a number of similarities to it. The main difference is that Seano is designed more for general-purpose (though, still lightweight) storage, and concomitantly, is engineered to more easily coexist with third party data formatters.

Testing Locally

Starting from scratch, this is how to set up local unit testing:

# Create and enter a virtual environment:
virtualenv .venv
. .venv/bin/activate

# Install Seano in the virtual environment in "editable mode"
pip install -e .

# Install extra dependencies needed by the unit tests:
pip install -r ci_utest_requirements.txt

Then, going forward, you can run unit tests like this:

pytest

Copyright 2024 Andrew Keller

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

  3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

seano_cli-2.0.1.tar.gz (41.2 kB view details)

Uploaded Source

Built Distribution

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

seano_cli-2.0.1-py3-none-any.whl (50.4 kB view details)

Uploaded Python 3

File details

Details for the file seano_cli-2.0.1.tar.gz.

File metadata

  • Download URL: seano_cli-2.0.1.tar.gz
  • Upload date:
  • Size: 41.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.9

File hashes

Hashes for seano_cli-2.0.1.tar.gz
Algorithm Hash digest
SHA256 4e36f01fb72d7975115aed215263c5ab540c2c4401461bd6c49a9a625394152e
MD5 86e15f73fe677d18a1ca7c39aa418b0e
BLAKE2b-256 8fe812a859ecee5b91e98ea8784121ef13fd0aa6a6f2597d61f518ed6f1c518b

See more details on using hashes here.

File details

Details for the file seano_cli-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: seano_cli-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 50.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.9

File hashes

Hashes for seano_cli-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fa2af6f9662f0f4010c01028f58561f03dffe275e5b0c4849456252193a84788
MD5 bfc6f8e9b232dfdff13f0c73520c63d1
BLAKE2b-256 f70e22327315871a0f2463d815a981d0a36b31389a280156574393a954f0b894

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