Skip to main content

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.

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

Metadata

Release files for alps-py 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for alps-py 0.2.0
File Interpreter ABI Platform
alps_py-0.2.0-py3.10.egg Legacy Egg format - - Details

Release files / alps_py-0.2.0-py3.10.egg

Download URL alps_py-0.2.0-py3.10.egg
Size 402.7 kB
Tags Egg
SHA-256 checksum
How to use checksums
f3efe4c4b737e89a087e06fc3816246aa7071117f5f4c71603cb095d73c94a81
BLAKE2b-256 checksum
How to use checksums
1eb3a5ec65211e0fd50ca84a22952a06d7f5be5c70dc5bffce9091acf117add8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

Release history Release notifications | RSS feed

This release

0.2.0 This release

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page