Shoebox icon

Shoebox For Linux

3.8/5 16
GPL v3    

Shoebox is a pure Python version/rewrite of Nodebox.. #Nodebox rewrite  #Python module  #Read scripts  #Nodebox  #Python  #DrawBot  

Description

Free Download

Shoebox is a pure Python version/rewrite of Nodebox, a Mac OS X application developed by Frederik Bleser and Tom de Smedt at St. Lucas University in Antwerp, Belgium, from the DrawBot application developed by Just van Rossum.

Shoebox uses the Cairo graphics engine for rendering, and instead of a full-fledged GUI it provides a simple command-line interface and the ability to be called from external Python scripts without effort.

Shoebox also borrows from the principles outlined in the Little Coder's Predicament, a manifesto by the author of Shoes, which is a similar and awesome project using the Ruby language instead of Python.

Shoebox can read scripts in the Nodebox language and output images in SVG, PostScript, PDF or PNG format.

Comparing to graphics coding alternatives like Nodebox and Processing, Shoebox ends up being lighter and more flexible, thanks to not depending on an interface engine for rendering, and thus making it potentially suitable for CPU-conscious uses like server applications. Unlike Processing and Nodebox though, Shoebox can only output still images for the time being.

Shoebox can be run stand-alone or as part of a Python program - see the Getting Started page for more details. There's a lot of stuff that is still subject to change and/or not working as it should - please regard it as being in a very early alpha phase -, but we're coding and typing hard to solve this!

It should run on most GNU/Linux systems.

This is free software, distributed under the GPLv3 license.

Requirements:

Cairo 1.4.2 or higher � Python 2.4 or higher � Mercurial

For now, the only means of installing Shoebox is getting it from the source repository. Shoebox uses Mercurial for version control. Mercurial is available on most major GNU/Linux distributions.

Ubuntu/Debian: sudo apt-get install mercurial Gentoo: emerge mercurial

Make a new directory for your Shoebox project(s), and then run the following command in your terminal:

hg clone http://hg.assembla.com/shoebox

You should now see a new shoebox/ directory inside your project dir.

It's probably appropriate to place your scripts inside the shoebox dir for now. (this is a makeshift solution until we have a proper package for Shoebox)

Usage is rather straightforward:

python console.py script.py outputfile < width > < height >

* outputfile should have a valid extension (.svg, .ps, .pdf or .png), since it will be autodetected by the script; * 'width' and 'height' are optional values; if not specified, the resulting image will be 400x400 pixels (bitmap output) or 400x400 points (vector output).

Try running the blocks_neat.py example in the shoebox/examples dir.

Shoebox can also be loaded as a module. For now, scripts taking advantage of this must be placed inside the shoebox dir.

After including an import statement,

import shoebox

a Box object needs to be created, and all further Nodebox commands can be called on that instance.

Box should be called with the output file name as an argument. Width and height can also be specified - otherwise it defaults to a 400x400 canvas.

box = shoebox.Box("output.svg",100,100) box.rect(10,10,100,100)

When you're finished with drawing, just call

box.finish()

and your output file should be created.

Also, when using bitmap files, you can save snapshots of the current state of the Box instance like so:

box.snapshot("snap.png")

Note that this doesn't work if your Box object was created with a vector format output.

You can even call external Shoebox/Nodebox scripts from your Python script:

box.run("script.py")

What's New in This Release:

� This release has a GTK canvas interface (the first stab at a proper canvas, but it works decently). � Now you can access internal variables through a socket connection. size(), setup() and draw() now behave as they should. � The Box class has a run() method for executing external scripts from inside a Python program.

Shoebox 0.2

add to watchlist add to download basket send us an update REPORT
  runs on:
Linux
  filename:
shoebox-0.2.tar.gz
  main category:
Multimedia
  developer:
  visit homepage

Microsoft Teams 24060.3102.2733.5911 Home / 1.7.00.7956 Work

Effortlessly chat, collaborate on projects, and transfer files within a business-like environment by employing this Microsoft-vetted application
Microsoft Teams

7-Zip 23.01 / 24.04 Beta

An intuitive application with a very good compression ratio that can help you not only create and extract archives, but also test them for errors
7-Zip

IrfanView 4.67

With support for a long list of plugins, this minimalistic utility helps you view images, as well as edit and convert them using a built-in batch mode
IrfanView

calibre 7.9.0

Effortlessly keep your e-book library thoroughly organized with the help of the numerous features offered by this efficient and capable manager
calibre

Zoom Client 6.0.3.37634

The official desktop client for Zoom, the popular video conferencing and collaboration tool used by millions of people worldwide
Zoom Client

ShareX 16.0.1

Capture your screen, create GIFs, and record videos through this versatile solution that includes various other amenities: an OCR scanner, image uploader, URL shortener, and much more
ShareX

Windows Sandbox Launcher 1.0.0

Set up the Windows Sandbox parameters to your specific requirements, with this dedicated launcher that features advanced parametrization
Windows Sandbox Launcher

Context Menu Manager 3.3.3.1

Customize Windows’ original right-click context menu using this free, portable and open-source utility meant to enhance your workflow
Context Menu Manager

4k Video Downloader 1.5.3.0080 Plus / 4.30.0.5655

Export your favorite YouTube videos and playlists with this intuitive, lightweight program, built to facilitate downloading clips from the popular website
4k Video Downloader

Bitdefender Antivirus Free 27.0.35.146

Feather-light and free antivirus solution from renowned developer that keeps the PC protected at all times from malware without requiring user configuration
Bitdefender Antivirus Free

% discount
Context Menu Manager
  • Context Menu Manager
  • 4k Video Downloader
  • Bitdefender Antivirus Free
  • Microsoft Teams
  • 7-Zip
  • IrfanView
  • calibre
  • Zoom Client
  • ShareX
  • Windows Sandbox Launcher
essentials


Click to load comments
This enables Disqus, Inc. to process some of your data. Disqus privacy policy