Skip to main content

Code files you and your LLM can read and your computer can run.

Project description

literati

Jupyter notebook combines prose with code in a notebook. literati combines prose with code in a markdown file.

Usage

Run literati. Create a <file_name>.md with your favorite editor.

Write code interwoven with markdown:

> Time for some fair dinkum mischief...
Accessing the mainframe to _compile some yarn_.
```python
def hello():
    print("G'day, World!!")
```

Whenever you save your file, literati transcribes your file to py/<file_name>.py stripping all the markdown. Only the code remains.

Run python py/<file_name>.py to run your code.

Options

  • literati --path /custom/path - Monitor a different directory
  • literati --output-dir custom_output - Use a different output directory

The Why

I wanted to try the following pattern of working with LLMs:

  • context is your code
  • when you want to make changes or additions, provide the context to your LLM
  • ask for modifications
  • update the context to reflect the new information

Context and code, always in sync. For you and your LLM.

Installation

Install latest from the GitHub repository:

$ pip install git+https://github.com/radekosmulski/literati.git

or from pypi

$ pip install literati

Install literati in Development mode

# make sure literati package is installed in development mode
$ pip install -e .

# make changes under nbs/ directory
# ...

# compile to have changes apply to literati
$ nbdev_prepare

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

literati-0.0.5.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

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

literati-0.0.5-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file literati-0.0.5.tar.gz.

File metadata

  • Download URL: literati-0.0.5.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for literati-0.0.5.tar.gz
Algorithm Hash digest
SHA256 15b5ce99e3748c8ed3d9ef89fab0bc0c1432d3327c504f881b32fd20452ec48a
MD5 2485b1c3f56b822519450af9e024238e
BLAKE2b-256 b2dd0d272aaf1c946178932c8ed0443690d0cb4652d7331980e06bf7c6176076

See more details on using hashes here.

File details

Details for the file literati-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: literati-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for literati-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 1f86c87f707470ae82ae145b18b0e8eddccfe2393028f4a9b2b4d5a993f80e2e
MD5 c39ef633ce4cd0a5b1de30476c493f3b
BLAKE2b-256 82abd8cc8b2875e7f973116cc26ad1011cf4aa1ea52ef81c2d2c9f2d11b073c8

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