Skip to main content

Provides a convenient way to append numpy arrays to a file.

The NpendWriter and NpendReader classes are used to write and read numpy arrays respectively.

Requirements

  • numpy
  • sip

Usage

    #! -*- coding:utf-8 -*-
    from npend import NpendWriter, NpendReader
    import numpy as np
    if __name__=="__main__":
        filePath="test.npd"
        nw=NpendWriter(filePath)
        arr=np.random.random((34,5,6))# Write an array that has three dimensions.
        nw.append(arr)# Keep the size of the last two dimensions the same as the data written before.
        arr=np.random.random((10,5,6))
        nw.append(arr)
        arr=np.random.random((5,6))# Write an array with two dimensions.
        nw.append(arr)
        nw.close()
        nr=NpendReader(filePath)
        arr=nr.read()# Load numpy array from file.
        print(arr.shape,arr.dtype)
	

Metadata

Release files for npend 1.0.1

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

Source distribution (sdist)

Source distribution for npend 1.0.1
File Size Uploaded
npend-1.0.1.tar.gz 11.3 kB Details

Built distribution (wheel)

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

Total release size: 23.0 kB

Release files / npend-1.0.1.tar.gz

Download URL npend-1.0.1.tar.gz
Size 11.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ec74b3b65be2d1248455d67ef6ce16a5ef8188feb4a7f7731e9cb10dc8d0abaf
BLAKE2b-256 checksum
How to use checksums
dab88aa9dcffb90216b739ec737c1e09f4af949e721f2833f46da16b52f14c5d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/0.0.0 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8

Release files / npend-1.0.1-py3-none-any.whl

Download URL npend-1.0.1-py3-none-any.whl
Size 11.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
265776ad8369a4044a14602106b7d68202419c107eaa0cbff75144fac18cecc4
BLAKE2b-256 checksum
How to use checksums
6f72f9422177c920acb34c0de61369eb1872823440e07079cabd88e5ff9d4881
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/0.0.0 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8

Release history Release notifications | RSS feed

This release

1.0.1 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