Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Valenzuela committed Aug 13, 2021
1 parent 6c99da4 commit c772c28
Show file tree
Hide file tree
Showing 13 changed files with 593 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Tzar: Tar, Zip, Anything Really

Easy compression and extraction for any compression or archival format.

## Authors

- [@danielvalenzuela](https://www.github.com/danielvz96)


## Usage/Examples

```bash
tzar compress large-dir compressed.tar.gz
```

## Installation

TODO
13 changes: 13 additions & 0 deletions config/default.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[tar]
extract = "tar xf${verbose} ${filename} -C ${directory}"
compress = "tar caf${verbose} ${filename} -C ${directory} ."
show = "tar tf${verbose} ${filename}"
extensions = [".tar", ".tar.gz", ".bz2", ".xz"]
verbose = "v"

[zip]
extract = "unzip ${filename} -d ${directory}"
compress = "zip -r${verbose} ${filename} ${directory}"
show = "unzip -l${verbose} ${filename}"
extensions = [".zip"]
verbose = "v"
246 changes: 246 additions & 0 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[tool.poetry]
name = "tzar"
version = "0.1.0"
description = ""
authors = ["Daniel Valenzuela <[email protected]>"]

[tool.poetry.dependencies]
python = "^3.7"
click = "^8.0.1"
pyxdg = "^0.27"
toml = "^0.10.2"

[tool.poetry.dev-dependencies]
pytest = "^5.2"

[tool.poetry.scripts]
tzar = 'tzar.cli:run'

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
10 changes: 10 additions & 0 deletions target-formats/archiving.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
File extension(s)[1] ,Official name[3]
".a, .ar ",Unix Archiver
.cpio ,cpio
.shar ,Shell archive
.LBR ,.LBR
.iso ,ISO-9660 image
.lbr ,
.mar ,Mozilla ARchive
.sbx ,SeqBox
.tar ,Tape archive
64 changes: 64 additions & 0 deletions target-formats/both.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
File extension(s)[1] ,Official name[3]
.7z ,7z
.s7z ,7zX
.ace ,ACE
.afa ,AFA
.alz ,ALZip
.apk ,APK
".arc, .ark ",ARC
".arc, .cdx ",FreeArc
.arj ,ARJ
.b1 ,B1
.b6z ,B6Z
.ba ,Scifer
.bh ,BlakHole
.cab ,Cabinet
.car ,Compressia archive
.cfs ,Compact File Set
.cpt ,Compact Pro
.dar ,Disk Archiver
.dd ,DiskDoubler
.dgc ,DGCA
.dmg ,Apple Disk Image
.ear ,EAR
.gca ,GCA
.genozip ,Genozip
.ha ,[2]
.hki ,WinHKI
.ice ,ICE
.jar ,JAR
.kgb ,KGB Archiver
".lzh, .lha ",LHA
.lzx ,LZX
.pak ,PAK
.partimg ,PartImage
".paq6, .paq7, .paq8 and variants ",PAQ
.pea ,PeaZip
.phar ,PHAR
.pim ,PIM
.pit ,PackIt
.qda ,Quadruple D
.rar ,RAR
.rk ,RK and WinRK [3]
.sda ,Self Dissolving ARChive
.sea ,Self Extracting Archive
.sen ,Scifer
.sfx ,Self Extracting Archive
.shk ,NuFX
.sit ,StuffIt
.sitx ,StuffIt X
.sqx ,SQX
".tar.gz, .tgz, .tar.Z, .tar.bz2,
.tbz2, .tar.lz, .tlz. .tar.xz, .txz, .tar.zst ","tar with gzip, compress, bzip2, lzip, or xz "
.uc .uc0 .uc2 .ucn .ur2 .ue2 ,UltraCompressor II
.uca ,PerfectCompress[10]
.uha ,UHarc
.war ,WAR
.wim ,Windows Image
.xar ,XAR
.xp3 ,KiriKiri
.yz1 ,YZ1
".zip, .zipx ",ZIP
.zoo ,zoo
.zpaq ,ZPAQ
.zz ,Zzip
18 changes: 18 additions & 0 deletions target-formats/compression.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
File extension(s)[1] ,Official name[3]
.bz2 ,bzip2
".F, .?XF[5] ",Freeze/melt [1]
.gz ,gzip
.lz ,lzip
.lz4 ,LZ4
.lzma ,lzma
.lzo ,lzop
.rz ,rzip
.sfark ,sfArk
.sz ,Snappy
.?Q? ,SQ
.?Z? ,CRUNCH
.xz ,xz
.z ,pack
.Z ,compress
.zst ,Zstandard
.??_ ,
Empty file added tests/__init__.py
Empty file.
Loading

0 comments on commit c772c28

Please sign in to comment.