GithubHelp home page GithubHelp logo

pythonplayground's Introduction

Pipenv Understanding

Day 1

  • pipenv install to create workspace and install dependencies

  • pipenv shell to activate the virtual env

  • Once the shell is activated, run python hello.py to bring the Flask App UP!!

  • By default the flash app runs on port 5000 - http://localhost:5000/hello

  • pipenv install fpdf - install the fpdf module which is used to create the pdf

  • Acticate the shell again to execute python pdf_create.py which will create example.pdf

  • pipenv install PyPDF2 - install the PyPDF2 module which is used to read the pdf content

  • Acticate the shell again to execute python pdf_Reader.py which will read the contents of example.pdf

  • basics.py contains all the basic syntaxes in python

  • modules.py - python searches the list of directories from sys.path. Use sys.path.append(directory_path) to add directory searches during import.

      python3
      >>> import sys
      >>> sys.path
      ['', '/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python37.zip', '/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7', '/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload', '/usr/local/lib/python3.7/site-packages']
    • Alternatively use PYTHONPATH to set the package/module import paths.
      • If a package has __init__.py, it becomes a module
      • learn is a module which is used in modules.py

pythonplayground's People

Contributors

rohitgupta027 avatar

Watchers

 avatar

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.