Skip to main content

Lightweight CalDAV/CardDAV server

Project description

Xandikos is a lightweight yet complete CardDAV/CalDAV server that backs onto a Git repository.

Xandikos (Ξανδικός or Ξανθικός) takes its name from the name of the March month in the ancient Macedonian calendar, used in Macedon in the first millennium BC.

Xandikos logo

Extended documentation can be found on the home page.

Implemented standards

The following standards are implemented:

  • RFC 4918/RFC 2518 (Core WebDAV) - implemented, except for LOCK operations (COPY/MOVE implemented for non-collections)

  • RFC 4791 (CalDAV) - fully implemented

  • RFC 6352 (CardDAV) - fully implemented

  • RFC 5397 (Current Principal) - fully implemented

  • RFC 3253 (Versioning Extensions) - partially implemented, only the REPORT method and {DAV:}expand-property property

  • RFC 3744 (Access Control) - partially implemented

  • RFC 5995 (POST to create members) - fully implemented

  • RFC 5689 (Extended MKCOL) - fully implemented

  • RFC 6578 (Collection Synchronization for WebDAV) - fully implemented

  • RFC 7953 (Calendar Availability) - fully implemented

The following standards are not implemented:

See DAV compliance for more detail on specification compliance.

Limitations

  • No multi-user support

Supported clients

Xandikos has been tested and works with the following CalDAV/CardDAV clients:

Dependencies

At the moment, Xandikos supports Python 3 (see pyproject.toml for specific version) as well as Pypy 3. It also uses Dulwich, Jinja2, icalendar, and defusedxml.

E.g. to install those dependencies on Debian:

sudo apt install python3-dulwich python3-defusedxml python3-icalendar python3-jinja2

Or to install them using pip:

python setup.py develop

Container

A Containerfile is also provided; see the comments on the top of the file for configuration instructions. The container image is regularly built and published at ghcr.io/jelmer/xandikos. For each release, a v$RELEASE tag is available - e.g. v0.2.11 for release 0.2.11. For a full list, see the Container overview page.

The container image can be configured using environment variables:

  • PORT - Port to listen on (default: 8000)

  • METRICS_PORT - Port for metrics endpoint (default: 8001)

  • LISTEN_ADDRESS - Address to bind to (default: 0.0.0.0)

  • DATA_DIR - Data directory path (default: /data)

  • CURRENT_USER_PRINCIPAL - User principal path (default: /user/)

  • ROUTE_PREFIX - URL route prefix (default: /)

  • AUTOCREATE - Auto-create directories (true/false)

  • DEFAULTS - Create default calendar/addressbook (true/false)

  • DEBUG - Enable debug logging (true/false)

  • DUMP_DAV_XML - Print DAV XML requests/responses (true/false)

  • NO_STRICT - Enable client compatibility workarounds (true/false)

  • EAGER - Pre-populate indexes at startup for faster initial queries (true/false)

See examples/docker-compose.yml and the man page for more info.

Running

Xandikos can either directly listen on a plain HTTP socket, or it can sit behind a reverse HTTP proxy.

Testing

To run a standalone (no authentication) instance of Xandikos, with a pre-created calendar and addressbook (storing data in $HOME/dav):

./bin/xandikos --defaults -d $HOME/dav

A server should now be listening on localhost:8080.

Note that Xandikos does not create any collections unless –defaults is specified. You can also either create collections from your CalDAV/CardDAV client, or by creating git repositories under the contacts or calendars directories it has created.

Production

The easiest way to run Xandikos in production is by running a reverse HTTP proxy like Apache or nginx in front of it. The xandikos script can either listen on the local host on a particular port, or it can listen on a unix domain socket.

For example init system configurations, see examples/.

Client instructions

Some clients can automatically discover the calendars and addressbook URLs from a DAV server (if they support RFC:5397). For such clients you can simply provide the base URL to Xandikos during setup.

Clients that lack such automated discovery require the direct URL to a calendar or addressbook. In this case you should provide the full URL to the calendar or addressbook; if you initialized Xandikos using the --defaults argument mentioned in the previous section, these URLs will look something like this:

http://dav.example.com/user/calendars/calendar

http://dav.example.com/user/contacts/addressbook

Contributing

Contributions to Xandikos are very welcome. If you run into bugs or have feature requests, please file issues on GitHub. If you’re interested in contributing code or documentation, please read CONTRIBUTING. Issues that are good for new contributors are tagged new-contributor on GitHub.

Help

There is a #xandikos IRC channel on the OFTC IRC network, and a Xandikos mailing list.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xandikos-0.3.7.tar.gz (230.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xandikos-0.3.7-py2.py3-none-any.whl (248.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file xandikos-0.3.7.tar.gz.

File metadata

  • Download URL: xandikos-0.3.7.tar.gz
  • Upload date:
  • Size: 230.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for xandikos-0.3.7.tar.gz
Algorithm Hash digest
SHA256 fad0941cc317f2f6b50a619dd078d97b671f598fe91158782782ce439aed2c81
MD5 5aac21bb30c1619adc29b01c6918a302
BLAKE2b-256 d14261db69f7824cdbcca3666e7add3ff1ede48f85119e1b18bb7f587d49c20b

See more details on using hashes here.

Provenance

The following attestation bundles were made for xandikos-0.3.7.tar.gz:

Publisher: wheels.yaml on jelmer/xandikos

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file xandikos-0.3.7-py2.py3-none-any.whl.

File metadata

  • Download URL: xandikos-0.3.7-py2.py3-none-any.whl
  • Upload date:
  • Size: 248.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for xandikos-0.3.7-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 cc18f22dd3d03b46820809776cf28be7e9c3b0bc2c5d254a52ad32394decbab5
MD5 c37d6113d0c724f04186bc9737495ff1
BLAKE2b-256 4f80bdabc81d7d8f75e2d23b43891552a7eefbee2a2fa61a03864010f5680e47

See more details on using hashes here.

Provenance

The following attestation bundles were made for xandikos-0.3.7-py2.py3-none-any.whl:

Publisher: wheels.yaml on jelmer/xandikos

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page