aboutsummaryrefslogtreecommitdiff
path: root/phpipam/__init__.py
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2021-01-13 21:31:30 +0100
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2021-01-13 21:31:30 +0100
commit874f62e0ab04cdb72814b60cd20ab4459fa9b4a5 (patch)
treea1f368485d8ac425c574f85339b78254192781d1 /phpipam/__init__.py
parent15ef268d0c588ab3b23e27c2e746e341f2a63ad1 (diff)
downloadpython-phpipam-874f62e0ab04cdb72814b60cd20ab4459fa9b4a5.tar.gz
rename package to phpipam-api
Diffstat (limited to 'phpipam/__init__.py')
-rwxr-xr-xphpipam/__init__.py40
1 files changed, 0 insertions, 40 deletions
diff --git a/phpipam/__init__.py b/phpipam/__init__.py
deleted file mode 100755
index 1dc065f..0000000
--- a/phpipam/__init__.py
+++ /dev/null
@@ -1,40 +0,0 @@
-#
-# phpipam/__init__.py
-# (c) 2021 Jonas Gunz <himself@jonasgunz.de>
-# License: MIT
-#
-from .backend import PhpipamBackend
-from .resources import PhpipamResource
-
-class PhpipamAPI:
- """
- phpIPAM API Implementation
-
- Attributes
- ----------
- sections
- subnets
- addresses
- devices
-
- https://phpipam.net/api-documentation/
- """
-
- def __init__(self, api_url, app_id, api_user, api_password):
- """
- Parameters
- ----------
- api_url : str
- URL of phpIPAM instance. Example: https://phpipam.example.com/
- app_id : str
- AppID configrued in API settings
- api_user : str
- username, leave empty to use static token authentification
- api_password : str
- password or static authentification token
- """
-
- self._backend = PhpipamBackend(api_url, app_id, api_user, api_password)
-
- def __getattr__(self, item):
- return PhpipamResource(self._backend, item)