Diversified Data Python Utilies Library
Project description
# dds_pylib
## Diversified Data Python Helper Library
### Setup
[DDS KB](https://help.ddssoft.com/support/diversifieddata/ShowHomePage.do#Solutions/dv/193727000000679004)
### List of available utilities
1. dates
1. classes
1. Gregorian()
1. functions
1. todays_julian()
1. gregorian2julian()
1. julian2gregorian()
1. decorators
1. annotate
1. deprecated
1. static_vars
1. timeit
1. pyext
1. collection
1. functions
1. multidim_list()
1. flatten()
1. create_multidim_list() - soon to be deprecated for multidim_list()
1. multi_getattr
1. nearly_equal
1. objects
1. ObjectDict
1. util
1. case
1. camel_to_ashell_case()
1. camel_to_snake_case()
1. clear_screen.py
1. print_pythonpath.py
### PyPi notes
[PyPi docs](http://python-packaging.readthedocs.io/en/latest/minimal.html)
1. to update version number edit root `__init__.py`
create source distribution
```console
python setup.py sdist
```
upload to PyPi
```console
python setup.py sdist upload
```
### Running Tests
Change current directory to library base directory
Run all tests. This will run all the test*.py modules inside the test package.
```console
> python -m unittest discover -v
test_decode (test.test_base.TestBase36) ... ok
test_encode (test.test_base.TestBase36) ... ok
test_gregorian (test.test_dates.TestGregorian) ... ok
test_j2g (test.test_dates.TestJulian2Gregorian) ... ok
----------------------------------------------------------------------
Ran 4 tests in 0.011s
OK
```
Limit tests to a specific test module
```console
> python -m unittest test.test_dates
..
----------------------------------------------------------------------
Ran 2 tests in 0.004s
OK
```
Add `-v` switch to makes output more verbose
```console
> python -m unittest -v test.test_dates
test_gregorian (test.test_dates.TestGregorian) ... ok
test_j2g (test.test_dates.TestJulian2Gregorian) ... ok
----------------------------------------------------------------------
Ran 2 tests in 0.007s
OK
```
Further limit test to a specific TestCase
```console
> python -m unittest -v test.test_dates.TestGregorian
test_gregorian (test.test_dates.TestGregorian) ... ok
----------------------------------------------------------------------
Ran 1 test in 0.005s
OK
```
Optionally further limit test to a specific TestCase.method
```console
> python -m unittest -v test.test_dates.TestGregorian.test_gregorian
test_gregorian (test.test_dates.TestGregorian) ... ok
----------------------------------------------------------------------
Ran 1 test in 0.004s
OK
```
#### This library should test full tested
## Diversified Data Python Helper Library
### Setup
[DDS KB](https://help.ddssoft.com/support/diversifieddata/ShowHomePage.do#Solutions/dv/193727000000679004)
### List of available utilities
1. dates
1. classes
1. Gregorian()
1. functions
1. todays_julian()
1. gregorian2julian()
1. julian2gregorian()
1. decorators
1. annotate
1. deprecated
1. static_vars
1. timeit
1. pyext
1. collection
1. functions
1. multidim_list()
1. flatten()
1. create_multidim_list() - soon to be deprecated for multidim_list()
1. multi_getattr
1. nearly_equal
1. objects
1. ObjectDict
1. util
1. case
1. camel_to_ashell_case()
1. camel_to_snake_case()
1. clear_screen.py
1. print_pythonpath.py
### PyPi notes
[PyPi docs](http://python-packaging.readthedocs.io/en/latest/minimal.html)
1. to update version number edit root `__init__.py`
create source distribution
```console
python setup.py sdist
```
upload to PyPi
```console
python setup.py sdist upload
```
### Running Tests
Change current directory to library base directory
Run all tests. This will run all the test*.py modules inside the test package.
```console
> python -m unittest discover -v
test_decode (test.test_base.TestBase36) ... ok
test_encode (test.test_base.TestBase36) ... ok
test_gregorian (test.test_dates.TestGregorian) ... ok
test_j2g (test.test_dates.TestJulian2Gregorian) ... ok
----------------------------------------------------------------------
Ran 4 tests in 0.011s
OK
```
Limit tests to a specific test module
```console
> python -m unittest test.test_dates
..
----------------------------------------------------------------------
Ran 2 tests in 0.004s
OK
```
Add `-v` switch to makes output more verbose
```console
> python -m unittest -v test.test_dates
test_gregorian (test.test_dates.TestGregorian) ... ok
test_j2g (test.test_dates.TestJulian2Gregorian) ... ok
----------------------------------------------------------------------
Ran 2 tests in 0.007s
OK
```
Further limit test to a specific TestCase
```console
> python -m unittest -v test.test_dates.TestGregorian
test_gregorian (test.test_dates.TestGregorian) ... ok
----------------------------------------------------------------------
Ran 1 test in 0.005s
OK
```
Optionally further limit test to a specific TestCase.method
```console
> python -m unittest -v test.test_dates.TestGregorian.test_gregorian
test_gregorian (test.test_dates.TestGregorian) ... ok
----------------------------------------------------------------------
Ran 1 test in 0.004s
OK
```
#### This library should test full tested
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dds_pylib-0.3.4.tar.gz
(10.6 kB
view hashes)