Skip to main content

No project description provided

Project description

Soufi (Source Finder) is a library that finds downloadable URLs for source packages, given the binary package name and version. It will also create a compressed archive of multiple downloadable files, or save any existing downloadable archive.

Currently supported finders are:
  • Debian OS packages

  • Ubuntu OS packages

  • Red Hat (UBI) packages

  • CentOS packages

  • Alpine packages

  • Photon OS packages

  • NPM packages

  • Python sdists

  • Golang modules

  • Java JARs

  • Ruby Gems

If you want to download Alpine packages, you must have git installed.

Requirements

Soufi is currently tested on Python versions 3.7, 3.8 and 3.9. It is known not to work on 3.6.

Quickstart

Install Soufi with pip:

pip install soufi

Using the command line:

soufi python flask 2.0.0
https://files.pythonhosted.org/packages/37/6d/61637b8981e76a9256fade8ce7677e86a6edcd6d4525f459a6b9edbd96a4/Flask-2.0.0.tar.gz

soufi debian zlib1g 1:1.2.11.dfsg-1 -o zlib.tar.xz
zlib_1.2.11.dfsg.orig.tar.gz: https://snapshot.debian.org/file/1b7f6963ccfb7262a6c9d88894d3a30ff2bf2e23
zlib_1.2.11.dfsg-1.dsc: https://snapshot.debian.org/file/f2bea8c346668d301c0c7745f75cf560f2755649
zlib_1.2.11.dfsg-1.debian.tar.xz: https://snapshot.debian.org/file/c3b2bac9b1927fde66b72d4f98e4063ce0b51f34

ls -l zlib.tar.xz
-rw-rw-r-- 1 juledwar juledwar 391740 May 20 15:20 zlib.tar.xz

Using the API:

import shutil
import soufi

finder = soufi.finder.factory(
    'python', 'flask', '2.0.0', soufi.finder.SourceType.python
)
source = finder.find()
print(source)

finder = soufi.finder.factory(
    'debian', 'zlib1g', '1:1.2.11.dfsg-1', soufi.finder.SourceType.os
)
source = finder.find()
print(source)
with source.make_archive() as archive, open('zlib.tar.xz', 'wb') as local:
    shutil.filecopyobj(archive, local)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

soufi-2022.2.7.tar.gz (30.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

soufi-2022.2.7-py2.py3-none-any.whl (35.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file soufi-2022.2.7.tar.gz.

File metadata

  • Download URL: soufi-2022.2.7.tar.gz
  • Upload date:
  • Size: 30.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for soufi-2022.2.7.tar.gz
Algorithm Hash digest
SHA256 7b00aaa40b18a5234dc19c47a390affe5b2f6ebe7aaf13fdf0dc5148dd6779b4
MD5 fd6453ca3644a8ce4cafca1c1e240968
BLAKE2b-256 a6645bfa0a8b27f25f28a7374590634a61a36233b6a440dab475d1d94d8a0972

See more details on using hashes here.

File details

Details for the file soufi-2022.2.7-py2.py3-none-any.whl.

File metadata

  • Download URL: soufi-2022.2.7-py2.py3-none-any.whl
  • Upload date:
  • Size: 35.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for soufi-2022.2.7-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6a6be186ae3b5bead97bda26fe4e5e508a7d233ea44ac9682e8e3c9551a87f87
MD5 991b7320c0daf36fda4f1c8686669be6
BLAKE2b-256 61fd8a0307114e558acb0fd87ef8a66ca755d6b3a313b611a5f2ba143028906f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page