Package list python-cbor / 1ff8bac
New upstream version 1.0.0 Agustin Henze 4 years ago
5 changed file(s) with 24 addition(s) and 11 deletion(s). Raw diff Collapse all Expand all
00 Metadata-Version: 1.1
11 Name: cbor
2 Version: 0.1.24
2 Version: 1.0.0
33 Summary: RFC 7049 - Concise Binary Object Representation
44 Home-page: https://bitbucket.org/bodhisnarkva/cbor
55 Author: Brian Olson
1515 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.
1616
1717 Platform: UNKNOWN
18 Classifier: Development Status :: 4 - Beta
18 Classifier: Development Status :: 5 - Production/Stable
1919 Classifier: Intended Audience :: Developers
2020 Classifier: License :: OSI Approved :: Apache Software License
2121 Classifier: Operating System :: OS Independent
2222 Classifier: Programming Language :: Python :: 2.7
23 Classifier: Programming Language :: Python :: 3.3
2423 Classifier: Programming Language :: Python :: 3.4
24 Classifier: Programming Language :: Python :: 3.5
2525 Classifier: Programming Language :: C
2626 Classifier: Topic :: Software Development :: Libraries :: Python Modules
452452 PyErr_Format(PyExc_RuntimeError, "unknown cbor marker %02x", c);
453453 return NULL;
454454 }
455 #pragma GCC diagnostic push
456 #pragma GCC diagnostic ignored "-Wunreachable-code"
455457 PyErr_SetString(PyExc_RuntimeError, "cbor library internal error moof!");
456458 return NULL;
459 #pragma GCC diagnostic pop
457460 }
458461
459462 static int loads_kv(PyObject* out, Reader* rin) {
530533 PyErr_Format(PyExc_ValueError, "TAG BIGNUM not followed by bytes but %02x", sc);
531534 return NULL;
532535 }
536 #pragma GCC diagnostic push
537 #pragma GCC diagnostic ignored "-Wunreachable-code"
533538 PyErr_Format(PyExc_ValueError, "TODO: WRITEME CBOR TAG BIGNUM %02x ...\n", sc);
534539 return NULL;
540 #pragma GCC diagnostic pop
535541 } else if (aux == CBOR_TAG_NEGBIGNUM) {
536542 // If the next object is bytes, interpret it here without making a PyObject for it.
537543 uint8_t sc;
549555 PyErr_Format(PyExc_ValueError, "TAG NEGBIGNUM not followed by bytes but %02x", sc);
550556 return NULL;
551557 }
558 #pragma GCC diagnostic push
559 #pragma GCC diagnostic ignored "-Wunreachable-code"
552560 PyErr_Format(PyExc_ValueError, "TODO: WRITEME CBOR TAG NEGBIGNUM %02x ...\n", sc);
553561 return NULL;
562 #pragma GCC diagnostic pop
554563 }
555564 out = inner_loads(rin);
556565 if (out == NULL) { return NULL; }
11061115 #ifdef Py_INTOBJECT_H
11071116 if (PyInt_Check(tag_num)) {
11081117 long val = PyInt_AsLong(tag_num);
1109 if (val > 0) {
1118 if (val >= 0) {
11101119 tag_aux_out(CBOR_TAG, val, out, &pos);
11111120 err = inner_dumps(optp, tag_value, out, &pos);
11121121 } else {
14671476 modef.m_doc = NULL;
14681477 modef.m_size = 0;
14691478 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
14711484 modef.m_traverse = NULL;
14721485 modef.m_clear = NULL;
14731486 modef.m_free = NULL;
0 '0.1.24'
0 '1.0.0'
00 Metadata-Version: 1.1
11 Name: cbor
2 Version: 0.1.24
2 Version: 1.0.0
33 Summary: RFC 7049 - Concise Binary Object Representation
44 Home-page: https://bitbucket.org/bodhisnarkva/cbor
55 Author: Brian Olson
1515 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.
1616
1717 Platform: UNKNOWN
18 Classifier: Development Status :: 4 - Beta
18 Classifier: Development Status :: 5 - Production/Stable
1919 Classifier: Intended Audience :: Developers
2020 Classifier: License :: OSI Approved :: Apache Software License
2121 Classifier: Operating System :: OS Independent
2222 Classifier: Programming Language :: Python :: 2.7
23 Classifier: Programming Language :: Python :: 3.3
2423 Classifier: Programming Language :: Python :: 3.4
24 Classifier: Programming Language :: Python :: 3.5
2525 Classifier: Programming Language :: C
2626 Classifier: Topic :: Software Development :: Libraries :: Python Modules
8686 ],
8787 license='Apache',
8888 classifiers=[
89 'Development Status :: 4 - Beta',
89 'Development Status :: 5 - Production/Stable',
9090 'Intended Audience :: Developers',
9191 'License :: OSI Approved :: Apache Software License',
9292 'Operating System :: OS Independent',
9393 'Programming Language :: Python :: 2.7',
94 'Programming Language :: Python :: 3.3',
9594 'Programming Language :: Python :: 3.4',
95 'Programming Language :: Python :: 3.5',
9696 'Programming Language :: C',
9797 'Topic :: Software Development :: Libraries :: Python Modules',
9898 ],