Bismuth works on Python and JavaScript (TypeScript) code bases. It periodically scans your code base and autonomously finds and fixes bugs. It also leaves review comments on pull requests when it finds critical bugs and then provides inline suggested fixes.
Engineered by developers who understand the complexities of modern software development--delivering precision and efficiency.
Bismuth acts as a second line of defense against bugs that can cause financial harm and reputational damage. We reduce the time your developers spend fixing bugs and let them keep their focus on features.
Bismuth not only detects bugs that effect scurity which can have direct financial implications, but also unintended logic bugs which could cause reputational harm and slow development.
Bismuth analyzes your entire codebase when checking pull requests so we can detect issues surrounding changes not just the changes themselves.
Review and approve all changes before they're committed. Bismuth creates clean, atomic commits as part of pull requests with detailed messages explaining what changed and why.
Bismuth only steps in to comment on a review if there are clear logical or security concerns given the context of the work.
Bismuth is always checking your code base for new issues and will open pull requests to fix them when it finds them.
Add Bismuth to slack and it will let you know it's found something you should take a look at.
Bismuth is quick to install and get started with, just follow the steps below.
import io
import flask
import requests
from PIL import Image
from bismuth import API, BlobStorageclass ThumbnailerAPI(API):
def __init__(self):
super().__init__()
self.add_route('/thumbnail', {"POST": self.thumbnail})
self.storage = BlobStorage() def thumbnail(self, request: flask.Request, url: str):
cached = self.storage.retrieve(url)
if cached:
return flask.send_file(io.BytesIO(cached), mimetype='image/png') image_file = requests.get(url).content
img = Image.open(image_file)
img.thumbnail((100, 100))
thumb_io = io.BytesIO()
img.save(thumb_io, format='PNG')
thumb_io.seek(0)
self.storage.create(url, thumb_io.getvalue()) return flask.send_file(thumb_io, mimetype='image/png')app = ThumbnailerAPI()