Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

moln {/mo:ln/}

Stupid simple access to Microsoft Azure services using Python. Built for the rest of us.

This is very much a work in progress. Feedback is welcome.

To install:

pip install moln
import pathlib

import moln.storage

# Authentication is done using the azure-identity package.
# By default, it will use the azure.identity.DefaultAzureCredential
account = moln.storage.attach(account_url='https://molntest.blob.core.windows.net')

# Creating containers - just like you create directories!
container = account / 'jabbadabbadoo'
container.mkdir(exists_ok=True)

local_file = pathlib.Path('./stuff.json')
remote_file = container / 'stuff.json'

# Upload blobs like you would upload files - with the option to
# specify metadata like Content-Type headers for the uploaded blob.
if not remote_file.exists():
    with local_file.open(mode='rb') as lf:
        with remote_file.open(mode='wb', content_settings=azure.storage.blob.ContentSettings(content_type='application/json')) as rb:
            rb.write(lf.read())

# Work with the blob as if you opened a local file
with remote_file.open(mode='r') as rb:
    import json
    data = json.load(rb)
    print(data)

Release files for moln 0.0.1a1

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

Source distribution (sdist)

Source distribution for moln 0.0.1a1
File Size Uploaded
moln-0.0.1a1.tar.gz 3.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for moln 0.0.1a1
File Interpreter ABI Platform
moln-0.0.1a1-py3-none-any.whl Python 3 none any Details

Total release size: 7.6 kB

Release files / moln-0.0.1a1.tar.gz

Download URL moln-0.0.1a1.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8d37e8e447f248357dc6b41c167d8392774ce69738346c70aba8e2d51c84b860
BLAKE2b-256 checksum
How to use checksums
12fae9ad62104c6886a44c8b572f81e3fcc535557bb8a67b4271121ff08be7ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.8.0

Release files / moln-0.0.1a1-py3-none-any.whl

Download URL moln-0.0.1a1-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5d16e12f30f925078f43b352bf9285c0adf0c89d87eb56dd7b2c3e849027a208
BLAKE2b-256 checksum
How to use checksums
57b8f6db371851f25577e4db35f5211f3ddf49590fe1377b24a8f7170c7ae3e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.8.0

Release history Release notifications | RSS feed

This release

0.0.1a1 This release

2 release files

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