GithubHelp home page GithubHelp logo

sehgalvibhor / blog-cli Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 144 KB

A command line blogging application using Cement Framework

Python 100.00%
blog-cli cement-framework command-line-tool python

blog-cli's People

Contributors

sehgalvibhor avatar

Watchers

 avatar  avatar

blog-cli's Issues

No proper error handling

No error handling for category add with blank argument

[email protected]:~/Blog-CLI$ python3 blog.py Category add
INFO: Category Added
[email protected]:~/Blog-CLI$ 

No error handling for post add with same ID

[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$ 

Install Dependencies required by application

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'

post update issue on database

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

application not working on python3

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__\

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.