aputils/docs/usage.rst
2022-11-24 19:44:24 -05:00

514 B

Usage

Each class and function in the API section can either be imported or accessed straight from the module. The following two code blocks do the same thing.

import aputils
from pathlib import Path

signer = aputils.Signer(Path('privkey.pem'), 'https://social.example.com/users/cheese_wedge#main-key')
from aputils import Signer
from pathlib import Path

signer = Signer(Path('privkey.pem'), 'https://social.example.com/users/cheese_wedge#main-key')