[](https://pypi.python.org/pypi/assetman/)
[](https://travis-ci.org/petermelias/assetman)
[](https://pypi.python.org/pypi/assetman)
[](https://pypi.python.org/pypi/assetman/)
[](https://coveralls.io/r/petermelias/assetman?branch=master)
[](https://pypi.python.org/pypi/assetman/)
## Usage
```python
from assetman import (
init,
create_blob
)
manager = init(aws_key, aws_secret, my_bucket)
some_data = 'my awsome string / image binary / html / markdown / national secrets'
asset = create_blob(some_data)
asset.public = True # makes the asset publicly accessible over S3
manager.save_asset(asset)
print asset.uuid # returns a 16 character UUID which you can save for later
# ... somewhere over the Mediterranean sea...
my_saved_asset = manager.get_asset(uuid)
print my_saved_asset.data
'my awsome string / image binary / html / markdown / national secrets'
```
It is also important to note that there are some convenience Asset Types built in for convenient handling
of meta data and mimetypes.
For example, the ```Image``` asset type will track format and dimensions for you. See tests for example.
## Testing
To install with testing support: ``` pip install -e .[test] ```
This will install with the optional dependencies required for testing. (wand, for example.)
``` nosetests ```
Metadata
Release files for assetman 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| assetman-0.0.4.tar.gz | 4.0 kB | Without provenance | Details for assetman-0.0.4.tar.gz |
Release files / assetman-0.0.4.tar.gz
| Download URL | assetman-0.0.4.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f82af63a69bdf71bd5068359bf684cae4e3593706d620deeffca429cd992a2c4
|
|
BLAKE2b-256 checksum How to use checksums |
226f4584dcbb5cc0e5817bd8262cdea74de0b2dac8efa7323169126b65af3428
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for assetman 0.0.4
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.