Browse Source

setup.py and tracker class

master
Johann Schmitz 6 years ago
parent
commit
3d64dfa5a2
Signed by: ercpe GPG Key ID: A084064277C501ED
  1. 14
      setup.py
  2. 2
      src/pypiwik/__init__.py
  3. 8
      src/pypiwik/tracker.py

14
setup.py

@ -0,0 +1,14 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from distutils.core import setup
setup(name='pypiwik',
version='0.1',
description='Python implementation of the Piwik HTTP API',
author='Johann Schmitz',
author_email='johann@j-schmitz.net',
url='https://ercpe.de/projects/pypiwik',
packages=['pypiwik'],
package_dir={'': 'src'},
)

2
src/pypiwik/__init__.py

@ -0,0 +1,2 @@
# -*- coding: utf-8 -*-

8
src/pypiwik/tracker.py

@ -0,0 +1,8 @@
# -*- coding: utf-8 -*-
class PiwikTracker(object):
def __init__(self, piwik_url, site_id):
super(PiwikTracker, self).__init__()
self.piwik_url = piwik_url
self.idsite = site_id