Simple lightweight data-interchange format, written in Python
Project description
EVE
A lightweight data-interchange format.
\s\s
Example use
example.eve
[
@ This is a comment
@ String variables
'Name' :: 'Eric'
'Age' :: '21'
'Country' :: 'USA'
'City' :: 'New York'
@ Boolean variables
?hasGirlfriend = False
];
example.py
import evepy as eve # Imports evepy, but sets it as eve, so you can type eve instead of evepy
result = eve.load('example.eve') # Sets result to the load function and gives a path
print(result['Name']) # Print variables
result['Age'] = '22' # Sets the age variable to 22 instead of 21
eve.save(result, 'example.eve') # Saves the changed file to the file path
\s\s
ATOM grammar syntax highlighting
- Copy the folder:
eve
in theeditors\atom
folder - Paste that to the
.atom
folder inC:\Users\yourusername\.atom\packages
- Now restart ATOM and it should work
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
evepy-1.3.tar.gz
(4.5 kB
view hashes)