npbc
pyenv-installer
npbc | pyenv-installer | |
---|---|---|
13 | 17 | |
2 | 3,860 | |
- | 0.4% | |
4.3 | 2.9 | |
4 months ago | 10 days ago | |
Python | Shell | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
npbc
-
Can programming be a hobby? What can I do with it?
Well, there will probably be problems in your life that have a programming solution. For example, we subscribe to something like 5 newspapers billed monthly but with different prices per paper per weekday. We verify the vendor's calculations and it's bit of a chore. Perfect thing to automate with a script!
-
How often do you use libraries ?
Another good example is command line arguments. I got started with argv and argc and wrote a rudimentary application with that. At some point I decided to migrate it to Python, and continued to use sys.argv there. Now, we (family) rely on that application, and I use argparse (Python) most of the time. In the context of this application, I'm currently learning about deployment and distribution (hence you'll find my makeshift "installation" instructions in the README). Once I figure that out, I'll switch to a existing tried and tested system.
-
I don’t know where to go from here
I'm currently on a new version of the newspaper bill calculator (https://github.com/eccentricOrange/npbc) and it's still teaching me tons (more file i/o, good/bad practices, databases, regex, CI/CD, different kinds of UI like CLIs etc etc)...
- Do you make your code clean (refactor) after you finished a project or while writing the code?
-
How do you structure the writing of a program >200 lines?
The primary purpose of this project is for me to learn to use Flask. It usually takes me 4-5 ~rewrites~ revisions of a project to make it have some structure, and this one is only in v2. I've also had to learn a lot of stuff (Flask, virtually all of JS, some 80% of the CSS, the whole concept of a front- and back-end being split between a CLI and a browser, datetime module), so it's been somewhat tough to build as well. I don't always code like this.
-
Pytest is failing on GitHub Actions but succeeds locally
The full codebase is available. At this point, I've completed most of the changes I need to make to the actual code, and push it to GitHub. https://github.com/eccentricOrange/npbc/tree/5c529dacbef0f9a1f8915a49dcca47834204aa09
-
Please help me review a CLI application that I've written
Link: https://github.com/eccentricOrange/npbc/tree/efd5f37b82a42437a9ed0d61d20a8455dce6f0e0
-
Is requesting a review appropriate here?
This post is not a request for review, but if you want to get a sense of the size/number of files, here is a GitHub repo at a specific commit (so that all discussion is consistent). Is it okay to make a post requesting a review of this code? If not, do you know a place I could request someone to take a look?
-
I want to learn programming but keep giving up too quickly
Make sure that the "complex" problem you're solving is the same as your end goal. That's my main motivator: if I need an app to calculate newspaper bills, I need it. Learning about OOP (for example) outside of a problem where I really benefit from having it doesn't work so well for me.
pyenv-installer
-
pyenv - manage python versions
To install it make sure that all prerequisites are met. Then use the pyenv-installer project like this to get the tool installed:
-
After deleting Pyenv, I get the top error when I open terminal and when I use the commands to remove it, I get those errors. How do I fix?
I tried the uninstaller from https://github.com/pyenv/pyenv-installer and I'm getting this.
-
Simple Python Version Management: pyenv
After you’ve installed the build dependencies, you’re ready to install pyenv itself. I recommend using the pyenv-installer project:
-
Your own Stable Diffusion endpoint with AWS SageMaker
For python, it's recommended to use pyenv, which allows you to install several versions of python at the same time with simple commands like this: pyenv install 3.9.13
-
Zellij: A terminal workspace with batteries included
Please don't contribute worthless and irrelevant comments like this. As you doubtless well know, piping from curl into bash is something that a large subset of respected programmers think is reasonable, and another rather tedious subset do not. For example, the entire Rust community clearly has a consensus that it's reasonable: https://rustup.rs/ As does homebrew https://brew.sh/ and pyenv https://github.com/pyenv/pyenv-installer#install to name whatever came to my mind in 30s thought.
Since the debate has such large numbers on both sides, your individual opinion on it is neither interesting nor germane.
- Cómo instalar y crear un entorno virtual con pyenv en ubuntu 22.04 LTS
-
Pytest is failing on GitHub Actions but succeeds locally
name: Test, build and release # whenever a branch or commit is pushed on: [push] jobs: # use pytest test: # used to ensure testing is done right env: DEVELOPMENT: '1' runs-on: ubuntu-latest # to avoid using old sqlite version container: image: debian:latest options: --user root steps: # check out repo - uses: actions/checkout@v2 # prevent from asking user for input - run: export DEBIAN_FRONTEND=noninteractive # install recommended tools for building Python - run: apt -q update - run: apt -q install make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev git sqlite3 -y - run: apt -q upgrade -y # install pyenv - run: curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash - run: exec $SHELL - run: ~/.pyenv/bin/pyenv update # install and set up required Python - run: ~/.pyenv/bin/pyenv install 3.10.2 - run: ~/.pyenv/bin/pyenv virtualenv 3.10.2 npbc - run: ~/.pyenv/bin/pyenv local 3.10.2/envs/npbc # print version info (debugging) - run: ~/.pyenv/shims/python -V - run: ~/.pyenv/shims/python -c "import sqlite3; print(sqlite3.version)" # install pip packages - run: ~/.pyenv/shims/pip install -r requirements.txt pytest # run test - run: ~/.pyenv/shims/pytest -vv
-
Managing multiple versions of Python using pyenv and virtualenvwrapper
curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
- [Tutorial] Instalando o Python com o Pyenv
-
Real World Python 🐍: Environment Setup - pyenv
This uses the pyenv-installer project to install pyenv on your system.
What are some alternatives?
awesome-docker - :whale: A curated list of Docker resources and projects
pyenv - Simple Python version management
Newspaper-Bill-Calculator-v2 - App that calculates your monthly newspaper bill
pyright - Static Type Checker for Python
lab-flask-tdd - NYU DevOps lab on Test Driven Development
yolov4-deepsort - Object tracking implemented with YOLOv4, DeepSort, and TensorFlow.
lab-flask-bdd - NYU DevOps lab on Behavior Driven Development with Flask and Behave
remote - Moved to https://github.com/labmlai/labml/tree/master/remote
djangitos
dotfiles-original - POSIX configuration files designed to be cross-platform between macOS and GNU/Linux.
processing - Source code for the Processing Core and Development Environment (PDE)
Poetry - Python packaging and dependency management made easy