Skip to content

RedstonedLife/YamlDB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation:

Before do: pip install pyyaml Otherwise it wouldn't work!

pip install YamlDB

How to use?

at first we need to import YamlDB, duh

after that do database = database(file_path)

e.g.

import YamlDB

database = database("data.yml")

Now, to input and write stuff to the database file we have 2 options Regular dump or in the code it will be database.dump(data) and the safe dump or in the code it will be database.safe_dump(data)

Now what both of them do is, Dump just writes stuff into the file but deleting stuff that's already written in-it Safe Dump will write stuff to the file but without deleting already written stuff!

Other commands (Useful at most):

database.devs() -- Will display the list of developers that worked on the project database.current_file() -- Will display current file name, path and size (In bytes)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages