Skip to content
This repository was archived by the owner on Apr 5, 2025. It is now read-only.

Commit 88016f9

Browse files
committed
Merge branch 'basic_setup' into develop
2 parents 4760ca8 + 7e25aaf commit 88016f9

File tree

6 files changed

+60
-37
lines changed

6 files changed

+60
-37
lines changed

.bumpversion.cfg

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,28 @@
11
[bumpversion]
2-
current_version = 0.1.0
3-
commit = True
2+
current_version = 0.1.0-alpha.2
3+
commit = False
44
tag = False
55

6-
[bumpversion:file:src/bookstack/__init__.py]
6+
7+
parse =
8+
(?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+) # major, minor and patch
9+
(?:\-(?P<pre>(?:alpha|beta|rc))\.(?P<prenum>\d+))? # pre-release
10+
11+
serialize =
12+
{major}.{minor}.{patch}-{pre}.{prenum}
13+
{major}.{minor}.{patch}-{pre}
14+
{major}.{minor}.{patch}
15+
16+
[bumpversion:part:pre]
17+
values =
18+
alpha
19+
beta
20+
rc
21+
22+
[bumpversion:part:prenum]
23+
first_value = 1
24+
25+
26+
[bumpversion:file:src/bookstack/__version__.py]
27+
28+
[bumpversion:file:README.md]

CHANGELOG.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@
22
All notable changes to this project will be documented in this file.
33

44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0),
5-
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.hmtml)
5+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.hmtml).
66

77
## [Unreleased]
88

9-
## [Released]
10-
### [0.1.0] - YYYY-MM-DD
11-
Initial release
9+
## [Released]

README.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,29 @@
11
# bookstack
2+
version: 0.1.0-alpha.2
3+
24
A Python wrapper for [BookStack's](https://www.bookstackapp.com) API
35

4-
- TODO document examples
6+
# Installation
7+
To install `bookstack`, run:
8+
9+
`pip install bookstack`
10+
11+
# Usage
12+
To use BookStack's API, you'll need to get a token ID and secret.
13+
14+
You can find how to get these values from your BookStack instance's doc page at `http[s]://<example.com>/api/docs`
15+
16+
```python
17+
import bookstack
18+
19+
# Input the appropriate values for these three variables
20+
base_url = 'http[s]://<example.com>'
21+
token_id = '<token_id>'
22+
token_secret = '<token_secret'>
23+
24+
api = bookstack.BookStack(base_url, token_id=<token_id>, token_secret=<token_secret>)
25+
```
26+
27+
## TODO
28+
- Documentation
529
- Remove `tests` directory from `.gitignore`

src/bookstack/__init__.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1 @@
1-
__author__ = 'coffeepenbit'
2-
__description__ = "A Python wrapper for BookStack's API"
3-
__author_email__ = 'coffeepenbit@gmail.com'
4-
__maintainer__ = 'coffeepenbit'
5-
__title__ = 'bookstack'
6-
__url__ = "https://github.com/coffeepenbit/bookstack"
7-
__version__ = '0.1.0-alpha.2'
1+
from .models import BookStack

src/bookstack/__version__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
__author__ = 'coffeepenbit'
2+
__description__ = "A Python wrapper for BookStack's API"
3+
__author_email__ = 'coffeepenbit@gmail.com'
4+
__maintainer__ = 'coffeepenbit'
5+
__title__ = 'bookstack'
6+
__url__ = "https://github.com/coffeepenbit/bookstack"
7+
__version__ = '0.1.0-alpha.2'

src/bookstack/utils.py

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)