Skip to content

Commit d95da07

Browse files
author
Thomas
committed
updated documentation
1 parent b722e28 commit d95da07

File tree

6 files changed

+58
-79
lines changed

6 files changed

+58
-79
lines changed

Diff for: docs/authentication.rst

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
##############################################
2+
Authentication
3+
##############################################
4+
5+
By default you can get all the information from Netbox if the login_required option is set to False. If the option is
6+
set to True, you can access the api by username and password to GET the information. The API is only writable if you
7+
have a Token.
8+
9+
* Use the auth_token parameter for the writeable api
10+
* Use the auth parameter to use username and password. The auth parameter is a tuple ('username','password')

Diff for: docs/examples.rst

+1-16
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,12 @@
11
##############################################
2-
How to Use
2+
Examples
33
##############################################
44

5-
Authentication
6-
==============
7-
8-
By default you can get all the information from Netbox if the login_required option is set to False. If the option is
9-
set to True, you can access the api by username and password to GET the information. The API is only writable if you
10-
have a Token.
11-
12-
* Use the auth_token parameter for the writeable api
13-
* Use the auth parameter to use username and password. The auth parameter is a tuple ('username','password')
14-
15-
Usage
16-
=====
17-
185
To start with python-netbox client:
196

207
>>> from netbox import NetBox
218
>>> netbox = NetBox(host='127.0.0.1', port=32768, use_ssl=False, auth_token='token')
229

23-
Examples
24-
========
2510

2611
Get all devices:
2712

Diff for: docs/index.rst

+2-13
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,15 @@ Python Netbox Client
88

99
python-netbox is a client for the Netbox (https://github.com/digitalocean/netbox) API. It's based on the APIv2 which is released since version 2.0.0. It requires python 3.
1010

11-
Installation
12-
============
13-
14-
To get the latest version from Github::
15-
16-
pip install python-netbox
17-
1811

1912
Contents
2013
========
2114

2215
.. toctree::
23-
:maxdepth: 2
24-
:caption: Contents:
25-
26-
netbox
16+
installation
17+
authentication
2718
examples
2819

29-
30-
3120
Indices and tables
3221
==================
3322

Diff for: docs/installation.rst

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
##############################################
2+
Installation
3+
##############################################
4+
5+
6+
To get the latest version from Github::
7+
8+
pip install python-netbox
9+
10+
To install the latest version from the master branch::
11+
12+
pip install pip install https://github.com/jagter/python-netbox/archive/master.zip
13+

Diff for: docs/netbox.rst.old

-37
This file was deleted.

Diff for: docs/source/netbox.rst

+32-13
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,69 @@
11
netbox package
22
==============
33

4-
The ``dcim`` class
4+
Submodules
5+
----------
6+
7+
netbox.connection module
8+
------------------------
9+
10+
.. automodule:: netbox.connection
11+
:members:
12+
:undoc-members:
13+
:show-inheritance:
14+
15+
netbox.dcim module
516
------------------
617

7-
.. autoclass:: netbox.dcim
18+
.. automodule:: netbox.dcim
19+
:members:
20+
:undoc-members:
21+
:show-inheritance:
22+
23+
netbox.exceptions module
24+
------------------------
25+
26+
.. automodule:: netbox.exceptions
827
:members:
928
:undoc-members:
1029
:show-inheritance:
1130

12-
The ``extras`` class
31+
netbox.extras module
1332
--------------------
1433

15-
.. autoclass:: netbox.extras
34+
.. automodule:: netbox.extras
1635
:members:
1736
:undoc-members:
1837
:show-inheritance:
1938

20-
The ``ipam`` class
39+
netbox.ipam module
2140
------------------
2241

23-
.. autoclass:: netbox.ipam
42+
.. automodule:: netbox.ipam
2443
:members:
2544
:undoc-members:
2645
:show-inheritance:
2746

28-
The ``netbox`` class
47+
netbox.netbox module
2948
--------------------
3049

31-
.. autoclass:: netbox.netbox
50+
.. automodule:: netbox.netbox
3251
:members:
3352
:undoc-members:
3453
:show-inheritance:
3554

36-
The ``tenancy`` class
55+
netbox.tenancy module
3756
---------------------
3857

39-
.. autoclass:: netbox.tenancy
58+
.. automodule:: netbox.tenancy
4059
:members:
4160
:undoc-members:
4261
:show-inheritance:
4362

44-
The ``virtualization`` class
63+
netbox.virtualization module
4564
----------------------------
4665

47-
.. autoclass:: netbox.virtualization
66+
.. automodule:: netbox.virtualization
4867
:members:
4968
:undoc-members:
5069
:show-inheritance:
@@ -53,7 +72,7 @@ The ``virtualization`` class
5372
Module contents
5473
---------------
5574

56-
.. autoclass:: netbox
75+
.. automodule:: netbox
5776
:members:
5877
:undoc-members:
5978
:show-inheritance:

0 commit comments

Comments
 (0)