Giter Site home page Giter Site logo

npr99 / pyincore Goto Github PK

View Code? Open in Web Editor NEW

This project forked from in-core/pyincore

0.0 1.0 0.0 20.33 MB

pyIncore is a component of IN-CORE. It is a python package consisting of two primary components: 1) a set of service classes to interact with the IN-CORE web services, and 2) IN-CORE analyses . The pyIncore allows users to apply various hazards to infrastructure in selected areas, propagating the effect of physical infrastructure damage and loss of functionality to social and economic impacts.

License: Mozilla Public License 2.0

Python 30.51% Jupyter Notebook 69.47% Dockerfile 0.02%

pyincore's Introduction

pyIncore documentation

pyIncore documentation which is built using Python Sphinx package.

Installation

Clone the code from pyincore repository git repository.

Building and running Sphinx in Docker container

Install Docker Desktop for your OS and change directory to your local branch pyincore folder.

  1. Build container

    docker build -f Dockerfile -t doc/pyincore .
    

    The container's name is pyincore_docs in this example.

  2. Run docker

    docker run -ti --rm -p 8000:80 doc/pyincore
    

    Optional flag, --name sets container's name to doctest under which it appears in Docker Desktop.

  3. Run html pages in your local browser (you might see the nginx main page first)

    http://localhost:8000/doc/pyincore/
    

Running Sphinx directly in your environment

  1. Install required packages. Currently sphinx, a Python package for building documentation and sphinx_rtd_theme, a theme used in this documentation and other packages. See section 4. for the full list.

  2. We recommend using virtual environments, conda (preferred) or virtualenv for Python 3.7+. for managing Python environments.
    In case of conda, the package management and deployment tool is called anaconda. Create the environment from the terminal at the project folder (called pyincore_docs here) and activate it:

    conda create -n pyincore_docs python=3.7
    conda activate pyincore_docs
    

    or

    virtualenv --python=python3.7 pyincore_docs
    source venv/bin/activate
    
  3. Install required packages individually if necessary. Use conda again or you can also use pip:

    conda install sphinx
    conda install sphinx_rtd_theme
    

    or (global install for all users drop the --user flag)

    python3 -m pip install sphinx --user
    python3 -m pip install sphinx_rtd_theme --user
    
  4. From the terminal at the project folder (pyincore/docs) run:

    sphinx-build -b html source build
    

    after that you should be able to run (clean deletes content of the build folder) :

    make clean
    make html
    
  5. Open index.html from build/html directory in a browser.

pyincore's People

Contributors

candicegjing avatar diegoac2 avatar gowthamnvv avatar indiragp avatar jonglee1 avatar longshuicy avatar mfrdrcks avatar navarroc avatar npr99 avatar nunezco2 avatar omarelabd avatar ondrejce avatar robkooper avatar tolbertncsa avatar ywkim312 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.