Coder Social home page Coder Social logo

Proposal: pinax command line about pinax HOT 13 CLOSED

pinax avatar pinax commented on June 9, 2024
Proposal: pinax command line

from pinax.

Comments (13)

paltman avatar paltman commented on June 9, 2024

Consider http://click.pocoo.org/5/ for building the command line client

from pinax.

paltman avatar paltman commented on June 9, 2024

You can install via pip from within Python by using it's API:

from pip.commands import install
command = install.InstallCommand()
opts, args = command.parser.parse_args()
command.run(opts, ["requests"])

from pinax.

jtauber avatar jtauber commented on June 9, 2024

could we also just do it with an install_requires in setup.py?

from pinax.

paltman avatar paltman commented on June 9, 2024

You can start the project from Python too. No need to shell out:

from pip.commands import install
command = install.InstallCommand()
opts, args = command.parser.parse_args()
command.run(opts, ["Django"])

from django.core.management import call_command
call_command("startproject", NAME, "-n webpack.config.js", template="https://github.com/pinax/pinax-starter-projects/zipball/account")

from pinax.

paltman avatar paltman commented on June 9, 2024

@jtauber I like the idea of each starter project specifying it's Django version and this command just installing what the registry tells it to.

from pinax.

jtauber avatar jtauber commented on June 9, 2024

ah, nice idea

from pinax.

jtauber avatar jtauber commented on June 9, 2024

will the registry be a JSON/YAML file under this repo?

from pinax.

paltman avatar paltman commented on June 9, 2024

I was at first thinking in pinax-starter-projects, but I think it like it living in pinax/pinax better

from pinax.

paltman avatar paltman commented on June 9, 2024

But maybe it's something that should be versioned and deployed somewhere. Not sure.

from pinax.

paltman avatar paltman commented on June 9, 2024

For now, as long as we can read a .json|yml file from a url, that's all i care about

from pinax.

jtauber avatar jtauber commented on June 9, 2024

Well, it being a JSON/YAML file in a GitHub repo, it is kinda versioned and deployed :-)

from pinax.

paltman avatar paltman commented on June 9, 2024

👍

from pinax.

paltman avatar paltman commented on June 9, 2024

You can now:

pip install pinax-cli

Repo: http://github.com/pinax/pinax-cli

from pinax.

Related Issues (20)

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.