Simple CodeHub command-line client program uses API services. Start editing the main.py
file, then try to make your queries and run them up.
main.py
from components import GetSnippet
snippet = GetSnippet('<SID>') # GetSnippet Obj
data = snippet.get() # Data retrievement
print(data)
main.py
from components import GetSnippet, PushSnippet, Language
configs = {
'title': 'TITLE',
'script': 'SCRIPT',
'language': 'go',
}
snippet = PushSnippet(**configs).push()
print(snippet)
There are some fields you are able to leave them empty. detail
and error
fields are the optional parameters you may not want to fill them up, so you use the exact keywords to give other parameters the values you want.
from components import GetSnippet, PushSnippet, Language
configs = {
'title': 'TITLE',
# 'details': 'DETAILS', Optional
'script': 'SCRIPT',
# 'error': 'ERROR', Optional
'language': 'go',
}
snippet = PushSnippet(**configs).push()
print(snippet)
You can also use Language
class to use the default languages of the program. You might use a language which is not listed in the Language
class, so write it by yourself. Up to 500 languages are available now.
from components import PushSnippet, Language
lang = Language()
snippet = PushSnippet(..., lang.python) # Or PushSnippet(..., 'python')
snippet.push()
Make changes in the main file or carry up the classes in your program. Don't forget the GPL-3.0. Develop it for free :)
FBL is tool to find broken links in articles and files
🎨 ASCII art library for Python
solve all cs Course for python
solve some fun problem in python
MishkaCms an open source and real time API base CMS Powered by Elixir and Phoenix
Coefficient of Variation (CV) and Coefficient of Quartile Variation (CQV) with Confidence Intervals (CI). Python port of https://github.com/MaaniBeigy/cvcqv)
This repository presents a full process of training a vehicle tracking model using `deep-person-reid` repository. Further, a complete web-application service based on FastAPI is provided that extracts features using YoloV5 and trained model.
A toolkit full of handy functions including most used models and utilities for deep-learning practitioners!