general
separate config file from script
- read mongo_url value from env.cfg file.
- https://www.reddit.com/r/learnpython/comments/264ffw/what_is_the_pythonic_way_of_storing_credentials/
env.cfg
[coordinate]
mongo_url=xxxxxxxx
script.py
import ConfigParser
config = ConfigParser.RawConfigParser()
config.read('env.cfg')
mongo_url=config.get('coordinate','mongo_url')
numpy
- dtype: Data-type of the array's elements
- ndim: Number of array dimensions
- shape: Tuple of array dimensions