python wrapper for upcoming eepynotes api
Find a file
2025-04-29 13:48:54 +03:00
.gitignore oh the tweakery 2025-03-28 23:52:57 +03:00
eepynotesapiwrapper.py up to date with 1.2.0-alpha 2025-04-29 13:48:54 +03:00
LICENSE Initial commit 2025-03-15 18:17:47 +00:00
README.md added requirements.txt 2025-04-11 22:23:05 +03:00
requirements.txt added requirements.txt 2025-04-11 22:23:05 +03:00

eepynotes-api-wrapper

make sure you have all the dependencies installed by running pip install -r requirements.txt

docs will be here when i uneep

Examples

Logging in and getting instance info

from eepynotesapiwrapper import EepyNotesAPI, Note

api = EepyNotesAPI("token", base_url="https://example.com") # Logging in
print(api.get_instance_info()) # Returns current instance info

Getting and uploading notes

note = api.get_note("id")
print(note) # Returns Note(name="name", content="contents", ...)

note_to_upload = Note("name", "contents") # Creates a Note object
print(api.upload_note(note_to_upload)) # Returns {"message": "Note created succesfully!", "noteid": ...}

# -----

print(api.upload_note({"name": ..., "content": ..., ...})) # Returns {"message": "Note created succesfully!", "noteid": ...}

Editting a note

note = api.get_note("id") # Returns Note(name="name", content="contents", ...)
note.content = ...
note.name = ... 
print(api.update_note("id", note)) # Returns {"message": "Note edited successfully!"}

# -----

note = Note("new name", "new content", ...)
print(api.update_note("id", note)) # Returns {"message": "Note edited successfully!"}

# -----

print(api.update_note("id", {"name": ..., "content": ..., ...})) # Returns {"message": "Note edited successfully!"}

Deleting a note

print(api.delete_note("id")) # Returns {"message": "Note deleted successfully!"}

Note objects and dicts can be converted

notedict = {"name": "name", "content": "content", ...}
note_converted_from_dict = Note.from_dict(notedict)
print(note_converted_from_dict) # Returns Note(name="name", content="contents", ...)

noteobj = Note("name", "content")
note_converted_from_obj = noteobj.to_dict()
print(note_converted_from_obj) # Returns {"name": "name", "content": "content", ...}