{ "info": { "author": "Thibaud Colas", "author_email": "thibaudcolas@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Internet :: WWW/HTTP :: Site Management", "Topic :: Software Development :: Libraries :: Application Frameworks", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Text Editors :: Word Processors" ], "description": "markov_draftjs ` `_ ` `_ ` `_\n===========================================================================================================================================================================\n\n> Draft.js sample content generated with `Markov chains `_ of `Project Gutenberg `_ books.\n\nThis sample content is meant to be used while testing projects based on Draft.js, in particular `Draftail `_ and `draftjs_exporter `_.\n\nUsing the sample content\n------------------------\n\nIn order to simplify using the samples across multiple projects, they are published as packages on `npm `_ and `PyPI `_.\n\n.. code-block:: sh\n\n # JavaScript projects.\n npm install markov_draftjs\n # Python projects.\n pip install markov_draftjs\n \n\n\nThen, in JavaScript:\n\n.. code-block:: js\n\n const contentStates = require('markov_draftjs');\n \n\n\nAnd in Python:\n\n.. code-block:: py\n\n from markov_draftjs import get_content_sample\n \n content_states = get_content_sample()\n \n\n\nThe sample content is also available from GitHub, eg. with RawGit (warning - big file): `https://cdn.rawgit.com/thibaudcolas/markov_draftjs/44827d98/markov_draftjs/content.json `_.\n\nDevelopment\n-----------\n\n> Requirements: `virtualenv`, `pyenv`, `twine`\n\n.. code-block:: sh\n\n git clone git@github.com:thibaudcolas/markov_draftjs.git\n cd markov_draftjs/\n \n # Install the git hooks.\n ./.githooks/deploy\n \n # Install dependencies\n nvm install\n npm install\n \n # Unarchive sample text.\n cd corpora/\n tar -xzvf *.tar.gz\n cd ..\n \n # Install the Python environment.\n virtualenv .venv\n source ./.venv/bin/activate\n make init\n \n # Install required Python versions\n pyenv install --skip-existing 2.7.11\n pyenv install --skip-existing 3.4.4\n # Make required Python versions available globally.\n pyenv global system 2.7.11 3.4.4\n \n # Generate new sample content.\n npm run start\n \n\n\nReleases\n--------\n\n- Use `irish-pub` to confirm the content of the npm package.\n- Make a new branch for the release of the new version.\n- Update the `CHANGELOG `_.\n- Update the version number in `markov_draftjs/__init__.py`, and `package.json`, following semver.\n- Make a PR and squash merge it.\n- Back on master with the PR merged, use `make publish` (confirm, and enter your password) and `npm publish`.\n- Finally, go to GitHub and create a release and a tag for the new version.\n- Done!\n\nSee also\n--------\n\n- https://github.com/jsvine/markovify\n- https://github.com/catseye/Guten-gutter", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/thibaudcolas/markov_draftjs", "keywords": "d,e,v,e,l,o,p,m,e,n,t", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "markov-draftjs", "package_url": "https://pypi.org/project/markov-draftjs/", "platform": "", "project_url": "https://pypi.org/project/markov-draftjs/", "project_urls": { "Homepage": "https://github.com/thibaudcolas/markov_draftjs" }, "release_url": "https://pypi.org/project/markov-draftjs/0.1.1/", "requires_dist": null, "requires_python": "", "summary": "Draft.js sample content generated with Markov chains of Project Gutenberg books.", "version": "0.1.1" }, "last_serial": 3331907, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "52be9c83ddf8589277f057e2fcdb8478", "sha256": "b02668d33666974dfb78319f89788dcc460e4939bf0a1e0e560937104fc4dc6e" }, "downloads": -1, "filename": "markov_draftjs-0.1.0.tar.gz", "has_sig": false, "md5_digest": "52be9c83ddf8589277f057e2fcdb8478", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 508460, "upload_time": "2017-11-09T20:05:47", "url": "https://files.pythonhosted.org/packages/2c/0c/0cc5a94d558847dbbac1dfb87fc8eb7528c8482407481bdd661de5da1447/markov_draftjs-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "9533968905789b7b4712e1e76ee52fdd", "sha256": "62e1655d2679bac570355f122eabb9acc97d4147904649885f160f8136d16350" }, "downloads": -1, "filename": "markov_draftjs-0.1.1.tar.gz", "has_sig": false, "md5_digest": "9533968905789b7b4712e1e76ee52fdd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 508689, "upload_time": "2017-11-14T14:51:02", "url": "https://files.pythonhosted.org/packages/a8/78/275926a57b1f86058723b74e0664c5db35b457fcfcc7e8b127d9d1677f0d/markov_draftjs-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9533968905789b7b4712e1e76ee52fdd", "sha256": "62e1655d2679bac570355f122eabb9acc97d4147904649885f160f8136d16350" }, "downloads": -1, "filename": "markov_draftjs-0.1.1.tar.gz", "has_sig": false, "md5_digest": "9533968905789b7b4712e1e76ee52fdd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 508689, "upload_time": "2017-11-14T14:51:02", "url": "https://files.pythonhosted.org/packages/a8/78/275926a57b1f86058723b74e0664c5db35b457fcfcc7e8b127d9d1677f0d/markov_draftjs-0.1.1.tar.gz" } ] }