Compare commits
No commits in common. "654a1234585d06e6b89c4e8e707fd01384eaf0b2" and "4dad8eb1e7976bc8d8eb3d6a54e855c2e17e3ee3" have entirely different histories.
654a123458
...
4dad8eb1e7
4 changed files with 3 additions and 64 deletions
|
|
@ -1,13 +1,5 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
# 0.7.0
|
|
||||||
|
|
||||||
- Added different classes responsible for determining host IP
|
|
||||||
- Changed cli usage from `transip-client` to `transip-update`
|
|
||||||
- Added Dockerfile
|
|
||||||
- Added editorconfig configuration file
|
|
||||||
- Added README
|
|
||||||
|
|
||||||
# 0.6.0
|
# 0.6.0
|
||||||
|
|
||||||
- Replaced dns query usage with calling an external API
|
- Replaced dns query usage with calling an external API
|
||||||
|
|
|
||||||
53
README.md
53
README.md
|
|
@ -1,53 +0,0 @@
|
||||||
# Transip client
|
|
||||||
|
|
||||||
A simple command line client for updating DNS records with the Transip API. It does
|
|
||||||
so by determining the current hosts (external) IP address and accordingly updates
|
|
||||||
the records DNS for the given domain names.
|
|
||||||
|
|
||||||
## Installation
|
|
||||||
|
|
||||||
Installation can be done through using uv:
|
|
||||||
|
|
||||||
```
|
|
||||||
$ uv sync --frozen --no-dev
|
|
||||||
```
|
|
||||||
|
|
||||||
Or through the provided Dockerfile:
|
|
||||||
|
|
||||||
```
|
|
||||||
$ docker image build --tag transip-client:0.7.0 .
|
|
||||||
```
|
|
||||||
|
|
||||||
Optional dependencies can be installed with:
|
|
||||||
|
|
||||||
```
|
|
||||||
$ uv sync --frozen --no-dev --extra sentry-enabled
|
|
||||||
```
|
|
||||||
|
|
||||||
For docker installations optional dependencies can be installed with:
|
|
||||||
|
|
||||||
```
|
|
||||||
$ docker image build \
|
|
||||||
--build-arg UV_ARGS="--extra sentry-enabled" \
|
|
||||||
--tag transip-client:0.7.0 .
|
|
||||||
```
|
|
||||||
|
|
||||||
## Usage
|
|
||||||
Use the help option to show all available options:
|
|
||||||
|
|
||||||
```
|
|
||||||
transip-update --help
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
## Configuration
|
|
||||||
|
|
||||||
The client can be configured with the following environment variables:
|
|
||||||
|
|
||||||
`LOGGING_CONFIG`: Specifies the path for the [logging configuration](https://docs.python.org/3.11/library/logging.html) to be used. Note that both `LOGGING_CONFIG_SRC` and `LOGGING_CONFIG_DST` can be used when building the docker image to achieve similar results.
|
|
||||||
|
|
||||||
`VERSION`: Application version. The client will try to retrieve this through git if it is not set.
|
|
||||||
|
|
||||||
`SENTRY_DSN`: Optionally used for specifying Sentry's DSN
|
|
||||||
|
|
||||||
`ENVIRONMENT`: Optionally used for specifying the environment in Sentry
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
[project]
|
[project]
|
||||||
name = "transip_client"
|
name = "transip_client"
|
||||||
version = "0.7.0"
|
version = "0.5.0"
|
||||||
description = "Listens for changes about the current public IP and acts upon it."
|
description = "Listens for changes about the current public IP and acts upon it."
|
||||||
authors = [{name = "Sonny"}]
|
authors = [{name = "Sonny", email= "sonnyba871@gmail.com"}]
|
||||||
license = {text = "GPL-3.0"}
|
license = {text = "GPL-3.0"}
|
||||||
requires-python = ">=3.11"
|
requires-python = ">=3.11"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
|
|
|
||||||
2
uv.lock
generated
2
uv.lock
generated
|
|
@ -270,7 +270,7 @@ wheels = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "transip-client"
|
name = "transip-client"
|
||||||
version = "0.7.0"
|
version = "0.5.0"
|
||||||
source = { editable = "." }
|
source = { editable = "." }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
{ name = "click", marker = "sys_platform == 'linux'" },
|
{ name = "click", marker = "sys_platform == 'linux'" },
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue