Skip to main content

An ALPS library for python

Project description

ALSP-PY

A python package to make implementing Application-Level Profile Semantics (ALPS) in projects.

Package Development

I am developing this package as part of work on the Open Distributed Information Service (ODIS). Hopefully, it will be useful beyond this project, but I am not ready to make any promises just yet. At the moment it should be considered an experimental work.

Related Work

There is also the WSTL-PY developed for the same reason, which helps with Web Service Transition Language (WSTL) implementations.

Feedback

Any feedback will be welcomed. Create an issue, or start a discussion on the ODIS repo

 

Usage

At the moment is is possible to create a valid ALPS representation from code:

alps = Alps(title='Sample API')
alps.add_doc(MarkDownDoc('A sample MarkDown documentation'))
alsp.add_descriptor(Semantic(
    id='identifier', 
    text='An identifier of a thing',
    ref='https://schema.org/identifier'
))
alsp.add_descriptor(Semantic(
    id='email', 
    text='Email address for a person or an organisation',
    ref='https://schema.org/email'
))
print(alps.to_data())

and the output is

{ 
    "alps": {
        "version": "1.0",
        "title": "Sample API",
        "doc": {
            "format": "markdown",
            "value": "A sample MarkDown documentation"
        },
        "descriptor": [
            { 
                "id": "identifier",
                "type": "semantic", 
                "text": "An identifier of a thing",
                "ref": "https://schema.org/identifier"
            },
            { 
                "id": "email",
                "type": "semantic", 
                "text": "Email address for a person or an organisation",
                "ref": "https://schema.org/identifier"
            }
        ]
    }
}

 

Plans

[ ] Abiility to read ALPS documents with validation [ ] Standard descriptors from Schema.org [ ] Integration with WSTL-PY project

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

alps-py-0.1.3.tar.gz (197.3 kB view details)

Uploaded Source

File details

Details for the file alps-py-0.1.3.tar.gz.

File metadata

  • Download URL: alps-py-0.1.3.tar.gz
  • Upload date:
  • Size: 197.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for alps-py-0.1.3.tar.gz
Algorithm Hash digest
SHA256 8f0ba9a2c5b40065dace986df7c5090a8d79a749456e4b2eb456806988d9c07e
MD5 e4621e38317baa66da0ca2d09eca1cbc
BLAKE2b-256 6ac2831147d2ec39b14bf30ff9b59d230a0e6b20993fec76cbd6c5006ad4c195

See more details on using hashes here.

Supported by

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