Skip to content

Commit 3ac1e51

Browse files
committed
Added badges to the README file
1 parent 676999c commit 3ac1e51

File tree

1 file changed

+22
-6
lines changed

1 file changed

+22
-6
lines changed

README.rst

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,22 @@
11
javaobj-py3
22
###########
33

4+
.. image:: https://img.shields.io/pypi/v/javaobj-py3.svg
5+
:target: https://pypi.python.org/pypi/javaobj-py3/
6+
:alt: Latest Version
7+
8+
.. image:: https://img.shields.io/pypi/l/javaobj-py3.svg
9+
:target: https://pypi.python.org/pypi/javaobj-py3/
10+
:alt: License
11+
12+
.. image:: https://travis-ci.org/tcalmant/python-javaobj.svg?branch=master
13+
:target: https://travis-ci.org/tcalmant/python-javaobj
14+
:alt: Travis-CI status
15+
16+
.. image:: https://coveralls.io/repos/tcalmant/python-javaobj/badge.svg?branch=master
17+
:target: https://coveralls.io/r/tcalmant/python-javaobj?branch=master
18+
:alt: Coveralls status
19+
420
python-javaobj is a python library that provides functions for reading and
521
writing (writing is WIP currently) Java objects serialized or will be
622
deserialized by _ObjectOutputStream_. This form of object representation is a
@@ -16,7 +32,7 @@ This project is a fork of python-javaobj by Volodymyr Buell, originally from
1632
`Google Code <http://code.google.com/p/python-javaobj/>`_ and now hosted on
1733
`GitHub <https://github.com/vbuell/python-javaobj>`_.
1834

19-
This fork intends to work both on Python 2.7 and Python 3.
35+
This fork intends to work both on Python 2.7 and Python 3.2+.
2036

2137
Features
2238
========
@@ -42,7 +58,7 @@ Unmarshalling of Java serialised object:
4258
.. code-block:: python
4359
4460
import javaobj
45-
61+
4662
jobj = self.read_file("obj5.ser")
4763
pobj = javaobj.loads(jobj)
4864
print(pobj)
@@ -52,11 +68,11 @@ Or, you can use Unmarshaller object directly:
5268
.. code-block:: python
5369
5470
import javaobj
55-
56-
marshaller = javaobj.JavaObjectUnmarshaller(open("sunExample.ser"))
71+
72+
marshaller = javaobj.JavaObjectUnmarshaller(open("objCollections.ser"))
5773
pobj = marshaller.readObject()
58-
74+
5975
self.assertEqual(pobj.value, 17)
6076
self.assertTrue(pobj.next)
61-
77+
6278
pobj = marshaller.readObject()

0 commit comments

Comments
 (0)