Skip to content

Commit

Permalink
update instalation method
Browse files Browse the repository at this point in the history
  • Loading branch information
C-o-m-o-n committed Feb 7, 2024
1 parent 47d4750 commit f97438e
Showing 1 changed file with 22 additions and 10 deletions.
32 changes: 22 additions & 10 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,11 @@ <h3>More info</h3>
<pre>
<code>
# import textbin
from textbin.textbin import *
from pytextbin.pytextbin import Textbin

# create textbin_obj instance
textbin_obj = textbin.Textbin()
textbin_obj = Textbin()

</code>
</pre>
</section>
Expand All @@ -69,8 +71,9 @@ <h3>Converting Text and binary </h3>
<div>
<pre>
<code>
from textbin.textbin import *
textbin_obj = textbin.Textbin()
from pytextbin.pytextbin import Textbin

textbin_obj = Textbin()

# Convert text to binary
word = "hello"
Expand All @@ -90,8 +93,11 @@ <h3>Convert JSON and Base64</h3>
<div >
<pre>
<code>
from textbin.textbin import *
textbin_obj = textbin.Textbin()
# import textbin
from pytextbin.pytextbin import Textbin

# create textbin_obj instance
textbin_obj = Textbin()

# Encode a JSON object to base64
word = {"foo": "bar"}
Expand All @@ -110,8 +116,11 @@ <h3>Convert JSON and CSV</h3>
<div >
<pre>
<code>
from textbin.textbin import *
textbin_obj = textbin.Textbin()
# import textbin
from pytextbin.pytextbin import Textbin

# create textbin_obj instance
textbin_obj = Textbin()


# Convert a JSON object to CSV
Expand All @@ -131,8 +140,11 @@ <h3>Convert JSON and xml</h3>
<div >
<pre>
<code>
from textbin.textbin import *
textbin_obj = textbin.Textbin()
# import textbin
from pytextbin.pytextbin import Textbin

# create textbin_obj instance
textbin_obj = Textbin()

#convert json to xml
json_data = { 'id' : 12 , 'name' : 'Collins' }
Expand Down

0 comments on commit f97438e

Please sign in to comment.