Giter VIP home page Giter VIP logo

Comments (3)

martindurant avatar martindurant commented on June 12, 2024 1

How did I get that wrong??

from cramjam.

milesgranger avatar milesgranger commented on June 12, 2024

Think I know how to get it to work; will have a PR tomorrow most likely. 👍

from cramjam.

milesgranger avatar milesgranger commented on June 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.