Comments (3)
How did I get that wrong??
from cramjam.
Think I know how to get it to work; will have a PR tomorrow most likely. 👍
from cramjam.
To clarify, did you use output_length
or output_len
as the kwarg? It seems to work for me (from current master):
pyrus-cramjam on master is 📦 v2.0.2 via 🐍 v3.7.4 (venv) via 🦀 v1.50.0 on ☁️ (eu-north-1)
❯ make dev-install
rm -rf ./dist
maturin build --release --out dist --no-sdist --interpreter /home/milesg/Projects/pyrus-cramjam/venv/bin/python
🔗 Found pyo3 bindings with abi3 support for Python ≥ 3.6
🐍 Not using a specific python interpreter (With abi3, an interpreter is only required on windows)
warning: version requirement `0.6.0+zstd.1.4.8` for dependency `zstd` includes semver metadata which will be ignored, removing the metadata is recommended to avoid confusion
Compiling cramjam v2.0.2 (/home/milesg/Projects/pyrus-cramjam)
Finished release [optimized] target(s) in 13.48s
📦 Built wheel for abi3 Python ≥ 3.6 to dist/cramjam-2.0.2-cp36-abi3-manylinux2010_x86_64.whl
pip uninstall cramjam -y
Found existing installation: cramjam 2.0.2
Uninstalling cramjam-2.0.2:
Successfully uninstalled cramjam-2.0.2
pip install cramjam --no-index --find-links dist/
Looking in links: dist/
Processing ./dist/cramjam-2.0.2-cp36-abi3-manylinux2010_x86_64.whl
Installing collected packages: cramjam
Successfully installed cramjam-2.0.2
pyrus-cramjam on master is 📦 v2.0.2 via 🐍 v3.7.4 (venv) via 🦀 v1.50.0 on ☁️ (eu-north-1) took 15s
❯ bpython
bpython version 0.19 on top of Python 3.7.4 /home/milesg/Projects/pyrus-cramjam/venv/bin/python
>>> import cramjam
>>> data = b'bytes here'
>>> compressed = cramjam.gzip.compress(data)
>>> cramjam.gzip.decompress(compressed, output_len=len(data))
b'bytes here'
>>>
from cramjam.
Related Issues (20)
- Accept buffers with types other than u8
- pyo3_runtime.PanicException: Failed to import NumPy module HOT 2
- blosc? HOT 5
- Publish Python 3.12 wheel? HOT 6
- Any plans to release pypy wheels for windows? HOT 2
- TypeError: 'Buffer' does not support the buffer interface HOT 4
- Python test test_variants_different_dtypes[brotli] sometimes times out HOT 4
- lzma / xz support? HOT 12
- Remove extra zstd-safe dep
- Please coordinate PyPI and crates.io releases if possible HOT 2
- Equality check on values for Buffer
- proc-macro2 1.0.56 doesn't work with versions of rust since July
- cargo_audit does not like brotli-sys HOT 3
- Please consider adding license metadata to PyPI HOT 2
- Add arm64/universal wheels for Python 3.11 under MacOS HOT 1
- Incorrect docstring, and Compressor HOT 2
- zlib-ng? HOT 5
- use with cargo? HOT 2
- macos wheels aren't built for the macos versions they advertise HOT 6
- Support for memoryview and PickleBuffer HOT 17
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cramjam.