Initial refactoring, test for initialization of client
[diaspy.git] / manual / connecting_to_pod.mdown
CommitLineData
94c2d637
MM
1#### Connecting to D* pod via `diaspy`
2###### [Index](index.mdown)
3----
4
5First thing you have to do is to create new instace of `Client()`.
6Then, if no errors are raised, you can `_login()` to the pod with given username and password.
7
8 client = diaspy.Client(pod="http://pod.example.com/", username="foo", password="bar")
9 client._login()
10
11
12If everything worked you are now connected to D* pod at given URL.