{ "info": { "author": "David Eyk", "author_email": "david.eyk@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Topic :: Software Development :: Libraries" ], "description": "=====\nNock!\n=====\n\nIf you don't know what Nock is, you had better start `here`_. It'll take you a while. Don't worry. We'll still be here when you get back.\n\n.. _here: http://www.urbit.org\n\nWelcome back! Now that you know what Nock is... have you written a Nock parser, and you still don't understand Nock? This module is for you. Not only is this a fully [1]_ functional [2]_ Nock environment, it's a Nock environment that will explain what the heck is going on.\n\nThe module is written in a literate style (cribbing generously from urbit.org). We encourage a `close reading`_. While you're reading, we also recommend playing along at home::\n\n In [1]: from nock import *\n\n In [2]: debug()\n\n In [3]: tar((42, (4, 0, 1)))\n\t\tDEBUG:nock:*[42 [4 0 1]]\n\t\tDEBUG:nock: <- 25 :: *[a 4 b] +*[a b]\n\t\tDEBUG:nock: *[42 [0 1]]\n\t\tDEBUG:nock: <- 21 :: *[a 0 b] /[b a]\n\t\tDEBUG:nock: /[1 42]\n\t\tDEBUG:nock: 42\n\t\tDEBUG:nock: 42\n\t\tDEBUG:nock: +42\n\t\tDEBUG:nock: 43\n\t\tDEBUG:nock: 43\n Out[3]: 43\n\nOr better yet::\n\n In [4]: tar((42, (6, (1, 0), (4, 0, 1), (1, 233))))\n\t\tDEBUG:nock:*[42 [6 [1 0] [4 0 1] [1 233]]]\n\t\tDEBUG:nock: <- 28 :: *[a 6 b c d] *[a 2 [0 1] 2 [1 c d] [1 0] 2 [1 2 3] [1 0] 4 4 b]\n\t\tDEBUG:nock: *[42 2 [0 1] 2 [1 [4 [0 1]] [1 233]] [1 0] 2 [1 2 3] [1 0] 4 4 [1 0]]\n\t\tDEBUG:nock: <- 23 :: *[a 2 b c] *[*[a b] *[a c]]\n\t\tDEBUG:nock: *[42 [0 1]]\n\t\tDEBUG:nock: <- 21 :: *[a 0 b] /[b a]\n\t\tDEBUG:nock: /[1 42]\n\t\tDEBUG:nock: 42\n\t\tDEBUG:nock: 42\n\t\tDEBUG:nock: *[42 [2 [[1 [[4 [0 1]] [1 233]]] [[1 0] [2 [[1 [2 3]] [[1 0] [4 [4 [1 0]]]]]]]]]]\n\t\tDEBUG:nock: <- 23 :: *[a 2 b c] *[*[a b] *[a c]]\n\t\tDEBUG:nock: *[42 [1 [[4 [0 1]] [1 233]]]]\n\t\tDEBUG:nock: <- 22 :: *[a 1 b] b\n\t\tDEBUG:nock: [[4 [0 1]] [1 233]]\n\t\tDEBUG:nock: *[42 [[1 0] [2 [[1 [2 3]] [[1 0] [4 [4 [1 0]]]]]]]]\n\t\tDEBUG:nock: <- 19 :: *[a [b c] d] [*[a b c] *[a d]]\n\t\tDEBUG:nock: *[42 [1 0]]\n\t\tDEBUG:nock: <- 22 :: *[a 1 b] b\n\t\tDEBUG:nock: 0\n\t\tDEBUG:nock: *[42 [2 [[1 [2 3]] [[1 0] [4 [4 [1 0]]]]]]]\n\t\tDEBUG:nock: <- 23 :: *[a 2 b c] *[*[a b] *[a c]]\n\t\tDEBUG:nock: *[42 [1 [2 3]]]\n\t\tDEBUG:nock: <- 22 :: *[a 1 b] b\n\t\tDEBUG:nock: [2 3]\n\t\tDEBUG:nock: *[42 [[1 0] [4 [4 [1 0]]]]]\n\t\tDEBUG:nock: <- 19 :: *[a [b c] d] [*[a b c] *[a d]]\n\t\tDEBUG:nock: *[42 [1 0]]\n\t\tDEBUG:nock: <- 22 :: *[a 1 b] b\n\t\tDEBUG:nock: 0\n\t\tDEBUG:nock: *[42 [4 [4 [1 0]]]]\n\t\tDEBUG:nock: <- 25 :: *[a 4 b] +*[a b]\n\t\tDEBUG:nock: *[42 [4 [1 0]]]\n\t\tDEBUG:nock: <- 25 :: *[a 4 b] +*[a b]\n\t\tDEBUG:nock: *[42 [1 0]]\n\t\tDEBUG:nock: <- 22 :: *[a 1 b] b\n\t\tDEBUG:nock: 0\n\t\tDEBUG:nock: +0\n\t\tDEBUG:nock: 1\n\t\tDEBUG:nock: 1\n\t\tDEBUG:nock: +1\n\t\tDEBUG:nock: 2\n\t\tDEBUG:nock: 2\n\t\tDEBUG:nock: [0 2]\n\t\tDEBUG:nock: *[[2 3] [0 2]]\n\t\tDEBUG:nock: <- 21 :: *[a 0 b] /[b a]\n\t\tDEBUG:nock: /[2 [2 3]]\n\t\tDEBUG:nock: 2\n\t\tDEBUG:nock: 2\n\t\tDEBUG:nock: 2\n\t\tDEBUG:nock: [0 2]\n\t\tDEBUG:nock: *[[[4 [0 1]] [1 233]] [0 2]]\n\t\tDEBUG:nock: <- 21 :: *[a 0 b] /[b a]\n\t\tDEBUG:nock: /[2 [[4 [0 1]] [1 233]]]\n\t\tDEBUG:nock: [4 [0 1]]\n\t\tDEBUG:nock: [4 [0 1]]\n\t\tDEBUG:nock: [4 [0 1]]\n\t\tDEBUG:nock: *[42 [4 [0 1]]]\n\t\tDEBUG:nock: <- 25 :: *[a 4 b] +*[a b]\n\t\tDEBUG:nock: *[42 [0 1]]\n\t\tDEBUG:nock: <- 21 :: *[a 0 b] /[b a]\n\t\tDEBUG:nock: /[1 42]\n\t\tDEBUG:nock: 42\n\t\tDEBUG:nock: 42\n\t\tDEBUG:nock: +42\n\t\tDEBUG:nock: 43\n\t\tDEBUG:nock: 43\n\t\tDEBUG:nock: 43\n\t\tDEBUG:nock: 43\n Out[4]: 43\n\nHorrifying, innit? Welcome to life in the offworld colonies. The air gets installed next week.\n\n.. _close reading: https://github.com/eykd/nock/blob/master/nock.py\n\nUnfortunately, there's no parser yet, so you have to translate that lovely Nock syntax into verbose Python function calls and tuples, but we use true names for all the operators, so we only help you sink deeper into the water. Is that really water? Either way, soon enough, you won't even realize you're breathing it.\n\nTests\n=====\n\nDid we mention we have tests? Bushels and bushels of glorious doctests. Well, for everything except lines 31 and 32. We have no idea what those are about, but we're sure they're just fine.\n\nTo run the tests, install nose_ and run it with::\n\n nosetests --with-doctest\n\n.. _nose: https://pypi.python.org/pypi/nose/\n\nContributing\n============\n\nIs something bothering you? Join the club. Join the club and `open an issue`_, that is. Do you have a way to make this better? Do you happen to have a Nock parser burning a hole in your back pocket? DO YOU UNDERSTAND WHAT LINES 31 AND 32 MEAN, AND CAN YOU WRITE TESTS TO PROVE IT?! Open a *pull request*.\n\n.. _open an issue: https://github.com/eykd/nock/issues\n\nCredits\n=======\n\nThanks to James Tauber, for his original `pynock`_. This would have taken a lot longer without that. And of course, thanks to `C. Guy Yarvin`_, for his methodical madness.\n\n.. _pynock: https://github.com/jtauber/pynock/\n.. _C. Guy Yarvin: http://moronlab.blogspot.com\n\n---------------\n\n.. [1] For some definition of \"fully\".\n.. [2] Get it? *Get it?*", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/eykd/nock", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "nock", "package_url": "https://pypi.org/project/nock/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/nock/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/eykd/nock" }, "release_url": "https://pypi.org/project/nock/0.2.1/", "requires_dist": null, "requires_python": null, "summary": "Nock, Nock. Hoon's there?", "version": "0.2.1" }, "last_serial": 882729, "releases": { "0.1": [], "0.1.1": [ { "comment_text": "", "digests": { "md5": "bb94c072119fe02e4ee87a3b8abaae09", "sha256": "746f86bf9d9ad8d2349c1f8cd9a47d6e9854bbc5f4d4255cf1e0efde8d9a3c4d" }, "downloads": -1, "filename": "nock-0.1.1.tar.gz", "has_sig": false, "md5_digest": "bb94c072119fe02e4ee87a3b8abaae09", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12657, "upload_time": "2013-10-03T06:13:28", "url": "https://files.pythonhosted.org/packages/8d/74/782fcb99bfd794313cac9580b0af3dcbbd908176765ca76b081730ca3219/nock-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "76b69fa0e7a1dff4571bb2dea000ee34", "sha256": "7bbdbe42c8616178bfa7eaf8d65778d8e7fc29dc0cbfb10db36228e4d78f5128" }, "downloads": -1, "filename": "nock-0.1.2.tar.gz", "has_sig": false, "md5_digest": "76b69fa0e7a1dff4571bb2dea000ee34", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13313, "upload_time": "2013-10-05T18:03:12", "url": "https://files.pythonhosted.org/packages/a5/f9/d33a66c7961340ef4a47d98a5545c359f98ca1f867a824b599fefe8eb01f/nock-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "3320acae840b1e5e916b1820361cecd3", "sha256": "96db84dcdf4a53e951523e70fb8c154f637462c8b9a5bb0776047a9cf9e2aa03" }, "downloads": -1, "filename": "nock-0.1.3.tar.gz", "has_sig": false, "md5_digest": "3320acae840b1e5e916b1820361cecd3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13572, "upload_time": "2013-10-05T19:05:16", "url": "https://files.pythonhosted.org/packages/99/ef/1d4f87e804a14be40c985415b32ad0ec3d6e546457f463dffd68b7a8377b/nock-0.1.3.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "6955286257acf7056a91158787596bf6", "sha256": "1b018daffc68828ce8d741a0cb6540511e028a29f78908293fdbe3b9f326be5c" }, "downloads": -1, "filename": "nock-0.2.tar.gz", "has_sig": false, "md5_digest": "6955286257acf7056a91158787596bf6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14733, "upload_time": "2013-10-07T03:58:28", "url": "https://files.pythonhosted.org/packages/33/99/4bb184f41a8dadea43ebf038b155dfa462c75b0ddb29f3cf5e97bf32ad86/nock-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "eeca9afac14102bfaf65e5f036a3bc80", "sha256": "6feb47055f821519c50e5bb2d1d6d87c7f78837baa759fc1383bc07d2f372d02" }, "downloads": -1, "filename": "nock-0.2.1.tar.gz", "has_sig": false, "md5_digest": "eeca9afac14102bfaf65e5f036a3bc80", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14753, "upload_time": "2013-10-07T04:10:46", "url": "https://files.pythonhosted.org/packages/8e/fe/16dd567968fa81d81290ed4667263baae7cac6277044ba933f0f84e6af52/nock-0.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "eeca9afac14102bfaf65e5f036a3bc80", "sha256": "6feb47055f821519c50e5bb2d1d6d87c7f78837baa759fc1383bc07d2f372d02" }, "downloads": -1, "filename": "nock-0.2.1.tar.gz", "has_sig": false, "md5_digest": "eeca9afac14102bfaf65e5f036a3bc80", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14753, "upload_time": "2013-10-07T04:10:46", "url": "https://files.pythonhosted.org/packages/8e/fe/16dd567968fa81d81290ed4667263baae7cac6277044ba933f0f84e6af52/nock-0.2.1.tar.gz" } ] }