Coder Social home page Coder Social logo

Hi there šŸ‘‹

šŸŒ± Iā€™m currently learning AI/ML, OpenAI API, and others.

My Programming languages

Rank Languages
1 Python
2 Javascript
3 SQL
My DevOps Tools
Rank Languages
1 GitHub
2 Copilot
3 OpenAI
4 Docker
How to set up Python Development environment on Mac

Create python virtual environment with the same name of your github repo e.g. /Users/yourname/pyproject-web

  • python3 -m venv ~/.pyproject-web
  • source ~/.pyproject-web/bin/activate
  • which python

You should see something like this...

/Users/yourname/.python-web/bin/python

Next, Make Some Basic Scaffolding

  • touch Makefile

Add the below content to the Makefile

install:
   pip install --upgrade pip &&\
   	pip install -r requirements.txt


test:
#	python -m pytest -vv --cov=main --cov=mylib test_*.py


format:	
   black *.py


lint:
   pylint --disable=R,C --ignore-patterns=test_.*?py *.py 


container-lint:
   docker run --rm -i hadolint/hadolint < Dockerfile


refactor: format lint


deploy:
   #deploy goes here
   	
all: install lint test format deploy

  • touch requirements.txt Add the below content to the Makefile
click
pylint
pytest
black
ipython
boto3
  • touch hello.py && touch test_hello.py

Run the below command to install requirement libraries with pip

  • make install

Suparuek Puttakhot's Projects

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.