semvec/pypi-packages huggingface dataset:
SwampDragon-fileupload 0.1.2
File upload handler for SwampDragon
License: BSD
Keywords: SwampDragon,file upload

SwampDragon fileupload
======================

File upload handler for SwampDragon


# Installation
```pip install swampdragon-fileupload```

Add ```swampdragon_upload``` to ```INSTALLED_APPS```


# Usage

Create a router and extend ```FileUploadHandler```

    class FileUpload(FileUploadHandler):
        route_name = '_sdfileupload'


In the above example, the route is set to _sdfileupload.

File post requests should be done to ```window.swampDragon.url + '/_sdfileupload/'```

The data returned by the post request will fit the file deserializer.

To enable Origin header check, set ```origin_check = True```

    class FileUpload(FileUploadHandler):
        route_name = '_sdfileupload'
        origin_check = True


# Notes

If you are using NGINX and have ```origin_check = True``` you need to set ```proxy_set_header Host $http_host;```
in your NGINX config:


    server {
        ...
        location / {
            ...
            proxy_set_header Host $http_host;
        }
    }
unp 0.3
Command line tool that can unpack archives easily
License: BSD

$ unp_

  unp is a command line tool that can unpack archives easily.  It
  mainly acts as a wrapper around other shell tools that you can
  find on various POSIX systems.

  It figures out how to invoke an unpacker to achieve the desired
  result.  In addition to that it will safely unpack files when an
  archive contains more than one top level item.  In those cases it
  will wrap the resulting file in a folder so that your working
  directory does not get messed up.

  All you have to do:

    $ unp myarchive.tar.gz

  To install you can use pipsi:

    $ pipsi install unp

  Supports the following archives:

  - 7zip Archives (*.7z)
  - AR Archives (*.a)
  - Apple Disk Image (*.dmg; *.sparseimage)
  - Bz2 Compressed Files (*.bz2)
  - Bz2 Compressed Tarballs (*.tar.bz2)
  - Gzip Compressed Files (*.gz)
  - Gzip Compressed Tarballs (*.tar.gz; *.tgz)
  - Uncompressed Tarballs (*.tar)
  - WinRAR Archives (*.rar)
  - Windows Cabinet Archive (*.cab)
  - XZ Compressed Files (*.xz)
  - XZ Compressed Tarballs (*.tar.xz)
  - Zip Archives (*.zip; *.egg; *.whl; *.jar)

  DMG is only supported on OS X where it invokes the hdiutil and
  copies out the contents.