Skip to main content

File-based life log

Project description

# Autology

Autology is a text file based life log. Using the contents of markdown files (to include frontmatter) it will provide a
collection of reports for later viewing. It currently uses git as a backend for syncing between multiple clients.

## Contributing

Please report all software issues to [Bug tracker](https://github.com/MeerkatLabs/autology/issues). Any issues
associated with the templates that are provided by default should be reported to the
[Autology Template Bug Tracker](https://github.com/MeerkatLabs/autology_templates/issues).

## Installation

It is recommended that you use this tool in a virtual environment associated with the directory that you'll be using to
store all of the content.

```bash
mkdir log; cd log
python3 -m venv env
source env/bin/activate

pip install autology
```

To create the log directory structure, execute:

```bash
autology init
```

This will retrieve the [template files](https://github.com/MeerkatLabs/autology_templates) from GitHub, and create a new
`config.yaml` file with the default values of all of the parameters that can be used.

## Configuration

### Git Storage

In order to use this log with git as the backend you will need to modify the `config.yaml` file and enable git support.
The first time it is run, it will initialize a git environment (if necessary). Configuring the git environment with a
remote and refspec will allow the make_note sub-command to push the changes to the backend of your choosing.

### Configuring Editor

By default, the editor used to modify the text files is `xdg-open`. Depending on the editor that is currently set as the
default, this may not work correctly. For example, executing `gvim` will automatically return when the editor is
opened instead of waiting for the user to save and close the file. To get around this, you will need to set the value
of the editor to something more sane. To continue the example of gvim, the setting is:

```yaml
make_note:
editor: gvim -f {file} +2
```

You will need to provide the full command for the editor, including the `{file}` parameter. The `-f` flag is
responsible for executing the tool in the foreground. `+2` moves the editor to the second line of the file (skipping
the opening frontmatter tag).

## Execution

To generate a new note file, use the following command while the virtual environment is activated.

```bash
autology make_note
```

Once you have some notes, you can then use the `generate` sub-command to translate the log files into a HTML output.

```bash
autology generate
```

To view the content that has been generated, you can use the `serve` sub-command to create a simple http server for
viewing. Note this server does not auto-generate the content on changes, and is incredibly slow. As such, you should
not use it in production.


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

autology-0.4.0.tar.gz (27.4 kB view details)

Uploaded Source

Built Distribution

autology-0.4.0-py3-none-any.whl (52.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: autology-0.4.0.tar.gz
  • Upload date:
  • Size: 27.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for autology-0.4.0.tar.gz
Algorithm Hash digest
SHA256 e3b27e63fb66e3d87ac2f66cafe798ed1a6d20d3caba8d14f79eb391457509e7
MD5 fd58c4ae3fae48a57208726a0f61998e
BLAKE2b-256 7e9deca50b62408a0a9cd9a47fdc921954c3943b985a3c4b616b7c8cf2c54b9b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for autology-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ed3077494410e66a3dc2eece0c94c2e2054dde355f26d933805d25fd3c535440
MD5 26af4bb8fa886afd82962dab3cf58e0c
BLAKE2b-256 0535409bf456378b298f75db46ab4f69f022e4838752a4640fda53e50b3e009f

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