sehgalvibhor / blog-cli Goto Github PK
View Code? Open in Web Editor NEWA command line blogging application using Cement Framework
A command line blogging application using Cement Framework
[email protected]:~/Blog-CLI$ python3 blog.py Category add
INFO: Category Added
[email protected]:~/Blog-CLI$
[email protected]:~/Blog-CLI$ python3 blog.py Post add --id 1 --title First --content "This is my first blog"
INFO: Blog Added
[email protected]:~/Blog-CLI$ python3 blog.py Post add --id 1 --title First --content "This is my first blog update"
INFO: Blog Added
vagrant@precise32:/vagrant/Blog-CLI$
Can you install dependencies required by your application while using your application?
something like setuptools etc.
[email protected]:~/Blog-CLI# python3 blog.py --help
Traceback (most recent call last):
File "blog.py", line 1, in <module>
from cement.core.foundation import CementApp
ImportError: No module named 'cement'
vagrant@precise32:~/Blog-CLI$ python3 blog.py Post add --id 1 --title First --content "This is my first blog"
Installing module
Collecting cement
Downloading cement-2.6.2.tar.gz (140kB)
100% |################################| 143kB 434kB/s
Installing collected packages: cement
Running setup.py install for cement
Successfully installed cement
Re-run the application
hii
make sure while i run
python3 blog.py Post add --id 1 --title First --content "This is my first blog"
apart from installing cement , it should also update my post on database
Please make sure that your application/script works with python3.
With python3 i get following error.
me@localhost:/vagrant/Blog-CLI$ python3 blog.py --help
Traceback (most recent call last):
File "blog.py", line 147, in <module>
main()
File "blog.py", line 138, in main
with MyApp() as app:
AttributeError: __exit__\
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.