Skip to main content

A addon for syncing metadata with nostr

Project description

eteaching.plone.nostrmetadatasync

Nostr integration for Plone.

eteaching.plone.nostrmetadatasync synchronises metadata of Plone contents with Nostr. This is done on the basis of subscribers (event handlers). When content is created, deleted or modified on the Plone website, corresponding Nostr events are created, signed and sent to predefined relias in the Nostr network. Two control panels are also provided. One is for settings, where you can specify which content types and filters should be used to select the content affected by synchronization. The second control panel can be used to create all events in the Nostre relays for the entire content selected using the settings, or to send delete events.

Features

  • Synchronizes metadata of event based objects (e.g. plone.app.event) with Nostr Time-Based Calendar Event (NIP-52)
  • Synchronizes metadata of objects with Nostr AMB Event (NIP-AMB)

Installation

Prerequisites ✅

Install eteaching.plone.nostrmetadatasync with pip

  1. Install

    pip install eteaching.plone.nostrmetadatasync
    
  2. Create the Plone site

    make create-site
    
  3. Start the Plone site

    make start
    

Install eteaching.plone.nostrmetadatasync with git 🔧

  1. Clone this repository, then change your working directory

    git clone git@github.com:e-teachingorg/eteaching.plone.nostrmetadatasync.git
    cd eteaching.plone.nostrmetadatasync
    
  2. Create environment

    python3.12 -m venv .
    bin/pip install uv
    source bin/activate
    
  3. Create an .env file to set NOST_KEY as an environment variable.

    vi .env
    
    NOSTR_KEY=MyPrivateNostrKey
    
  4. Install the code base

    make install
    
  5. Create the Plone site

    make create-site
    
  6. Start

    make start
    

Install eteaching.plone.nostrmetadatasync via buildout

  1. Add the following to buildout.cfg:

    [buildout]
    
    ...
    
    eggs =
        eteaching.plone.nostrmetadatasync
    
  2. Run buildout

    bin/buildout	
    
  3. Start

    bin/instance fg
    

Contribute

License

The project is licensed under the GPLv2.

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

eteaching_plone_nostrmetadatasync-1.0.0a0.tar.gz (28.8 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file eteaching_plone_nostrmetadatasync-1.0.0a0.tar.gz.

File metadata

File hashes

Hashes for eteaching_plone_nostrmetadatasync-1.0.0a0.tar.gz
Algorithm Hash digest
SHA256 7d26b879f742541dcdd413275c281823f6836f1e51e0fde83a40cea29d1abfcc
MD5 f413d8c309d233b916eab53960d947b5
BLAKE2b-256 18b704e962be004315f87829bebcd3eb63e6ac9ef84de2b0ac32e05612c0a24c

See more details on using hashes here.

File details

Details for the file eteaching_plone_nostrmetadatasync-1.0.0a0-py3-none-any.whl.

File metadata

File hashes

Hashes for eteaching_plone_nostrmetadatasync-1.0.0a0-py3-none-any.whl
Algorithm Hash digest
SHA256 95016a4e1524a16eff3b53ca4bb533a582120407a98aafd008602a4968307446
MD5 71e16688ff49c0b37a3b40f8955a71e1
BLAKE2b-256 b7f2f0e3478b839b4fe529c7a72e40ac75eef5a17222455259954401705376aa

See more details on using hashes here.

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