shippinglabel
Utilities for handling packages.
Docs |
|
---|---|
Tests |
|
PyPI |
|
Anaconda |
|
Activity |
|
QA |
|
Other |
Installation
python3 -m pip install shippinglabel --user
First add the required channels
conda config --add channels https://conda.anaconda.org/conda-forge
Then install
conda install shippinglabel
python3 -m pip install git+https://github.com/domdfcoding/shippinglabel@master --user
shippinglabel
includes a vendored copy of trove-classifiers.
If you install a newer version of trove-classifiers
with pip shippinglabel
will use that version instead.
Contents
shippinglabel
Utilities for handling packages.
Functions:
|
Returns the web links for the given project. |
|
Returns the subset of |
|
Returns the subset of |
|
Normalize the given name for PyPI et al. |
|
Normalize the given name for PyPI et al., but keep dots in namespace packages. |
|
Reads the |
-
get_project_links
(project_name, path=None)[source] Returns the web links for the given project.
The exact keys vary, but common keys include “Documentation” and “Issue Tracker”.
New in version 0.12.0.
- Parameters
- Return type
Changed in version 1.0.0: Now returns a
dist_meta.metadata_mapping.MetadataMapping
object.Changed in version 1.2.0: The Home-Page field from Python core metadata is included under the
Homepage
key, if present. This matches the output parsed from PyPI for packages which are not installed.Changed in version 1.7.0: Added the
path
argument.
-
no_pre_versions
(versions)[source] Returns the subset of
versions
which are not prereleases (alpha, beta, dev, rc etc.).New in version 0.15.0.
shippinglabel.checksum
Utilities for creating and checking file sha256 checksums.
New in version 0.6.0.
Functions:
|
Returns the SHA256 hash object for the given file. |
|
Returns whether the SHA256 hash for the file matches |
|
Returns the md5 hash object for the given file. |
|
Constructs a PEP 376 |
-
get_sha256_hash
(filename, blocksize=1048576)[source] Returns the SHA256 hash object for the given file.
New in version 0.6.0.
- Parameters
- Return type
Changed in version 0.16.0: Added support for already open file objects.
-
check_sha256_hash
(filename, hash, blocksize=1048576)[source] Returns whether the SHA256 hash for the file matches
hash
.New in version 0.6.0.
- Parameters
- Return type
Changed in version 0.16.0: Added support for already open file objects.
-
get_md5_hash
(filename, blocksize=1048576)[source] Returns the md5 hash object for the given file.
New in version 0.15.0.
- Parameters
- Return type
Changed in version 0.16.0: Added support for already open file objects.
shippinglabel.classifiers
Utilities for working with trove classifiers.
Functions:
|
Returns an iterator over suggested trove classifiers based on the given requirements. |
|
Validate a list of trove classifiers. |
-
classifiers_from_requirements
(requirements)[source] Returns an iterator over suggested trove classifiers based on the given requirements.
New in version 0.5.0.
- Parameters
requirements (
Collection
[ComparableRequirement
])- Return type
shippinglabel.conda
Attention
This module is deprecated and will be removed in v2.0.0.
Please use the new shippinglabel_conda
extension instead.
Functions to aid building of conda packages.
New in version 0.7.0.
Data:
Instance of |
Functions:
|
Clear the cached Conda channel listings. |
|
Compile a list of requirements for the package from the |
|
Obtain the list of packages in the given Conda channel, either from the cache or from the Conda API. |
|
Create a description for the Conda package from its summary and a list of channels required to install it. |
|
Prepare a list of requirements for use with conda. |
|
Ensure that all requirements are available from the given Conda channels, and normalize the names to those in the Conda channel. |
-
CONDA_API
= SlumberURL('https://conda.anaconda.org') Type:
SlumberURL
Instance of
apeye.slumber_url.SlumberURL
for accessing the Conda API.New in version 0.7.0.
-
clear_cache
(*channel_name)[source] Clear the cached Conda channel listings.
New in version 0.7.0.
- Parameters
*channel_name (
str
) – The name(s) of the channels to clear the cache for.
If no arguments are given the cache is cleared for all channels.
-
compile_requirements
(repo_dir, extras=())[source] Compile a list of requirements for the package from the
requirements.txt
file, and any extra dependencies.New in version 0.7.0.
- Parameters
- Return type
-
get_channel_listing
(channel_name)[source] Obtain the list of packages in the given Conda channel, either from the cache or from the Conda API.
Responses are cached for 48 hours. The cache can be cleared manually with
clear_cache()
.New in version 0.7.0.
- Parameters
channel_name (
str
)- Raises
ValueError – if the channel can’t be found (New in version 0.15.0).
- Return type
-
make_conda_description
(summary, conda_channels=())[source] Create a description for the Conda package from its summary and a list of channels required to install it.
The description will look like:
This is my fancy Conda package. Hope you like it 😉. Before installing please ensure you have added the following channels: conda-forge, bioconda
if called as follows:
make_conda_description( "This is my fancy Conda package. Hope you like it 😉.", ["conda-forge", "bioconda"], )
New in version 0.8.0.
-
prepare_requirements
(requirements)[source] Prepare a list of requirements for use with conda.
This entails removing any extras and markers from the requirements, and skipping any requirements with URLs, as conda does not support these.
New in version 0.13.0.
- Parameters
requirements (
Iterable
[ComparableRequirement
])- Return type
-
validate_requirements
(requirements, conda_channels)[source] Ensure that all requirements are available from the given Conda channels, and normalize the names to those in the Conda channel.
New in version 0.7.0.
- Parameters
requirements (
Iterable
[ComparableRequirement
])
- Return type
shippinglabel.pypi
Attention
This module is deprecated and will be removed in v2.0.0.
Please use the new shippinglabel_pypi
extension instead.
Utilities for working with the Python Package Index (PyPI).
New in version 0.2.0.
See also
pypi-json, which provides some of the functionality from this module but with a reusable HTTP session and support for authentication with other endpoints (such as a private package repository).
Classes:
|
Data:
Instance of |
Functions:
|
Bind unbound requirements in the given file to the latest version on PyPI, and any later versions. |
|
Download the file with the given URL into the given (temporary) directory. |
|
Returns the version number of the latest release on PyPI for the given project. |
|
Returns metadata for the given project on PyPI. |
|
Returns a dictionary mapping PyPI release versions to download URLs. |
|
Returns a dictionary mapping PyPI release versions to download URLs and the sha256sum of the file contents. |
|
Returns the URL of the project’s source distribution on PyPI. |
|
Constructs a mapping of wheel tags to the PyPI download URL of the wheel with relevant tag. |
|
Returns the URL of one of the project’s wheels on PyPI. |
-
typeddict
FileURL
[source] Bases:
TypedDict
typing.TypedDict
representing the output ofget_releases_with_digests()
.New in version 0.6.1.
-
PYPI_API
= SlumberURL('https://pypi.org/pypi') Type:
SlumberURL
Instance of
apeye.slumber_url.SlumberURL
which points to the PyPI REST API.Changed in version 0.3.0: Now an instance of
apeye.slumber_url.SlumberURL
.
-
bind_requirements
(filename, specifier='>=', normalize_func=<function 'normalize'>)[source] Bind unbound requirements in the given file to the latest version on PyPI, and any later versions.
New in version 0.2.0.
- Parameters
Changed in version 0.2.3: Added the
normalize_func
keyword-only argument.- Return type
- Returns
1
if the file was changed;0
otherwise.
-
get_file_from_pypi
(url, tmpdir)[source] Download the file with the given URL into the given (temporary) directory.
New in version 0.6.0.
-
get_latest
(pypi_name)[source] Returns the version number of the latest release on PyPI for the given project.
New in version 0.2.0.
- Parameters
pypi_name (
str
)- Raises
packaging.requirements.InvalidRequirement
if the project cannot be found on PyPI.apeye.slumber_url.exceptions.HttpServerError
if an error occurs when communicating with PyPI.
- Return type
-
get_metadata
(pypi_name)[source] Returns metadata for the given project on PyPI.
New in version 0.2.0.
- Parameters
pypi_name (
str
)- Raises
packaging.requirements.InvalidRequirement
if the project cannot be found on PyPI.apeye.slumber_url.exceptions.HttpServerError
if an error occurs when communicating with PyPI.
- Return type
-
get_pypi_releases
(pypi_name)[source] Returns a dictionary mapping PyPI release versions to download URLs.
New in version 0.3.0.
- Parameters
pypi_name (
str
) – The name of the project on PyPI.- Raises
packaging.requirements.InvalidRequirement
if the project cannot be found on PyPI.apeye.slumber_url.exceptions.HttpServerError
if an error occurs when communicating with PyPI.
- Return type
-
get_releases_with_digests
(pypi_name)[source] Returns a dictionary mapping PyPI release versions to download URLs and the sha256sum of the file contents.
New in version 0.6.0.
- Parameters
pypi_name (
str
) – The name of the project on PyPI.- Raises
packaging.requirements.InvalidRequirement
if the project cannot be found on PyPI.apeye.slumber_url.exceptions.HttpServerError
if an error occurs when communicating with PyPI.
- Return type
-
get_sdist_url
(name, version, strict=False)[source] Returns the URL of the project’s source distribution on PyPI.
New in version 0.13.0.
- Parameters
Attention
If no source distribution is found this function may return a wheel or “zip” sdist unless
strict
isTrue
.Changed in version 0.15.0: Added the
strict
argument.- Return type
-
get_wheel_tag_mapping
(name, version)[source] Constructs a mapping of wheel tags to the PyPI download URL of the wheel with relevant tag.
This can be used alongside
packaging.tags.sys_tags()
to select the best wheel for the current platform.New in version 0.15.0.
-
get_wheel_url
(name, version, strict=False)[source] Returns the URL of one of the project’s wheels on PyPI.
For finer control over which wheel the URL is for see the
get_wheel_tag_mapping()
function.New in version 0.15.0.
- Parameters
Attention
If no wheels are found this function may return an sdist unless
strict
isTrue
.- Return type
shippinglabel.requirements
Utilities for working with PEP 508 requirements.
Classes:
|
Represents a PEP 508 requirement. |
|
Abstract base class for managing requirements files. |
Functions:
|
Check whether one or more dependencies are available to be imported. |
|
Combine duplicated requirements in a list. |
|
Returns an iterator over the requirements of the given library, and the requirements of those requirements. |
|
Parse the project’s dependencies from its |
|
Parse the project’s extra dependencies from its |
|
Parse the given strings as PEP 508 requirements. |
|
Reads PEP 508 requirements from the given file. |
|
Resolve duplicated and overlapping requirement specifiers. |
-
class
ComparableRequirement
(requirement_string)[source] Bases:
Requirement
Represents a PEP 508 requirement.
Can be compared to other requirements. A list of
ComparableRequirement
objects can be sorted alphabetically.Methods:
__eq__
(other)Return
self == other
.__ge__
(other)Return
self >= other
.__gt__
(other)Return
self > other
.__le__
(other)Return
self <= other
.__lt__
(other)Return
self < other
.
-
class
RequirementsManager
(repo_path)[source] Bases:
ABC
Abstract base class for managing requirements files.
When invoked with run, the methods are called in the following order:
Methods:
Add and remove requirements depending on the configuration by modifying the
target_requirements
attribute.Returns a list of normalized names for the target requirements, including any added by
compile_target_requirements
.Merge requirements already in the file with the target requirements.
normalize
(name)Normalize the given name for PyPI et al.
Create the requirements file if necessary, and in any case return its filename.
Remove requirements given in the library’s
requirements.txt
file.run
()Update the list of requirements and return the name of the requirements file.
write_requirements
(comments)Write the list of requirements to the file.
Attributes:
The path of the requirements file, relative to the repository root.
The static target requirements
-
compile_target_requirements
()[source] Add and remove requirements depending on the configuration by modifying the
target_requirements
attribute.This method may not return anything.
-
filename
Type:
Union
[str
,Path
,PathLike
]The path of the requirements file, relative to the repository root.
-
get_target_requirement_names
()[source] Returns a list of normalized names for the target requirements, including any added by
compile_target_requirements
.
-
merge_requirements
()[source] Merge requirements already in the file with the target requirements.
Requirements may be added, changed or removed at this stage by modifying the
target_requirements
attribute.
-
prep_req_file
()[source] Create the requirements file if necessary, and in any case return its filename.
- Return type
-
remove_library_requirements
()[source] Remove requirements given in the library’s
requirements.txt
file.This method may not return anything.
-
run
()[source] Update the list of requirements and return the name of the requirements file.
- Return type
-
target_requirements
Type:
Set
[ComparableRequirement
]The static target requirements
Changed in version 0.4.0: Previously this was a set of
packaging.requirements.Requirement
.
-
check_dependencies
(dependencies, prt=True)[source] Check whether one or more dependencies are available to be imported.
- Parameters
- Return type
- Returns
A list of any missing modules.
Deprecated since version 1.6.0: This will be removed in 2.0.
-
combine_requirements
(requirement, *requirements, normalize_func=<function 'normalize'>)[source] Combine duplicated requirements in a list.
Changed in version 0.2.1: Added the
normalize_func
keyword-only argument.Changed in version 0.3.1: Requirements are no longer combined if their markers differ.
- Parameters
requirement (
Union
[str
,Requirement
,Iterable
[Union
[str
,Requirement
]]]) – A single requirement, or an iterable of requirements.requirements – Additional requirements.
normalize_func (
Callable
[[str
],str
]) – Function to use to normalize the names of requirements. Defaultshippinglabel.normalize()
.
- Return type
-
list_requirements
(name, depth=1, path=None)[source] Returns an iterator over the requirements of the given library, and the requirements of those requirements.
The iterator is structured as follows:
[ <requirement a>, [ <requirement 1 of requirement a>, <requirement 2 of requirement a>, [<requirements of requirement 2>, ...], <requirement 3 of requirement a>, ], <requirement b>, ]
- Parameters
Changed in version 0.8.2: The requirements are now sorted alphabetically.
Changed in version 1.7.0: Added the
path
argument.
-
parse_pyproject_dependencies
(pyproject_file, flavour='auto', *, normalize_func=<function 'normalize'>)[source] Parse the project’s dependencies from its
pyproject.toml
file.New in version 0.10.0.
- Parameters
flavour (
Literal
['pep621'
,'flit'
,'auto'
]) – Either'pep621'
to parse from the PEP 621dependencies
table, or'flit'
to parse therequires
key intool.flit.metadata`. The string ``'auto
will use'pep621'
if available, otherwise try'flit'
. Default'auto'
.normalize_func (
Callable
[[str
],str
]) – Function to use to normalize the names of dependencies. Defaultshippinglabel.normalize()
.
If no dependencies are defined an empty set is returned.
- Return type
-
parse_pyproject_extras
(pyproject_file, flavour='auto', *, normalize_func=<function 'normalize'>)[source] Parse the project’s extra dependencies from its
pyproject.toml
file.New in version 0.10.0.
- Parameters
flavour (
Literal
['pep621'
,'flit'
,'auto'
]) – Either'pep621'
to parse from the PEP 621dependencies
table, or'flit'
to parse therequires-extra
key intool.flit.metadata`. The string ``'auto
will use'pep621'
if available, otherwise try'flit'
. Default'auto'
.normalize_func (
Callable
[[str
],str
]) – Function to use to normalize the names of dependencies. Defaultshippinglabel.normalize()
.
If no extra dependencies are defined an empty dictionary is returned.
- Return type
-
parse_requirements
(requirements, *, include_invalid=False, normalize_func=<function 'normalize'>)[source] Parse the given strings as PEP 508 requirements.
New in version 0.10.0.
- Parameters
- Return type
Union
[Tuple
[Set
[ComparableRequirement
],List
[str
],List
[str
]],Tuple
[Set
[ComparableRequirement
],List
[str
]]]- Returns
The requirements, and a list of commented lines.
- Overloads
parse_requirements
(requirements, include_invalid:Literal
[True
], normalize_func = … ) ->Tuple
[Set
[ComparableRequirement
],List
[str
],List
[str
]]parse_requirements
(requirements, include_invalid:Literal
[False
] = …, normalize_func = … ) ->Tuple
[Set
[ComparableRequirement
],List
[str
]]
-
read_requirements
(req_file, include_invalid=False, *, normalize_func=<function 'normalize'>)[source] Reads PEP 508 requirements from the given file.
Changed in version 0.2.0: Added the
include_invalid
option.Changed in version 0.2.1: Added the
normalize_func
keyword-only argument.- Parameters
- Return type
Union
[Tuple
[Set
[ComparableRequirement
],List
[str
],List
[str
]],Tuple
[Set
[ComparableRequirement
],List
[str
]]]- Returns
The requirements, and a list of commented lines.
- Overloads
read_requirements
(req_file, include_invalid:Literal
[True
], normalize_func = … ) ->Tuple
[Set
[ComparableRequirement
],List
[str
],List
[str
]]read_requirements
(req_file, include_invalid:Literal
[False
] = …, normalize_func = … ) ->Tuple
[Set
[ComparableRequirement
],List
[str
]]
shippinglabel.sdist
Utilities for working with source distributions.
New in version 0.9.0.
|
Raised when something other than a source distribution is passed to |
|
Represents a parsed sdist filename. |
|
Parse a sdist filename into its components. |
-
exception
NotAnSdistError
(filename, msg='')[source] Bases:
ValueError
Raised when something other than a source distribution is passed to
parse_sdist_filename()
.
-
namedtuple
ParsedSdistFilename
(project, version, extension)[source] Bases:
NamedTuple
Represents a parsed sdist filename.
-
parse_sdist_filename
(filename)[source] Parse a sdist filename into its components.
- Parameters
filename (
Union
[str
,Path
,PathLike
]) – An sdist path or filename.- Raises
packaging.utils.InvalidSdistFilename
if the filename is invalid.Changed in version 1.0.0: Previously raised
wheel_filename.InvalidFilenameError
shippinglabel.sdist.NotAnSdistError
if the file is not an sdist.
- Return type
Extensions
These extensions add additional functionality but must be installed separately from PyPI.
shippinglabel_conda
Shippinglabel extension with utilities conda packages.
This extension must be installed separately:
python3 -m pip install shippinglabel-conda --user
First add the required channels
conda config --add channels https://conda.anaconda.org/domdfcoding
conda config --add channels https://conda.anaconda.org/conda-forge
Then install
conda install shippinglabel-conda
-
__version__
= '0.1.0.post1' The version number of this extension.
Data:
Instance of |
Functions:
|
Clear the cached Conda channel listings. |
|
Compile a list of requirements for the package from the |
|
Obtain the list of packages in the given Conda channel, either from the cache or from the Conda API. |
|
Create a description for the Conda package from its summary and a list of channels required to install it. |
|
Prepare a list of requirements for use with conda. |
|
Ensure that all requirements are available from the given Conda channels, and normalize the names to those in the Conda channel. |
-
CONDA_API
= SlumberURL('https://conda.anaconda.org') Type:
SlumberURL
Instance of
apeye.slumber_url.SlumberURL
for accessing the Conda API.
-
clear_cache
(*channel_name)[source] Clear the cached Conda channel listings.
- Parameters
*channel_name (
str
) – The name(s) of the channels to clear the cache for.
If no arguments are given the cache is cleared for all channels.
-
compile_requirements
(repo_dir, extras=())[source] Compile a list of requirements for the package from the
requirements.txt
file, and any extra dependencies.- Parameters
- Return type
-
get_channel_listing
(channel_name)[source] Obtain the list of packages in the given Conda channel, either from the cache or from the Conda API.
Responses are cached for 48 hours. The cache can be cleared manually with
clear_cache()
.- Parameters
channel_name (
str
)- Raises
ValueError – if the channel can’t be found.
- Return type
-
make_conda_description
(summary, conda_channels=())[source] Create a description for the Conda package from its summary and a list of channels required to install it.
The description will look like:
This is my fancy Conda package. Hope you like it 😉. Before installing please ensure you have added the following channels: conda-forge, bioconda
if called as follows:
make_conda_description( "This is my fancy Conda package. Hope you like it 😉.", ["conda-forge", "bioconda"], )
New in version 0.8.0.
-
prepare_requirements
(requirements)[source] Prepare a list of requirements for use with conda.
This entails removing any extras and markers from the requirements, and skipping any requirements with URLs, as conda does not support these.
- Parameters
requirements (
Iterable
[ComparableRequirement
])- Return type
-
validate_requirements
(requirements, conda_channels)[source] Ensure that all requirements are available from the given Conda channels, and normalize the names to those in the Conda channel.
- Parameters
requirements (
Iterable
[ComparableRequirement
])
- Return type
shippinglabel_pypi
Shippinglabel extension for interacting with the Python Package Index (PyPI)..
See also
pypi-json, which provides some of the functionality from this module but with a reusable HTTP session and support for authentication with other endpoints (such as a private package repository).
This extension must be installed separately:
python3 -m pip install shippinglabel-pypi --user
First add the required channels
conda config --add channels https://conda.anaconda.org/domdfcoding
conda config --add channels https://conda.anaconda.org/conda-forge
Then install
conda install shippinglabel-pypi
-
__version__
= '0.1.0.post1' The version number of this extension.
Functions:
|
Bind unbound requirements in the given file to the latest version on PyPI, and any later versions. |
|
Download the file with the given URL into the given (temporary) directory. |
|
Returns the version number of the latest release on PyPI for the given project. |
|
Returns metadata for the given project on PyPI. |
|
Returns the web links for the given project. |
|
Returns a dictionary mapping PyPI release versions to download URLs. |
|
Returns a dictionary mapping PyPI release versions to download URLs and the sha256sum of the file contents. |
|
Returns the URL of the project’s source distribution on PyPI. |
|
Constructs a mapping of wheel tags to the PyPI download URL of the wheel with relevant tag. |
|
Returns the URL of one of the project’s wheels on PyPI. |
-
bind_requirements
(filename, specifier='>=', normalize_func=<function 'normalize'>)[source] Bind unbound requirements in the given file to the latest version on PyPI, and any later versions.
- Parameters
- Return type
- Returns
1
if the file was changed;0
otherwise.
-
get_file_from_pypi
(url, tmpdir)[source] Download the file with the given URL into the given (temporary) directory.
-
get_latest
(pypi_name)[source] Returns the version number of the latest release on PyPI for the given project.
- Parameters
pypi_name (
str
)- Raises
packaging.requirements.InvalidRequirement
if the project cannot be found on PyPI.requests.HTTPError
if an error occurs when communicating with PyPI.
- Return type
-
get_metadata
(pypi_name)[source] Returns metadata for the given project on PyPI.
- Parameters
pypi_name (
str
)- Raises
packaging.requirements.InvalidRequirement
if the project cannot be found on PyPI.requests.HTTPError
if an error occurs when communicating with PyPI.
- Return type
-
get_project_links
(project_name)[source] Returns the web links for the given project.
The exact keys vary, but common keys include “Documentation” and “Issue Tracker”.
Note
The Home-Page field from Python core metadata is included under the
Homepage
key, if present. This matches the output parsed from PyPI for packages which are not installed.- Parameters
project_name (
str
)- Return type
-
get_pypi_releases
(pypi_name)[source] Returns a dictionary mapping PyPI release versions to download URLs.
- Parameters
pypi_name (
str
) – The name of the project on PyPI.- Raises
packaging.requirements.InvalidRequirement
if the project cannot be found on PyPI.requests.HTTPError
if an error occurs when communicating with PyPI.
- Return type
-
get_releases_with_digests
(pypi_name)[source] Returns a dictionary mapping PyPI release versions to download URLs and the sha256sum of the file contents.
- Parameters
pypi_name (
str
) – The name of the project on PyPI.- Raises
packaging.requirements.InvalidRequirement
if the project cannot be found on PyPI.requests.HTTPError
if an error occurs when communicating with PyPI.
- Return type
-
get_sdist_url
(name, version, strict=False)[source] Returns the URL of the project’s source distribution on PyPI.
- Parameters
Attention
If no source distribution is found this function may return a wheel or “zip” sdist unless
strict
isTrue
.- Return type
-
get_wheel_tag_mapping
(name, version)[source] Constructs a mapping of wheel tags to the PyPI download URL of the wheel with relevant tag.
This can be used alongside
packaging.tags.sys_tags()
to select the best wheel for the current platform.
-
get_wheel_url
(name, version, strict=False)[source] Returns the URL of one of the project’s wheels on PyPI.
For finer control over which wheel the URL is for see the
get_wheel_tag_mapping()
function.- Parameters
Attention
If no wheels are found this function may return an sdist unless
strict
isTrue
.- Return type
Downloading source code
The shippinglabel
source code is available on GitHub,
and can be accessed from the following URL: https://github.com/domdfcoding/shippinglabel
If you have git
installed, you can clone the repository with the following command:
git clone https://github.com/domdfcoding/shippinglabel
Cloning into 'shippinglabel'...
remote: Enumerating objects: 47, done.
remote: Counting objects: 100% (47/47), done.
remote: Compressing objects: 100% (41/41), done.
remote: Total 173 (delta 16), reused 17 (delta 6), pack-reused 126
Receiving objects: 100% (173/173), 126.56 KiB | 678.00 KiB/s, done.
Resolving deltas: 100% (66/66), done.

Downloading a ‘zip’ file of the source code
Building from source
The recommended way to build shippinglabel
is to use tox:
tox -e build
The source and wheel distributions will be in the directory dist
.
If you wish, you may also use pep517.build or another PEP 517-compatible build tool.
License
shippinglabel
is licensed under the MIT License
A short and simple permissive license with conditions only requiring preservation of copyright and license notices. Licensed works, modifications, and larger works may be distributed under different terms and without source code.
Permissions | Conditions | Limitations |
---|---|---|
|
|
Copyright (c) 2020-2022 Dominic Davis-Foster
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
OR OTHER DEALINGS IN THE SOFTWARE.
View the Function Index or browse the Source Code.