Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I recommend using the Typer library #1

Closed
leynier opened this issue Aug 26, 2021 · 6 comments
Closed

I recommend using the Typer library #1

leynier opened this issue Aug 26, 2021 · 6 comments

Comments

@leynier
Copy link

leynier commented Aug 26, 2021

Docs: https://typer.tiangolo.com

It defines itself as: Typer is a library for building CLI applications that users will love using and developers will love creating. Based on Python 3.6+ type hints.

@leynier
Copy link
Author

leynier commented Aug 26, 2021

If the recommendation is accepted, I can make a pull request integrating Typer and other initial settings using this cookie-cutter https://github.com/leynier/python-template

Initial Settings

All of the above via GitHub Actions and GitHub Pages

@apiad
Copy link
Owner

apiad commented Aug 26, 2021

I love Typer, but I don't want to depend on anything on this particular project (at least now) because then it fails to be "zero-dependencies". I have to think about it, but for now, no dependencies beyond the standard library, no package management, nada.

@leynier
Copy link
Author

leynier commented Aug 26, 2021

I got it, thank you very much. So, I will close the issue. I really like the idea and purpose of this project, congratulations. 👌🏼 👌🏼 👌🏼

@leynier leynier closed this as completed Aug 26, 2021
@apiad
Copy link
Owner

apiad commented Aug 27, 2021

However... on a second thought, I'd be willing to complicate pydock with additional dependencies, provided we package it as a Docker image, hence the user never has to install anything. They would download a simple bash script into /usr/bin/pydock that proxies args to a docker run ... and the whole of pydock would run inside a container. This would be some sort of inception-level shit, because pydock would then be managed and bundled with pydock itself 🤣

@apiad
Copy link
Owner

apiad commented Aug 27, 2021

In any case, I don't think we want to have a Python package, i.e., no pip install pydock, as this would be against our own predicament.

@leynier
Copy link
Author

leynier commented Aug 27, 2021

Package management could be used only for the development scope, to install the dependencies related to type and format checking in addition to tests, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants