Skip to content

pahaz/dbtask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gitdata module

The module that able to import code from the github.

Example: import gitdata.github.pahaz.users где import gitdata.<git-repo-doted-path>.<filename>

Minimal example:

import gitdata.github.pahaz.dbtask as db
db.load(['users'])
assert db.users == [{"name": "Pahaz"}, {"name": "Test"}], 'users did not loaded'

Full example:

# Computer #1
import gitdata.github.pahaz.dbtask as db
db.load(['users'])
assert db.users == [{"name": "Pahaz"}, {"name": "Test"}], 'users did not loaded'
db.users.append({"name": "NewUser"})
db.save(['users'])

# Computer #2
import gitdata.github.pahaz.dbtask as db
db.load(['users'])
assert db.users == [{"name": "Pahaz"}, {"name": "Test"}, {"name": "NewUser"}], 'new users did not loaded'

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •