Skip to content

Commit

Permalink
Merge pull request #130 from axiomhq/arne/spring-cleaning-3
Browse files Browse the repository at this point in the history
Add classifiers to pyproject.toml, improve README
  • Loading branch information
darach authored Sep 12, 2024
2 parents 7998841 + f2cbafb commit fb1e962
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,16 @@ Alternatively, if you have the [`pip`](https://pip.pypa.io/) package installed,
pip3 install axiom-py
```

If you use the [Axiom CLI](https://github.com/axiomhq/cli), run `eval $(axiom config export -f)` to configure your environment variables.

Otherwise create a personal token in [the Axiom settings](https://cloud.axiom.co/profile) and export it as `AXIOM_TOKEN`. Set `AXIOM_ORG_ID` to the organization ID from the settings page of the organization you want to access.
Create an API token with the permissions you need in the
[Axiom settings](https://cloud.axiom.co/profile) and export it as
`AXIOM_TOKEN`.

You can also configure the client using options passed to the client constructor:

```py
import axiom_py

client = axiom_py.Client("<api token>", "<org id>")
client = axiom_py.Client("<api token>")
```

Create and use a client like this:
Expand Down
12 changes: 12 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,18 @@ dependencies = [
"ndjson>=0.3.1",
]
license = { file = "LICENSE" }
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Topic :: System :: Logging",

"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]

[project.urls]
Homepage = "https://axiom.co"
Expand Down

0 comments on commit fb1e962

Please sign in to comment.