New upstream version 1.0.0
Agustin Henze
6 years ago
0 | 0 | Metadata-Version: 1.1 |
1 | 1 | Name: cbor |
2 | Version: 0.1.24 | |
2 | Version: 1.0.0 | |
3 | 3 | Summary: RFC 7049 - Concise Binary Object Representation |
4 | 4 | Home-page: https://bitbucket.org/bodhisnarkva/cbor |
5 | 5 | Author: Brian Olson |
15 | 15 | This library includes a C implementation which runs 3-5 times faster than the Python standard library's C-accelerated implementanion of JSON. This is also includes a 100% Python implementation. |
16 | 16 | |
17 | 17 | Platform: UNKNOWN |
18 | Classifier: Development Status :: 4 - Beta | |
18 | Classifier: Development Status :: 5 - Production/Stable | |
19 | 19 | Classifier: Intended Audience :: Developers |
20 | 20 | Classifier: License :: OSI Approved :: Apache Software License |
21 | 21 | Classifier: Operating System :: OS Independent |
22 | 22 | Classifier: Programming Language :: Python :: 2.7 |
23 | Classifier: Programming Language :: Python :: 3.3 | |
24 | 23 | Classifier: Programming Language :: Python :: 3.4 |
24 | Classifier: Programming Language :: Python :: 3.5 | |
25 | 25 | Classifier: Programming Language :: C |
26 | 26 | Classifier: Topic :: Software Development :: Libraries :: Python Modules |
452 | 452 | PyErr_Format(PyExc_RuntimeError, "unknown cbor marker %02x", c); |
453 | 453 | return NULL; |
454 | 454 | } |
455 | #pragma GCC diagnostic push | |
456 | #pragma GCC diagnostic ignored "-Wunreachable-code" | |
455 | 457 | PyErr_SetString(PyExc_RuntimeError, "cbor library internal error moof!"); |
456 | 458 | return NULL; |
459 | #pragma GCC diagnostic pop | |
457 | 460 | } |
458 | 461 | |
459 | 462 | static int loads_kv(PyObject* out, Reader* rin) { |
530 | 533 | PyErr_Format(PyExc_ValueError, "TAG BIGNUM not followed by bytes but %02x", sc); |
531 | 534 | return NULL; |
532 | 535 | } |
536 | #pragma GCC diagnostic push | |
537 | #pragma GCC diagnostic ignored "-Wunreachable-code" | |
533 | 538 | PyErr_Format(PyExc_ValueError, "TODO: WRITEME CBOR TAG BIGNUM %02x ...\n", sc); |
534 | 539 | return NULL; |
540 | #pragma GCC diagnostic pop | |
535 | 541 | } else if (aux == CBOR_TAG_NEGBIGNUM) { |
536 | 542 | // If the next object is bytes, interpret it here without making a PyObject for it. |
537 | 543 | uint8_t sc; |
549 | 555 | PyErr_Format(PyExc_ValueError, "TAG NEGBIGNUM not followed by bytes but %02x", sc); |
550 | 556 | return NULL; |
551 | 557 | } |
558 | #pragma GCC diagnostic push | |
559 | #pragma GCC diagnostic ignored "-Wunreachable-code" | |
552 | 560 | PyErr_Format(PyExc_ValueError, "TODO: WRITEME CBOR TAG NEGBIGNUM %02x ...\n", sc); |
553 | 561 | return NULL; |
562 | #pragma GCC diagnostic pop | |
554 | 563 | } |
555 | 564 | out = inner_loads(rin); |
556 | 565 | if (out == NULL) { return NULL; } |
1106 | 1115 | #ifdef Py_INTOBJECT_H |
1107 | 1116 | if (PyInt_Check(tag_num)) { |
1108 | 1117 | long val = PyInt_AsLong(tag_num); |
1109 | if (val > 0) { | |
1118 | if (val >= 0) { | |
1110 | 1119 | tag_aux_out(CBOR_TAG, val, out, &pos); |
1111 | 1120 | err = inner_dumps(optp, tag_value, out, &pos); |
1112 | 1121 | } else { |
1467 | 1476 | modef.m_doc = NULL; |
1468 | 1477 | modef.m_size = 0; |
1469 | 1478 | modef.m_methods = CborMethods; |
1470 | modef.m_reload = NULL; | |
1479 | #ifdef Py_mod_exec | |
1480 | modef.m_slots = NULL; // Py >= 3.5 | |
1481 | #else | |
1482 | modef.m_reload = NULL; // Py < 3.5 | |
1483 | #endif | |
1471 | 1484 | modef.m_traverse = NULL; |
1472 | 1485 | modef.m_clear = NULL; |
1473 | 1486 | modef.m_free = NULL; |
0 | 0 | Metadata-Version: 1.1 |
1 | 1 | Name: cbor |
2 | Version: 0.1.24 | |
2 | Version: 1.0.0 | |
3 | 3 | Summary: RFC 7049 - Concise Binary Object Representation |
4 | 4 | Home-page: https://bitbucket.org/bodhisnarkva/cbor |
5 | 5 | Author: Brian Olson |
15 | 15 | This library includes a C implementation which runs 3-5 times faster than the Python standard library's C-accelerated implementanion of JSON. This is also includes a 100% Python implementation. |
16 | 16 | |
17 | 17 | Platform: UNKNOWN |
18 | Classifier: Development Status :: 4 - Beta | |
18 | Classifier: Development Status :: 5 - Production/Stable | |
19 | 19 | Classifier: Intended Audience :: Developers |
20 | 20 | Classifier: License :: OSI Approved :: Apache Software License |
21 | 21 | Classifier: Operating System :: OS Independent |
22 | 22 | Classifier: Programming Language :: Python :: 2.7 |
23 | Classifier: Programming Language :: Python :: 3.3 | |
24 | 23 | Classifier: Programming Language :: Python :: 3.4 |
24 | Classifier: Programming Language :: Python :: 3.5 | |
25 | 25 | Classifier: Programming Language :: C |
26 | 26 | Classifier: Topic :: Software Development :: Libraries :: Python Modules |
86 | 86 | ], |
87 | 87 | license='Apache', |
88 | 88 | classifiers=[ |
89 | 'Development Status :: 4 - Beta', | |
89 | 'Development Status :: 5 - Production/Stable', | |
90 | 90 | 'Intended Audience :: Developers', |
91 | 91 | 'License :: OSI Approved :: Apache Software License', |
92 | 92 | 'Operating System :: OS Independent', |
93 | 93 | 'Programming Language :: Python :: 2.7', |
94 | 'Programming Language :: Python :: 3.3', | |
95 | 94 | 'Programming Language :: Python :: 3.4', |
95 | 'Programming Language :: Python :: 3.5', | |
96 | 96 | 'Programming Language :: C', |
97 | 97 | 'Topic :: Software Development :: Libraries :: Python Modules', |
98 | 98 | ], |