Skip to main content

nephelai logo

nephelai

Actions Status Documentation Status Stable python versions Code style: black

A helper library to upload/download files to/from a password-protected shared nextcloud folder. The link and password are read from your .env to enable project-specific shared folders. Because Nextcloud does not enable chunked uploads for shared folders and your files can hit the size limit, your files are uploaded in chunks if needed and reconstructed after download.

Usage

Create a .env file in your project root. Remember to add this file to your .gitignore and always keep it secure to keep your secrets! Your .env should contain:

NEXTCLOUD_FOLDER_URI="uri_of_the_shared_folder"
NEXTCLOUD_FOLDER_PW="pw_of_the_folder"

Then you can interact with the folder in a variety of ways. Alternatively, you can set this environment variables yourself with your preferred method.

Via CLI:

nephelai upload mytestfile.txt anextcloud/path/thatwillbecreatedifneeded/
nephelai download anextcloud/path/thatwillbecreatedifneeded/mytestfile.txt

You can also upload folders including the file structure:

tests/resources
├── mymatrix.npy
└── subfolder
    └── testfile.txt

Using the upload-with-fs command:

nephelai upload-with-fs tests/resources

Which is just syntactic sugar for:

nephelai upload tests/resources tests/resources

Downloading can be done accordingly:

nephelai download tests

Which will download it to your current directory. You can also specify the download path:

nephelai download tests --local-path /tmp/

This download the folder as:

/tmp/tests
└── resources
    ├── mymatrix.npy
    └── subfolder
        └── testfile.txt

Using

nephelai ls tests

you can show the files in the tests directory.

You can get help for each command via the --help flag.

Via Python:

from nephelai import upload, download

upload("tests/resources", "tests/resources")
file_dl_path = "/tmp/mymatrix.npy"
download("tests/resources/mymatrix.npy",file_dl_path)

import numpy as np

mymatrix = np.load(file_dl_path)

Installation

pip install nephelai

Metadata

Release files for nephelai 0.2.0

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

Source distribution (sdist)

Source distribution for nephelai 0.2.0
File Size Uploaded Provenance Actions
nephelai-0.2.0.tar.gz 8.5 kB Without provenance Details for nephelai-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nephelai 0.2.0
File Interpreter ABI Platform Actions
nephelai-0.2.0-py3-none-any.whl Python 3 none any Details for nephelai-0.2.0-py3-none-any.whl

Total release size: 16.4 kB

Release files / nephelai-0.2.0.tar.gz

Download URL nephelai-0.2.0.tar.gz
Size 8.5 kB
Tags Source
SHA-256 checksum
How to use checksums
16dcc34765a67359a48bcfcf29f9c28798fbdc609d3df0be81bf613ac5a700db
BLAKE2b-256 checksum
How to use checksums
87a808e01cd4fae02d6a510d3031a8d013a75157d703fd5b2ad8145c32e6a128
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.1 CPython/3.10.6 Linux/5.19.0-38-generic

Release files / nephelai-0.2.0-py3-none-any.whl

Download URL nephelai-0.2.0-py3-none-any.whl
Size 7.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
33d3e8d226227d26ebeba291d261b69bcc40d6279dc49e88b00cb0487e867215
BLAKE2b-256 checksum
How to use checksums
d4ed7502b5c7003d02c15b23ec6cf58d1df1016443efc768ddb638c2fa3b87b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.1 CPython/3.10.6 Linux/5.19.0-38-generic

Security for nephelai 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

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