Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hshetl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tools
hshetl
Commits
292f5909
Commit
292f5909
authored
12 years ago
by
Dennis Ahrens
Browse files
Options
Downloads
Patches
Plain Diff
[FEATURE] #1114 setup.py for smooth install.
parent
30fb2ad0
No related branches found
No related tags found
No related merge requests found
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
.gitignore
+3
-0
3 additions, 0 deletions
.gitignore
LICENSE
+21
-0
21 additions, 0 deletions
LICENSE
README
+45
-0
45 additions, 0 deletions
README
bin/hshetl
+6
-3
6 additions, 3 deletions
bin/hshetl
setup.py
+47
-0
47 additions, 0 deletions
setup.py
with
122 additions
and
3 deletions
.gitignore
+
3
−
0
View file @
292f5909
*.pyc
*.pyc
.project
.project
.pydevproject
.pydevproject
build/
hshetl.egg-info/
dist/
This diff is collapsed.
Click to expand it.
LICENSE
0 → 100644
+
21
−
0
View file @
292f5909
The MIT License (MIT)
Copyright (c) 2013 Hochschule Hannover
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
\ No newline at end of file
This diff is collapsed.
Click to expand it.
README
0 → 100644
+
45
−
0
View file @
292f5909
hshetl is a cli tool for extract transform load data between different sources.
Currently supported sources are files, ldap, oracle and mysql.
###############################################################################
# Install on Debian
###############################################################################
Install the tool by using the setup.py script. It resolves all dependencies. Currently the setup was only tested
on debian based linux distributions.
You will need to following packages for the building process:
- python-dev
- python-setuptools
- libmysqlclient-dev
- libldap2-dev
- libsasl2-dev
- libssl-dev
- mercurial
sudo apt-get install python-dev python-setuptools libmysqlclient-dev libldap2-dev libsasl2-dev libssl-dev mercurial
You also need to run pip install -U distribute, because we need a higher
version of it.
###############################################################################
# Virtualenv
###############################################################################
For testing purpose it is recommended to use python virtualenv. It is available
in the package:
- python-virtualenv
# create a virtualenv
virtualenv --no-site-packages path/to/your/virtual/env
# activate a virtualenv
. path/to/your/virtual/env/bin/activate
# deactivate a virtualenv
deactivate
###############################################################################
# Tests
###############################################################################
We used nosetests to run the included unittests. Install it and run nosetests
from inside the package directory ./hshetl
\ No newline at end of file
This diff is collapsed.
Click to expand it.
bin/hshetl
+
6
−
3
View file @
292f5909
#!/
bin/bash
#!/
usr/bin/env python
BINPATH
=
`
dirname
$0
`
import
sys
python
"
$BINPATH
/../hshetl/cli.py"
$@
from
hshetl
import
cli
\ No newline at end of file
if
__name__
==
"
__main__
"
:
cli
.
main
(
sys
.
argv
[
1
:])
\ No newline at end of file
This diff is collapsed.
Click to expand it.
setup.py
0 → 100644
+
47
−
0
View file @
292f5909
from
setuptools
import
setup
# patch distutils if it can't cope with the 'classifiers' or 'download_url'
# keywords (prior to python 2.3.0).
from
distutils.dist
import
DistributionMetadata
if
not
hasattr
(
DistributionMetadata
,
'
classifiers
'
):
DistributionMetadata
.
classifiers
=
None
if
not
hasattr
(
DistributionMetadata
,
'
download_url
'
):
DistributionMetadata
.
download_url
=
None
setup
(
name
=
'
hshetl
'
,
version
=
'
0.1
'
,
description
=
'
Extract Transform and Load (ETL) data from different sources into different sources.
'
,
long_description
=
open
(
'
README
'
).
read
(),
author
=
'
Dennis Ahrens, Philipp Schiffmann
'
,
author_email
=
'
dennis.ahrens@hs-hannover.de, philipp.schiffmann@hs-hannover.de
'
,
url
=
'
http://projects.it.hs-hannover.de/projects/hit-hshetl
'
,
download_url
=
'
git://git.it.hs-hannover.de/hshetl.git
'
,
license
=
'
MIT
'
,
platforms
=
[
'
Linux
'
],
keywords
=
[
'
data
'
,
'
synchronization
'
,
'
transformation
'
],
classifiers
=
[
'
Development Status :: 4 - Beta
'
,
'
Environment :: Other Environment
'
,
'
Intended Audience :: Developers
'
,
'
License :: OSI Approved :: MIT License
'
,
'
Operating System :: POSIX :: Linux
'
,
'
Programming Language :: Python
'
,
'
Topic :: Software Development :: Libraries :: Python Modules
'
,
],
scripts
=
[
'
bin/hshetl
'
],
packages
=
[
'
hshetl
'
],
setup_requires
=
[
'
distribute >= 0.6.28
'
],
install_requires
=
[
'
sqlalchemy>=0.7
'
,
'
argparse >= 1.1
'
,
'
PyYAML >= 3.10
'
,
'
cx_Oracle >= 5.1.2
'
,
'
python-ldap >= 2.3.13
'
,
'
mysql-python >= 1.2.3
'
,
'
mock
'
],
dependency_links
=
[
'
hg+https://code.google.com/p/pyfakefs/
'
]
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment