{ "info": { "author": "David Gouldin", "author_email": "david@gould.in", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: Implementation :: CPython" ], "description": "Invisible Ink\n=============\n\nThis library includes a set of tools for using zero-width unicode characters to\nembed human-invisible messages in text.\n\nWatermarking\n------------\nYou can use invisible ink to uniquely identify a piece of text by embedding a\nUUID:\n\n::\n\n >>> from invisible_ink import encode_watermark, decode_watermark\n >>> encoded_text, uuid = encode_watermark(u'asdf')\n >>> print encoded_text\n asdf\n >>> uuid\n UUID('3ca37a37-9c5a-4b9e-a9c0-a50c47c48dba')\n >>> decode_watermark(encoded_text)\n (u'asdf', UUID('3ca37a37-9c5a-4b9e-a9c0-a50c47c48dba'))\n\nencode_watermark *(text, watermark_uuid=None, prepend=False)*\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nEncodes the given text with a watermark string generated from the given uuid.\nOptionally appends or prepends the watermark string.\n\nParameters:\n\n* ``text``: Unicode string to which the watermark will be added\n\n* ``watermark_uuid``: ``uuid.UUID`` instance to use as the watermark.\n (``uuid.uuid4()`` will be used to generate one if not provided.)\n\n* ``prepend``: Indicates whether the watermark should be prended to ``text``\n (defaults to ``False``). If ``False``, the watermark will be appended.\n\nReturns:\n\nA 2-tuple: ``(encoded_text, watermark_uuid)``\n\ndecode_watermark *(encoded_text)*\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nDecodes the given text, separating out the original text and the watermark uuid.\n\nParamters:\n\n* ``encoded_text``: Unicode string which potentially includes a watermark\n\nReturns:\n\nA 2-tuple: ``(text, watermark_uuid)``. If no watermark is detected,\n``text`` is the original text and ``watermark_uuid is None``.\n\nInstallation\n------------\n::\n\n $ pip install invisible-ink", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/dgouldin/invisible-ink", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "invisible-ink", "package_url": "https://pypi.org/project/invisible-ink/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/invisible-ink/", "project_urls": { "Homepage": "https://github.com/dgouldin/invisible-ink" }, "release_url": "https://pypi.org/project/invisible-ink/0.1.1/", "requires_dist": [ "pytest (>=3.0.6,<3.1.0); extra == 'tests'" ], "requires_python": "", "summary": "Embedded messages in text for Python.", "version": "0.1.1" }, "last_serial": 2609771, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "86b3744cf58a124172d51b4d841db429", "sha256": "e515b65e4d9b017f20ee6277ff951ac35448f5344e9885c3c3340d263803fdf2" }, "downloads": -1, "filename": "invisible_ink-0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "86b3744cf58a124172d51b4d841db429", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4430, "upload_time": "2017-01-31T03:12:17", "url": "https://files.pythonhosted.org/packages/92/a1/77233c9d48c39b6b84645bb54a0dc5317d0cf15c1b0f293b35e25235b5b1/invisible_ink-0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5b2aaa17bf0220ff7d641d368e084614", "sha256": "31d706ad2eccc04ca4ea7969782d20c13120ac2ed257910de5da7f9a44888c62" }, "downloads": -1, "filename": "invisible-ink-0.1.tar.gz", "has_sig": false, "md5_digest": "5b2aaa17bf0220ff7d641d368e084614", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2817, "upload_time": "2017-01-31T03:12:19", "url": "https://files.pythonhosted.org/packages/58/22/b592694594cce2f0a13c5cdf8e1d55815edaf3f9114148af7e7ee446a04b/invisible-ink-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "fd52fc476dc7d9e8d21cd5aa916c743d", "sha256": "5db83bce0e4a442b60eb41c533cfde19ebe7090ec2b6a1b1e4d14141beebe8be" }, "downloads": -1, "filename": "invisible_ink-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "fd52fc476dc7d9e8d21cd5aa916c743d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4535, "upload_time": "2017-01-31T17:37:06", "url": "https://files.pythonhosted.org/packages/cf/53/94f204bb855e0660068bef0be897333b24d2765ba7ec88853ba2ee807a9e/invisible_ink-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "06e3664f3f377542cddaae7940bbe488", "sha256": "756040760290efce3e2ba146838636f497afc9a5340f40cdbe9e4a80a67dbc5a" }, "downloads": -1, "filename": "invisible-ink-0.1.1.tar.gz", "has_sig": false, "md5_digest": "06e3664f3f377542cddaae7940bbe488", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2894, "upload_time": "2017-01-31T17:37:08", "url": "https://files.pythonhosted.org/packages/e2/9f/beac52516c3f0fbe3e668ba1745380e5d45807debe664d46a7a87268df63/invisible-ink-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "fd52fc476dc7d9e8d21cd5aa916c743d", "sha256": "5db83bce0e4a442b60eb41c533cfde19ebe7090ec2b6a1b1e4d14141beebe8be" }, "downloads": -1, "filename": "invisible_ink-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "fd52fc476dc7d9e8d21cd5aa916c743d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4535, "upload_time": "2017-01-31T17:37:06", "url": "https://files.pythonhosted.org/packages/cf/53/94f204bb855e0660068bef0be897333b24d2765ba7ec88853ba2ee807a9e/invisible_ink-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "06e3664f3f377542cddaae7940bbe488", "sha256": "756040760290efce3e2ba146838636f497afc9a5340f40cdbe9e4a80a67dbc5a" }, "downloads": -1, "filename": "invisible-ink-0.1.1.tar.gz", "has_sig": false, "md5_digest": "06e3664f3f377542cddaae7940bbe488", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2894, "upload_time": "2017-01-31T17:37:08", "url": "https://files.pythonhosted.org/packages/e2/9f/beac52516c3f0fbe3e668ba1745380e5d45807debe664d46a7a87268df63/invisible-ink-0.1.1.tar.gz" } ] }