Skip to main content

Trivial wrapper providing tidy python access to the openmeta command-line client to set OS X openmeta tags on files

Project description

pythonic file tagging
==========================

Simple-to-trivial wrapper for OpenMeta_. Rather than re-implementing OpenMeta
using, say, Bob Ippolito's excellent xattr_, I decided to do it by wrapping
the already-functional CLI binary, on advice from those more experienced than
myself who suggested that the pain in getting OpenMeta working as advertised
from the direct xattr business was great and terrible.

Warning - this thing does rely on parsing the output of CLI apps, with the
flakiness and performance troubles that implies. However, it's working
reliably for me.

Usage
-----

>>> import openmeta
>>> open('./test.txt', 'w').close()
>>> openmeta.set_tags('./test.txt', ['foo', 'bar'])
>>> openmeta.get_meta('./test.txt')['tags']
['foo', 'bar']

TODO
-----

* more graceful error message when the openmeta CLI binary is not installed


Credits
-------

- OpenMeta_
- xattr_

.. _OpenMeta: http://code.google.com/p/openmeta/
.. _xattr: http://undefined.org/python/#xattr


News
====

0.1.1dev
------

*Release date: 16-March-2011*

* update email to allow upload, and bump version accordingly


0.1dev
------

*Release date: 16-March-2011*

* I spin this package off https://bitbucket.org/howthebodyworks/possumpalace_kit/src/23e924ba53e8/_lib/citeulike/

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

openmeta-0.1.1dev.tar.gz (3.0 kB view details)

Uploaded Source

File details

Details for the file openmeta-0.1.1dev.tar.gz.

File metadata

  • Download URL: openmeta-0.1.1dev.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for openmeta-0.1.1dev.tar.gz
Algorithm Hash digest
SHA256 a79444e18e49b2de96a1e990b0d48623fa2c67b39e1b0dd2b784b6e6baf8522a
MD5 fc756cb3f2be89f58d8931b7c416bc2e
BLAKE2b-256 9048efb72e404bff26055947cbf4f544dec37a02be6ce25cd3dd4074a8dc4f66

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