twbgc / sunzip Goto Github PK
View Code? Open in Web Editor NEWProvide secure unzip against zip bomb :bomb:.
Home Page: https://pypi.org/project/sunzip/
License: GNU General Public License v3.0
Provide secure unzip against zip bomb :bomb:.
Home Page: https://pypi.org/project/sunzip/
License: GNU General Public License v3.0
Hello, i have installed sunzip on my windows computer using "pip install sunzip" and i got an error when using this example code :
import sunzip
f = sunzip.Sunzip("archive.zip")
f.extract()
the error
Traceback (most recent call last):
File "c:\Users\*****\Desktop\sunzip\sunzip.py", line 1, in <module>
import sunzip
File "c:\Users\*****\Desktop\sunzip\sunzip.py", line 3, in <module>
f = sunzip.Sunzip("archive.zip")
^^^^^^^^^^^^^
AttributeError: partially initialized module 'sunzip' has no attribute 'Sunzip' (most likely due to a circular import). Did you mean: 'sunzip'?
Thanks !
I looked for a LICENSE or COPYING file but wasn't able to find one. I checked setup.py
and found two contradictory license statements:
license='MIT',
in the keyword arguments to setup()
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)"
in the classifiers listCould you please choose one and place the corresponding text in a LICENSE file under the root of the repository?
the function returns after just checking the first file, instead of checking all the files
PR: #8
When the file size in the compressed archive is 0, it will be wrong.
Hello!
I would like to use this package for my side project and I'm currently encountering the divide by zero error fixed in #1 . Could you tag the repository and publish a v0.0.2 so I can pick up the update? Tagging will help others find out which commit the package is built off of.
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.