Skip to main content
.. image:: https://img.shields.io/pypi/v/shortbus.svg
:target: https://pypi.python.org/pypi/shortbus

.. image:: https://img.shields.io/travis/brmc/shortbus.svg
:target: https://travis-ci.org/brmc/shortbus

.. image:: https://readthedocs.org/projects/shortbus/badge/?version=latest
:target: https://shortbus.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status

.. image:: https://pyup.io/repos/github/brmc/shortbus/shield.svg
:target: https://pyup.io/repos/github/brmc/shortbus/
:alt: Updates

========
shortbus
========

Tools to convert Sublime Text snippets into Jetbrains live templates and vice versa


* Free software: MIT license
* Documentation: something is wrong with the read-the-docs build, so for those in a *nix environment, to view the documentation do this:

.. code-block:: console

$ git clone https://github.com/brmc/shortbus
$ cd shortbus
$ make docs

a browser should open with the docs

Requirements:
-------------

- python3.6+
- lxml
- pyyaml

Quick Start
-----------

Install library:

.. code-block:: console

$ pip install shortbus

Do stuff:

.. code-block:: python

transpilers.import_from_yml('./my.yml')
.import_from_sublimetext('~/path/to/sublimetext/snippetdir/)
.import_from_jetbrains('~/.PyCharm2016.3/config/liveTemplates/Djaneiro.xml')
.export_to_jetbrains('shortbus.xml')
.export_to_yml('shortbus.yml')

.. include:: ./docs/ymlsyntax.rst



=======
History
=======

0.2.2 (2018-1-4)

* Added name prefix option for template definitions

0.2.1 (2018-1-4)

* Bugfix: Custom template definitions were not properly respecting context definitions

0.2.0 (2017-12-6)
------------------

* Template definitions and transpilers have been made composable with custom
context definitions in order to simplify the YML for people who use languages
other than Python

* Constants for Context option names have been included

0.1.0 (2017-02-12)
------------------

* First release on PyPI.

Metadata

Release files for shortbus 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for shortbus 0.2.2
File Size Uploaded Provenance
shortbus-0.2.2.tar.gz 26.8 kB Without provenance Details

Release files / shortbus-0.2.2.tar.gz

Download URL shortbus-0.2.2.tar.gz
Size 26.8 kB
Tags Source
SHA-256 checksum
How to use checksums
0686c6ea1a0c5eb5fd774a62dee263a59ca5cd588498b7f4a85bf307c8440437
BLAKE2b-256 checksum
How to use checksums
d263d45f10c27d12f15da8949db74f3f16ecf00b9d339247f1e274a4df9cdd30
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for shortbus 0.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page