Package Search Help

You can use boolean logic (e.g. AND/OR/NOT) for complex search queries. For more help and examples, see the search documentation.

Search by package name:
my-package (implicit)
name:my-package (explicit)

Search by package filename:
filename:my-package.ext 

Search by package tag:
tag:latest 

Search by package version:
version:1.0.0  prerelease:true (prereleases)
prerelease:false (no prereleases)

Search by package architecture:
architecture:x86_64 

Search by package distribution:
distribution:el 

Search by package license:
license:MIT 

Search by package format:
format:deb 

Search by package status:
status:in_progress 

Search by package file checksum:
checksum:5afba 

Search by package security status:
severity:critical 

Search by package vulnerabilities:
vulnerabilities:>1 
vulnerabilities:<1000 

Search by # of package downloads:
downloads:>8 
downloads:<100 

Search by package type:
type:binary 
type:source 

Search by package size (bytes):
size:>50000 
size:<10000 

Search by dependency name/version:
dependency:log4j 
dependency:log4j=1.0.0 
dependency:log4j>1.0.0 

Search by uploaded date:
uploaded:>"1 day ago" 
uploaded:<"August 14, 2022 EST" 

Search by entitlement token (identifier):
entitlement:3lKPVJPosCsY 

Search by policy violation:
policy_violated:true
deny_policy_violated:true
license_policy_violated:true
vulnerability_policy_violated:true

Search by repository:
repository:repo-name

Search by last download date:
last_downloaded:<"30 days ago" 
last_downloaded:>"August 14, 2022 EST" 

Search queries for all Debian-specific (and related) package types

Search by component:
deb_component:unstable

Search queries for all Maven-specific (and related) package types

Search by group ID:
maven_group_id:org.apache

Search queries for all Docker-specific (and related) package types

Search by image digest:
docker_image_digest:sha256:7c5..6d4
(full hashref only)

Search by layer digest:
docker_layer_digest:sha256:4c4..ae4
(full hashref only)

Search queries for all Generic-specific package types

Search by file path:
generic_filepath:path/to/file.txt

Search by directory:
generic_directory:path/to

Field type modifiers (depending on the type, you can influence behaviour)

For all queries, you can use:
~foo for negation

For string queries, you can use:
^foo to anchor to start of term
foo$ to anchor to end of term
foo*bar for fuzzy matching

For number/date or version queries, you can use:
>foo for values greater than
>=foo for values greater / equal
<foo for values less than
<=foo for values less / equal

Need a secure and centralised artifact repository to deliver Alpine, Cargo, CocoaPods, Composer, Conan, Conda, CRAN, Dart, Debian, Docker, Generic, Go, Helm, Hex, HuggingFace, LuaRocks, Maven, MCP, npm, NuGet, P2, Python, RedHat, Ruby, Swift, Terraform, Vagrant, VSX, Raw & More packages?

Cloudsmith is the new standard in Package / Artifact Management and Software Distribution.

With support for all major package formats, you can trust us to manage your software supply chain.

Start My Free Trial

Python logo bw-matchbox  1.2.3

One-liner (summary)

Browser to match Brightway databases

Description

# bw_matchbox

