Skip to main content

ETC42 Universal Exposure Time Calculator

Project description

ETC42-docker-python
===================

# Authors

CeSAM (Centre de donnéeS Astrophysique de Marseille) at LAM (Laboratoire d'Astrophysique de Marseille)

# About ETC42-docker-python:

ETC42-docker-python is a python module use to launch etc42

# Requirements

1. For Linux users:

* python3

* virtualenv
```
pip install --user virtualenv
```
* docker

* The Docker daemon binds to a Unix socket instead of a TCP port. By default that Unix socket is owned by the user root and other users can only access it using sudo. The Docker daemon always runs as the root user.
The docker commands used by ETC42-docker-python can not be prefaced with sudo
To use ETC42-docker-python correctly we must create a Unix group called docker and add users to it:
```
sudo groupadd docker
sudo usermod -aG docker $USER
```
2. For MAC-OS users:

* python3

* venv
```
pip install --user venv
```
* You must have docker on your mac.(see [Mac-OS docker installation](https://docs.docker.com/docker-for-mac/install/))
* You have to install XQuartz with command line `brew cask install xquartz` (see [XQuartz installation](https://www.xquartz.org/index.html) for MacPorts or others installations type).

__*note*__: don't forget to select __Allow connections from network clients__ on XQuartz preferences (preferences -> security)

# Installation

1. Create a folder for the project ETC42 that will contain all the files needed to run an instance etc42:
```
mkdir ETC42
cd ETC42
```

2. Clone the etc42-docker-python repository:
```
git clone git@gitlab.lam.fr:etc42/etc42-docker-python.git
```

3. create virtualenv:
```
virtualenv -p python3 virtualenv_etc42
source virtualenv_etc42/bin/activate
```
or
```
python3 -m venv virtualenv_etc42
source virtualenv_etc42/bin/activate
```


4. install the python modules and the etc42:
```
cd etc42-docker-python
pip install -r pip-requirements.txt
pip install -e .
```

# How to use it

1. if it is not started, use the virtual environment created previously:
```
source virtualenv_etc42/bin/activate
```

2. launch the etc42:
```
etc42
```

To see all etc42 options available:
```
etc42 -h or --help
```



# Create sphinx documentation
```
source virtualenv_etc42/bin/activate
cd docs
sphinx-apidoc -f -o source/ ../etc42/
sphinx-build -b latex source/ build/
cd build
make
```


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

etc42-1.0.1-py2.py3-none-any.whl (9.2 kB view details)

Uploaded Python 2Python 3

File details

Details for the file etc42-1.0.1-py2.py3-none-any.whl.

File metadata

  • Download URL: etc42-1.0.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.7

File hashes

Hashes for etc42-1.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 78d963bccbddcd8668fe495ad2b750c6858df5ff5078f37d4f8a196e2c614b5f
MD5 65946b2d41ddad84037390e7a1aedbfb
BLAKE2b-256 4ba57eb1f225d8870a966a9cfa2711746ee080c75254852d0dfe01913fbd201a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page