https://github.com/adolfo-gm/potato
The .potato file format.
https://github.com/adolfo-gm/potato
file fileformat format potato potatoes
Last synced: 9 months ago
JSON representation
The .potato file format.
- Host: GitHub
- URL: https://github.com/adolfo-gm/potato
- Owner: Adolfo-GM
- License: mit
- Archived: true
- Created: 2025-05-02T21:12:03.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-08T17:38:03.000Z (about 1 year ago)
- Last Synced: 2025-06-08T18:19:33.683Z (about 1 year ago)
- Topics: file, fileformat, format, potato, potatoes
- Language: Python
- Homepage: https://potatofile.netlify.app/
- Size: 1.77 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# .potato

## What is .potato?
`.potato` is a simple, text-based file format created by Adolfo GM for storing various types of data, including text and base64 encoded images, in individual "potatoes" identified by a column number. Each potato is stored on a line within the file, enclosed in `` tags with attributes for name, column number, data type, and a timestamp.
## Basic Usage
To start using the `.potato` format, you'll need the `Potato` class. Here's a quick example of how to create a `.potato` file and bake a potato into it:
```python
from potato import Potato
# Create a new .potato file (or open an existing one)
pt = Potato("my_data.potato")
# Bake a text potato at column 0
pt.bake(0, "This is some important text!", "ImportantNote")
# Acess the potato
print(pt.mash(0)) # Output: This is some important text!
```
to get the potato module download the `potato.py` file from the repository and place it in your project directory. You can then import the `Potato` class and use it to create, read, and manipulate `.potato` files!