[![PyPI](https://img.shields.io/pypi/v/bw_matchbox.svg)][pypi status] [![Status](https://img.shields.io/pypi/status/bw_matchbox.svg)][pypi status] <!-- [![Python Version](https://img.shields.io/pypi/pyversions/bw_matchbox)][pypi status] --> [![License](https://img.shields.io/pypi/l/bw_matchbox)][license]

<!-- [![Read the documentation at https://bw_matchbox.readthedocs.io/](https://img.shields.io/readthedocs/bw_matchbox/latest.svg?label=Read%20the%20Docs)][read the docs] --> <!-- [![Tests](https://github.com/cauldron/bw_matchbox/workflows/Tests/badge.svg)][tests] --> <!-- [![Codecov](https://codecov.io/gh/cauldron/bw_matchbox/branch/main/graph/badge.svg)][codecov] -->

<!-- [![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)][pre-commit] --> <!-- [![Black](https://img.shields.io/badge/code%20style-black-000000.svg)][black] -->

[pypi status]: https://pypi.org/project/bw_matchbox/ [read the docs]: https://bw_matchbox.readthedocs.io/ [tests]: https://github.com/cauldron/bw_matchbox/actions?workflow=Tests [codecov]: https://app.codecov.io/gh/cauldron/bw_matchbox [pre-commit]: https://github.com/pre-commit/pre-commit [black]: https://github.com/psf/black

bw_matchbox is a web app for matching two [Brightway](https://docs.brightway.dev/en/latest/). It allows you to do complicated matches, such as:

  • Link process a to processes b and c, with allocation factors
  • Link process a to a proxy for process b, changing the exchange values in b proxy to match those in process a where desired
  • Link process a to a proxy for process b, removing some exchanges from b and adding some from a
  • Link process a to a proxy for process b, expanding and inlining some exchanges from b to "flatten" its supply chain

## Installation

You can install _bw_matchbox_ via [pip] from [PyPI]:

`console pip install bw_matchbox `

It's possible to install the library itself for development purposes (in the cloned project):

`console pip install -e . `

This library depends on:

  • Brightway 2.5 (brightway25)
  • docopt-ng
  • flask and flask_httpauth
  • tomli
  • werkzeug

## Usage

This is a flask application. Flask has a debug server suitable for development, but it [should not be used for production](https://flask.palletsprojects.com/en/2.3.x/deploying/)!

To use bw_matchbox, you need to do the following:

### Create a configuration file

Configuration is done via a toml file. See [config_example.toml](https://github.com/cauldron/bw_matchbox/blob/main/config_example.toml) for the structure of this file. Here is an example:

```toml [users] jane = "deer" john = "doe"

[roles] editors = ["jane"] reviewers = ["john"]

[configs] my_config = { project = "something", source = "database A", target = "database B", proxy = "database C"}

[files] output_dir = "/Path/to/some/directory" ```

The config.toml file needs to provide the following:

  • [users] section: Authentication, via a set of usernames and passwords
  • [roles] section: The exact role labels must be used. Editors can make changes, reviewers can only comment.
  • [configs] section: A combination of Brightway project and the source, target and proxy databases.
  • [files] section: Currently only uses the output_dir key.

The easiest way to set this up is with:

`console matchbox setup `

This will create stub configuration and changes files in your current working directory - note that you should change the configuration and username/password in config.toml.

### Running the development server

Just run:

`console matchbox webapp config.toml `

### Running in production

You will need to configure the Flask app using configure_app, or re-implement its functionality. Here is an example using [waitress](https://docs.pylonsproject.org/projects/waitress/en/stable/index.html):

```python from bw_matchbox import matchbox_app, configure_app config_filepath = "/path/to/config.toml" app = configure_app(config_filepath, matchbox_app)

from waitress import serve serve(app, port=8080) ```

### Starting the app

Once the app is running and configured locally or remotely, connect to the correct address and port. If you are running locally, this is probably either http://localhost:5000 or http://127.0.0.1:5000.

In the first screen, choose the Brightway project you want to work on. This is matchbox-example if you ran matchbox example_project.

On the next screen, choose one database as the source, and a different database as the target. Currently you need to specify a new proxy database by typing a new database name into the Create a new database input box.

## Contributing

Contributions are very welcome. To learn more, see the [Contributor Guide].

## License

Distributed under the terms of the [MIT license][license], _bw_matchbox_ is free and open source software.

## Issues

If you encounter any problems, please [file an issue] along with a detailed description.

<!-- github-only -->

[command-line reference]: https://bw_matchbox.readthedocs.io/en/latest/usage.html [license]: https://github.com/cauldron/bw_matchbox/blob/main/LICENSE [contributor guide]: https://github.com/cauldron/bw_matchbox/blob/main/CONTRIBUTING.md

Size

118.8 KB

Downloads

5

Status  Completed
Checksum (MD5) 52df2151e41b0be7988c18e9e8f0ea91
Checksum (SHA-1) 13cedcb44c1029ecf7bfd616762aa333214b98a2
Checksum (SHA-256) 8cb64065c2600dad3951f0e93d58948c540b0de413d1715eb3d52dc42973dea5
Checksum (SHA-512) b9a04f6d520fee54322d513f7261bf47b5deb6b73923536e8d448764ee63ca22fb…
GPG Signature
GPG Fingerprint 6811684bac0b8895434e97bdd4391b8fb999e537
Storage Region  Dublin, Ireland
Type  Binary (contains binaries and binary artifacts)
Uploaded At 4 months, 3 weeks ago
Uploaded By Fetched by Cloudsmith
Slug Id bw_matchbox-123-py3-none-anywhl-5por
Unique Id HFrjPpH4Fw2FYEIr
Version (Raw) 1.2.3
Version (Parsed)
  • Major: 1
  • Minor: 2
  • Patch: 3
  • Type: SemVer (Compat)
  extended metadata
Author Unset
Classifiers Development Status :: 4 - Beta | Programming Language :: Python | Programming Language :: Python :: 3 | Programming Language :: Python :: 3.10 | Programming Language :: Python :: 3.11 | Programming Language :: Python :: 3.8 | Programming Language :: Python :: 3.9
Homepage URL https://github.com/cauldron/bw_matchbox
Keywords "brightway","development"
Maintainer Unset
Metadata Version 2.1
Platforms any
Project Urls homepage, https://github.com/cauldron/bw_matchbox | source, https://github.com/cauldron/bw_matchbox | tracker, https://github.com/cauldron/bw_matchbox/issues
Py Filetype bdist_wheel
Py Version py3
Requires Dist brightway25 | docopt-ng | flask | flask-httpauth | furo ; extra == 'docs' | levenshtein | myst-parser ; extra == 'docs' | pre-commit ; extra == 'dev' | pylint ; extra == 'dev' | pytest ; extra == 'testing' | pytest-cov ; extra == 'testing' | setuptools ; extra == 'testing' | sphinx ; extra == 'docs' | tomli | werkzeug
Requires Python >=3.8
pkg bw_matchbox-1.2.3-py3-none-any.… 5
118.8 KB
md5 sha1 sha256 sha512
Package Contents (bw_matchbox-1.2.3-py3-none-any.whl)
Loading...

This package has 82 files/directories.

 Newer Python logo
bw-matchbox
 2.0.6
6 Fetched by Cloudsmith
 Newer Python logo
bw-matchbox
 2.0.5
5 Fetched by Cloudsmith
 Newer Python logo
bw-matchbox
 2.0.4
5 Fetched by Cloudsmith
 Newer Python logo
bw-matchbox
 2.0.3
5 Fetched by Cloudsmith
 Newer Python logo
bw-matchbox
 2.0.2
6 Fetched by Cloudsmith
 Newer Python logo
bw-matchbox
 2.0.1
5 Fetched by Cloudsmith
 Newer Python logo
bw-matchbox
 2.0.0
5 Fetched by Cloudsmith
 Newer Python logo
bw-matchbox
 1.9.5
6 Fetched by Cloudsmith
 Newer Python logo
bw-matchbox
 1.9.4
5 Fetched by Cloudsmith
 Newer Python logo
bw-matchbox
 1.9.3
5 Fetched by Cloudsmith
  Python logo
bw-matchbox
 1.2.3
5 Fetched by Cloudsmith
 Older Python logo
bw-matchbox
 1.2.2
4 Fetched by Cloudsmith
 Older Python logo
bw-matchbox
 1.2.1
5 Fetched by Cloudsmith
 Older Python logo
bw-matchbox
 1.2.0
5 Fetched by Cloudsmith
 Older Python logo
bw-matchbox
 1.1.2
6 Fetched by Cloudsmith
 Older Python logo
bw-matchbox
 1.1.1
5 Fetched by Cloudsmith
 Older Python logo
bw-matchbox
 1.1.0
5 Fetched by Cloudsmith
 Older Python logo
bw-matchbox
 1.0.20
6 Fetched by Cloudsmith
 Older Python logo
bw-matchbox
 1.0.19
5 Fetched by Cloudsmith
 Older Python logo
bw-matchbox
 1.0.17
5 Fetched by Cloudsmith

Last scanned

4 months, 3 weeks ago

Scan result

Clean

Vulnerability count

0

Max. severity

Unknown

You can embed a badge in another website that shows this or the latest version of this package.

To embed the badge for this specific package version, use the following:

[![This version of 'bw-matchbox' @ Cloudsmith](https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/bw-matchbox/1.2.3/a=noarch;xf=bdist_wheel;xn=bw-matchbox;xv=py3/?render=true)](https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/bw-matchbox/1.2.3/a=noarch;xf=bdist_wheel;xn=bw-matchbox;xv=py3/)
|This version of 'bw-matchbox' @ Cloudsmith|
.. |This version of 'bw-matchbox' @ Cloudsmith| image:: https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/bw-matchbox/1.2.3/a=noarch;xf=bdist_wheel;xn=bw-matchbox;xv=py3/?render=true
   :target: https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/bw-matchbox/1.2.3/a=noarch;xf=bdist_wheel;xn=bw-matchbox;xv=py3/
image::https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/bw-matchbox/1.2.3/a=noarch;xf=bdist_wheel;xn=bw-matchbox;xv=py3/?render=true[link="https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/bw-matchbox/1.2.3/a=noarch;xf=bdist_wheel;xn=bw-matchbox;xv=py3/",title="This version of 'bw-matchbox' @ Cloudsmith"]
<a href="https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/bw-matchbox/1.2.3/a=noarch;xf=bdist_wheel;xn=bw-matchbox;xv=py3/"><img src="https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/bw-matchbox/1.2.3/a=noarch;xf=bdist_wheel;xn=bw-matchbox;xv=py3/?render=true" alt="This version of 'bw-matchbox' @ Cloudsmith" /></a>

rendered as: This version of 'bw-matchbox' @ Cloudsmith

To embed the badge for the latest package version, use the following:

[![Latest version of 'bw-matchbox' @ Cloudsmith](https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/bw-matchbox/latest/a=noarch;xf=bdist_wheel;xn=bw-matchbox;xv=py3/?render=true&show_latest=true)](https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/bw-matchbox/latest/a=noarch;xf=bdist_wheel;xn=bw-matchbox;xv=py3/)
|Latest version of 'bw-matchbox' @ Cloudsmith|
.. |Latest version of 'bw-matchbox' @ Cloudsmith| image:: https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/bw-matchbox/latest/a=noarch;xf=bdist_wheel;xn=bw-matchbox;xv=py3/?render=true&show_latest=true
   :target: https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/bw-matchbox/latest/a=noarch;xf=bdist_wheel;xn=bw-matchbox;xv=py3/
image::https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/bw-matchbox/latest/a=noarch;xf=bdist_wheel;xn=bw-matchbox;xv=py3/?render=true&show_latest=true[link="https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/bw-matchbox/latest/a=noarch;xf=bdist_wheel;xn=bw-matchbox;xv=py3/",title="Latest version of 'bw-matchbox' @ Cloudsmith"]
<a href="https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/bw-matchbox/latest/a=noarch;xf=bdist_wheel;xn=bw-matchbox;xv=py3/"><img src="https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/bw-matchbox/latest/a=noarch;xf=bdist_wheel;xn=bw-matchbox;xv=py3/?render=true&show_latest=true" alt="Latest version of 'bw-matchbox' @ Cloudsmith" /></a>

rendered as: Latest version of 'bw-matchbox' @ Cloudsmith

These instructions assume you have setup the repository first (or read it).

To install/use bw-matchbox @ version 1.2.3 ...

pip install 'bw-matchbox==1.2.3'

You can also install the latest version of this package:

pip install --upgrade 'bw-matchbox'

If necessary, you can specify the repository directly:

pip install \
  --index-url=https://dl.cloudsmith.io/public/demo-docs/awesome-repo/python/simple/ \
  bw-matchbox==1.2.3

If you've got a project requirements.txt file, you can specify this as a dependency:

--index-url=https://dl.cloudsmith.io/public/demo-docs/awesome-repo/python/simple/
bw-matchbox==1.2.3

In addition, you can use this repository as an extra index url. However, please read our documentation on this parameter before using it. For example in a requirements.txt file:

--extra-index-url=https://dl.cloudsmith.io/public/demo-docs/awesome-repo/python/simple/
bw-matchbox==1.2.3
Warning: We highly recommend using pip (or similar) rather than installing directly.
Top