{"id":28258,"library":"sprang","title":"sprang","description":"A command-line tool and Python library for posting and retrieving text snippets via the sprunge.us pastebin service. Current version 0.21. No recent updates; repository archived/unmaintained.","status":"deprecated","version":"0.21","language":"python","source_language":"en","source_url":"http://github.com/jingleman/sprang","tags":["pastebin","sprunge","cli","snippet"],"install":[{"cmd":"pip install sprang","lang":"bash","label":"pip install"}],"dependencies":[],"imports":[{"note":"Main class for creating and retrieving pastes.","symbol":"Sprange","correct":"from sprang import Sprange"},{"note":"Function to retrieve a paste by ID.","symbol":"get_paste","correct":"from sprang import get_paste"},{"note":"Function to create a new paste.","symbol":"paste","correct":"from sprang import paste"}],"quickstart":{"code":"from sprang import Sprange\ns = Sprange()\nurl = s.paste('Hello, world!')\nprint(url)\n# Retrieve\ncontent = s.get(url.split('/')[-1])\nprint(content)","lang":"python","description":"Basic usage: create and retrieve a paste."},"warnings":[{"fix":"Consider using an alternative like dpaste, ix.io, or a self-hosted service.","message":"sprang is unmaintained and the sprunge.us service may be unreliable or offline.","severity":"deprecated","affected_versions":"all"},{"fix":"Wrap calls in try/except blocks and check response status.","message":"The library does not handle network errors gracefully; exceptions may be unhelpful.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Run 'pip install sprang' in your environment.","cause":"Package not installed or virtual environment not activated.","error":"ModuleNotFoundError: No module named 'sprang'"},{"fix":"Use 'from sprang import Sprange' (capital S).","cause":"Older version or incorrect import path.","error":"AttributeError: module 'sprang' has no attribute 'Sprange'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}