Skip to main content

No project description provided

Project description

Famedly Control Synapse

PyPI - Version PyPI - Python Version


Table of Contents

Installation

pip install famedly-control-synapse

Configuration

Here are the available configuration options:

# the outer modules section is just provided for completeness, the config block is the actual module config.
modules:
  - module: "famedly_control_synapse.FamedlyControl"
    config:
        famedly_control:
          api_url: str = "", # Prefix of the current famedly control http API
          access_token: str = "", # Access token to authenticate against famedly control
        sync_enabled: bool = true, # Whether to run the background group membership sync loop
        sync_polling_interval_seconds: int = 30, # Interval in seconds between polling requests
        auth_provider: str = "", # The unique, internal ID of the external identity provider.

Testing

To create virtual env and install dependency:

hatch shell

The tests use pytest, with the development environment managed by Hatch. You can run the test suite and generate a coverage report with:

hatch run cov

Code Quality

Use hatch fmt to automatically format code, enforce style rules, and check types using:

  • black and isort for formatting
  • ruff for linting
  • mypy for static type checking

Check Code Without Modifying It

To check code quality without modifying files:

  • Check formatting with isort and black:
    hatch fmt --check -f
    
  • Check types and linting with mypy and ruff:
    hatch fmt --check -l
    
  • Check all of above, formatting, linting, and typing:
    hatch fmt --check
    

Auto-formatting Code

To automatically fix issues in the code:

  • Format only using black and isort:
    hatch fmt -f
    
  • Type checks(mypy) and lint, fixing autofixable ruff issues:
    hatch fmt -l
    
  • Run all tools, format, lint, type-check:
    hatch fmt
    

License

famedly-control-synapse is distributed under the terms of the AGPL-3.0 license.

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

famedly_control_synapse-0.0.1.tar.gz (71.1 kB view details)

Uploaded Source

Built Distribution

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

famedly_control_synapse-0.0.1-py3-none-any.whl (32.3 kB view details)

Uploaded Python 3

File details

Details for the file famedly_control_synapse-0.0.1.tar.gz.

File metadata

  • Download URL: famedly_control_synapse-0.0.1.tar.gz
  • Upload date:
  • Size: 71.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for famedly_control_synapse-0.0.1.tar.gz
Algorithm Hash digest
SHA256 eb1181bb5849224e8648836e3c7afff6248a0b9d92ca263052df76a379486a3d
MD5 98bc8fd1d4898877ccfb5a332c1bc550
BLAKE2b-256 2fe4c6061c2755043e5978d4aa18aea339a57e82d03046716e4adb372b83065a

See more details on using hashes here.

Provenance

The following attestation bundles were made for famedly_control_synapse-0.0.1.tar.gz:

Publisher: publish.yml on famedly/famedly-control-synapse

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

File details

Details for the file famedly_control_synapse-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for famedly_control_synapse-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 76cc842bf6451af92d31e1e919ae5a79d6c8266acbf5e3d43a75233da380401b
MD5 9b2686b8ee0bd2cb3f545d4cb0e76e96
BLAKE2b-256 8b41d072e3a912e8bdb3ecc631c8785237a43893d29a01e76368a125d5b8f520

See more details on using hashes here.

Provenance

The following attestation bundles were made for famedly_control_synapse-0.0.1-py3-none-any.whl:

Publisher: publish.yml on famedly/famedly-control-synapse

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