One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
# coding=utf-8 | |
def pegar_pontos_cartesianos(pontos_str): | |
"""Captura uma string e retorna o dicionario de coordenadas | |
Ex: | |
In :: pontos = pegar_pontos_cartesianos('P(0,2,3);Y(0.6,3.5,3.9);J(2,5,103)') | |
In :: print(pontos) | |
Out:: {'Y': [0.6, 3.5, 3.9], 'P': [0.0, 2.0, 3.0], 'J': [2.0, 5.0, 103.0]} | |
:param pontos_str: Representação de pontos cartesianos |
class DotExpandedDict(dict): | |
""" | |
- A special dictionary constructor that takes a dictionary in which the | |
- keys may contain dots to specify inner dictionaries. It's | |
- confusing, but this | |
- example should make sense. | |
- | |
- >>> d = DotExpandedDict({'person.1.firstname': ['Simon'], \ | |
- 'person.1.lastname': ['Willison'], \ | |
- 'person.2.firstname': ['Adrian'], \ |
for PYFILE in $(find . -name '*.py'); do pep8 $PYFILE --count >> pep8.log; done |
# To work with python | |
pip install --upgrade autopep8 | |
pip install flake8 | |
pip install flake8-docstrings | |
pip install iresolve | |
# To work with python and django | |
apm install python-tools |