Giter Site home page Giter Site logo

cleitoncorrea / applied-data-science-capstone-ibm-course-platform-coursera Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 3 KB

Applied Data Science Capstone ibm course platform coursera

License: MIT License

Dockerfile 34.13% Python 64.17% Shell 1.70%

applied-data-science-capstone-ibm-course-platform-coursera's Introduction

Applied Data Science Capstone - IBM Credential Data Science platform Coursera

=========

Credential

Applied Data Science Capstone

Synopsis

This is a project skeleton having full structure of an deployable python3 project. It includes a startup bash script, a Dockerfile to build the image with centos, a setup.py to build into wheel or egg distribution to apply the required activity in the course for the credential

Build

Using Docker

Build the docker image using the Dockerfile attached.

docker build -t init-python:1.0 .

Run your arguments to the program directly passing to docker container while running.

docker run -t init-python:1.0 sum 1 2

Using virtualenv

Create an virtual environment.

virtualenv -p python3

Activate the environment.

source env/bin/activate

Build the project.

python setup.py build

Install the project.

python setup.py install
Development mode

While developing the project, keep your virtualenv runtime up to date with latest changes you keep making in your code. Instead of install use develop to keep runtime in development mode.

python setup.py develop

F.A.Q.

How to include data and other type files into my built project?

In order to include files those are not python scripts, (e.g. txt, csv, json, xml) but they are meant to be in some particular directory, use MANIFEST.in to capture such paths and tell setuptools to include them.

# Add following lines to `MANIFEST.in` to include files at `init/lib/resources` path.

include init/lib/resources/*

Where to add list of dependencies of my project?

Ideally as we are using setup.py here, all your dependencies must be specified in that file under option install_requires as an string of list.

Not mentioning version will let setuptool pick the latest one available.

Where I should put my publicly exposing scripts?

All your scripts that ideally be end-point or facing command lines scripts, put them into init/bin. Mention them in setup.py under option entry_points.

How I set additional environment variables?

If you are using Dockerfile, you can write them inside Dockerfile. Else if you can use them startup.sh shell script.

applied-data-science-capstone-ibm-course-platform-coursera's People

Contributors

cleitoncorrea avatar

Watchers

James Cloos avatar  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.