Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 0.30 instead.
Reason given by maintainers: missing __init__.py for slapos package

Introduction

The goal of libnetworkcache python library is to abstract the HTTP calls. It works as wrapper of python httplib to use the Networkcache HTTP Server.

The Networkcache HTTP Server are sub-divided into two Web services:
  • SHACACHE

  • SHADIR

SHACACHE

It is a simple HTTP Server used to cache files.

SHADIR

It is a simple HTTP Server used to cache information, working like a directory.

API

Please see slapos/libnetworkcache.py and slapos/libnetworkcachetests.py

Changes

0.29 (2026-09-14)

  • remove deprecated __init__.py

  • test: fix tests after moving from openssl 3.0 to 3.5

  • fixup! Add support for python3.12

0.28 (2025-04-25)

  • Support python3.13

  • Totally remove usage of pyOpenSSL egg (versions >= 24.3.0 were not working anymore)

0.27 (2024-09-27)

  • Support python3.12

0.26 (2024-04-15)

  • upload: Support metadata in json file

  • New –id command-line option for download & upload

  • Add metadata selection when downloading.

  • Remove uneeded ugly helper (NetworkCache)

0.25 (2022-04-05)

  • generate-signature-key: improve options.

0.24 (2022-03-30)

  • Fix upload on Python 3 when pyOpenSSL is not available.

  • download,upload: fix –url help.

  • generate-signature-key: get output path from command line rather than configuration file.

0.23 (2022-03-28)

  • Require private key to have a matching certificate.

  • Do not require useless metadata.

  • New tryDownload/tryUpload methods.

0.22 (2021-12-08)

  • Move _verifySignatureInCertificateList to a public method

0.21 (2021-09-28)

  • Support python3.9 (remove usage of deprecated functions)

0.20 (2019-12-03)

  • Drop wrong signature certificates with message and without failing.

0.19 (2019-08-03)

  • Fix download auto retrying function.

0.18 (2019-08-02)

  • Add download auto retrying function.

0.17 (2019-06-07)

  • Fix checksum verification of downloaded data when .read() is used.

0.16 (2018-06-15)

  • Verify checksum of downloaded data.

  • Make indexing optional when uploading from command-line.

0.15 (2017-06-09)

  • Add support for Python 3.

  • cli: new –suffix-key option.

0.14.5 (2015-09-25)

  • Support shacache-ca-file and shadir-ca-file options in networkcachehelper.

0.14.4 (2015-09-24)

  • Add shacache-ca-file and shadir-ca-file options, that are required to use a self-signed server certificate in python >= 2.7.9.

0.14.3 (2015-09-07)

  • Make information dict use str instead of unicode.

0.14.2 (2014-10-09)

  • Compatibility with pyOpenSSL >= 0.14

0.14.1 (2014-03-17)

  • Use ‘openssl’ executable if pyOpenSSL is not available.

0.14 (2013-07-12)

  • New scripts to download & upload manually from command line.

  • Small API changes. slapos.networkcachehelper is deprecated.

  • Many bugfixes and code cleanup.

  • Performance/reliability improvements, by:

    • using pyOpenSSL instead of spawning openssl subprocesses

    • reducing the number of created temporary files

0.13.4 (2013-05-13)

  • Define timeouts for every connection we initiate. May allow not to hang forever in a hostile environment when connection to networkcache server can stall / be reset.

0.13.3 (2012-12-11)

  • Don’t use logger.debug() but logger.info() in helpers so that it doesn’t. silent an error.

0.13.2 (2012-09-04)

  • Fix regression where multiple certificates caused most of them to be ignored.

0.13.1 (2012-09-04)

  • Correctly return False if no entry is found while downloading.

0.13 (2012-09-02)

  • Add high-level helper functions to easily download/upload to networkcache.

  • Set timeout in httplib connections.

  • networkcache won’t stupidly loop for 1000 iterations if “certificate” parameter is a string instead of a list.

0.12 (2012-02-09)

  • Binary cache support.

0.11 (2011-12-14)

  • If given key has multiple signed values pick up the first one.

0.10 (2011-09-05)

  • Create infinite certificates.

0.9 (2011-09-02)

  • Bugfix: Do not trust received content.

0.8 (2011-09-02)

  • Bugfix: Do not try to validate against empty signatures.

0.7 (2011-09-02)

  • Remove M2Crypto dependency and rely on openssl binary presence.

  • Fix signing and verification.

  • Simplify key generation and use slapos.cfg file by default.

  • Internals: Increase test coverage.

0.6 (2011-08-31)

  • Authentication keys are supported.

0.5 (2011-08-25)

  • Re-implemente signature support.

  • Follow corrected specification.

  • internals: Use urllib2.

0.4 (2011-08-10)

  • Implement signature checking of downloaded content.

0.3 (2011-08-03)

  • Deal with proxy in correct way.

0.2 (2011-07-01)

  • Incompatible change: NetworkcacheClient.download returns opened temporary file object, which will be deleted on close. This minimises memory footprint.

  • Minimise memory footprint during upload.

  • Use PUT instead of POST during upload.

0.1 (2011-06-23)

  • Initial version.

Metadata

Release files for slapos.libnetworkcache 0.29

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

Source distribution (sdist)

Source distribution for slapos.libnetworkcache 0.29
File Size Uploaded
slapos_libnetworkcache-0.29.tar.gz 25.8 kB Details

Release files / slapos_libnetworkcache-0.29.tar.gz

Download URL slapos_libnetworkcache-0.29.tar.gz
Size 25.8 kB
Tags Source
SHA-256 checksum
How to use checksums
cb81d26e5946ddc4aef0cde54f31b232c9e00bee86dfa579857902d3d10b1462
BLAKE2b-256 checksum
How to use checksums
6dda09d2e2df94742834adaa34cc8520e4c0a96748ca4232dd0bef9634604a4d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release history Release notifications | RSS feed

0.30

1 release file

This release

0.29 This release

1 release file

0.28

1 release file

0.27

1 release file

0.26

1 release file

0.25

1 release file

0.24

1 release file

0.23

1 release file

0.22

1 release file

0.21

1 release file

0.20

1 release file

0.19

1 release file

0.18

1 release file

0.17

1 release file

0.16

1 release file

0.15

1 release file

0.14.5

1 release file

0.14.4

1 release file

0.14.3

1 release file

0.14.2

1 release file

0.14.1

1 release file

0.13.4

1 release file

0.13.3

1 release file

0.13.2

1 release file

0.13.1

1 release file

0.13

1 release file

0.12

1 release file

0.11

1 release file

0.10

1 release file

0.9

1 release file

0.8

1 release file

0.7

1 release file

0.6

1 release file

0.5

1 release file

0.4

1 release file

0.3

1 release file

0.2

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