@@ -23,8 +23,9 @@ python setup.py install --user
2323(or ` sudo python setup.py install ` to install the package for all users)
2424
2525Then import the package:
26+
2627``` python
27- import python_hde
28+ import hostingde
2829```
2930
3031## Getting Started
@@ -33,8 +34,8 @@ Please follow the [installation procedure](#installation--usage). To login with
3334url, and an API token. To authenticate:
3435
3536``` python
36- from python_hde import api
37- from python_hde .client import HostingDeClient
37+ from hostingde import api
38+ from hostingde .client import HostingDeClient
3839
3940client: HostingDeClient = api.login(' <your endpoint url>' , ' <your token>' )
4041```
@@ -46,13 +47,13 @@ The client is modularized into the different service types, for example `client.
4647For example, to fetch all zones, you can use:
4748
4849``` python
49- from python_hde import api
50- from python_hde .client import HostingDeClient
50+ from hostingde import api
51+ from hostingde .client import HostingDeClient
5152
5253client: HostingDeClient = api.login(' <your endpoint url>' , ' <your token>' )
5354
5455for zone in client.dns.list_zones():
55- print (zone)
56+ print (zone)
5657```
5758
5859All implemented endpoints are fully documented and typed. You will get corresponding hints in your IDE of choice.
@@ -62,16 +63,16 @@ All implemented endpoints are fully documented and typed. You will get correspon
6263In order to use filter and sort APIs, we simplified the usage of the API. For example, to search for a specific zone:
6364
6465``` python
65- from python_hde import api
66- from python_hde .client import HostingDeClient
67- from python_hde .model.filter import FilterCondition
66+ from hostingde import api
67+ from hostingde .client import HostingDeClient
68+ from hostingde .model.filter import FilterCondition
6869
6970client: HostingDeClient = api.login(' <your endpoint url>' , ' <your token>' )
7071
7172zone_filter = FilterCondition(' zoneName' ).eq(' example.com' )
7273
7374for zone in client.dns.list_zones(filter = zone_filter):
74- print (zone)
75+ print (zone)
7576```
7677
7778This will automatically build teh corresponding filter expression in the background
@@ -99,16 +100,17 @@ Apart from `FilterCondition.eq`, the condition supports all relations currently
99100Chaining filters is easily supported as well:
100101
101102``` python
102- from python_hde import api
103- from python_hde .client import HostingDeClient
104- from python_hde .model.filter import FilterCondition
103+ from hostingde import api
104+ from hostingde .client import HostingDeClient
105+ from hostingde .model.filter import FilterCondition
105106
106107client: HostingDeClient = api.login(' <your endpoint url>' , ' <your token>' )
107108
108- zone_filter = (FilterCondition(' zoneName' ).startswith(' example' ) | FilterCondition(' zoneName' ).startswith(' demo' )) & FilterCondition(' zoneName' ).ne(' *.com' )
109+ zone_filter = (FilterCondition(' zoneName' ).startswith(' example' ) | FilterCondition(' zoneName' ).startswith(
110+ ' demo' )) & FilterCondition(' zoneName' ).ne(' *.com' )
109111
110112for zone in client.dns.list_zones(filter = zone_filter):
111- print (zone)
113+ print (zone)
112114```
113115
114116This automatically builds the equivalent filter expression for the API:
0 commit comments