It uses the pickle module to save variables to Gists, allowing you to save variables to a file and retrieve them in another code.
- Python 3
- pygistdb (My module) Download!
- requests
pip install requests
- os
- pickle
code1:
import gistpicke
gist=gistpicke.congist("gistid", "filename", "token")
x="Hello, gistpickle!"
gist.save_var("example1", x)
code2:
import gistpicke
gist=gistpicke.congist("gistid", "filename", "token")
print(gist.get_var("example1"))
code2 output:
Hello, gistpickle!
code:
import gistpicke
gist=gistpicke.congist("gistid", "filename", "token")
print(gist.get_var("example1"))
code output:
Hello, gistpickle!
code1:
import gistpicke
gist=gistpicke.congist("gistid", "filename", "token")
x="Hello"
gist.set_var("example1", x)
code2:
import gistpicke
gist=gistpicke.congist("gistid", "filename", "token")
print(gist.get_var("example1"))
code2 output:
Hello
code:
import gistpicke
gist=gistpicke.congist("gistid", "filename", "token")
gist.del_var("example1")