@@ -7,54 +7,50 @@ Description
7
7
Installation Requirements
8
8
-----------------------------------
9
9
10
- * Python 3.0, 3.1, 3.2, 3.3, 3.4, 3.5
11
- * Django >= 1.7
10
+ * Python >= 3.6
11
+
12
12
* To install the source, download it from https://github.com/Lh4cKg/simple-geolang-toolkit and do ``python setup.py install ``.
13
13
14
14
A simple way to install ``geolang `` package::
15
15
16
16
$ pip install geolang
17
- $ pip install -r requirements.txt
18
17
19
18
To install the source ``geolang `` package::
20
19
21
20
$ git clone https://github.com/Lh4cKg/simple-geolang-toolkit "geolang"
22
21
$ cd geolang
23
- $ sudo python setup.py install # if you do not have a default Python 3, then use the python3 install instead of python install
24
- $ pip install -r requirements.txt
22
+ $ python3 setup.py build
23
+ $ python3 setup.py install
25
24
26
25
Usage
27
26
---------
28
27
29
28
To use ``geolang ``, just import it in your project like so:
30
29
31
- >>> import geolang as _ka
30
+ >>> from geolang import encode_slugify, encode_text
32
31
33
32
You can convert the Latin words in Georgian
34
33
35
- >>> latin_to_ka = _ka._2KA
36
- >>> _text_2ka = " i love you python and django"
37
- >>> latin_to_ka(_text_2ka)
38
- ი ლოვე ყოუ პყტჰონ ანდ დჯანგო
34
+ >>> txt = " i love you python and django"
35
+ >>> encode_text(txt)
36
+ 'ი ლოვე yოუ ფyტჰონ ანდ დჯანგო'
39
37
40
38
You can convert the Georgian words in Latin
41
39
42
- >>> ka_to_latin = _ka._2LAT
43
- >>> _text_2lat = " მე მიყვარს ანი"
44
- >>> ka_to_latin(_text_2lat)
45
- me miyvars ani
46
-
47
- >>> encode_slugify = _ka.encode_slugify
48
- >>> _try_encode_slugify = " ი ლოვე ყოუ პყტჰონ ანდ დჯანგო"
49
- >>> encode_slugify(_try_encode_slugify)
50
- b'i-love-you-python-and-django'
51
- >>> encode_slugify(_try_encode_slugify, _slugify = False )
52
- b'i love you python and django'
53
- >>> _try_encode_slugify_1 = " é\jcàé\jcàétéétéé\jéé\jcàété\jcàétécàété"
40
+ >>> txt = " მე მიყვარს ანი"
41
+ >>> encode_text(txt)
42
+ 'me miqvars ani'
43
+
44
+ >>> txt = " ი ლოვე ყოუ პყტჰონ ანდ დჯანგო"
45
+ >>> encode_slugify(txt)
46
+ 'ი-ლოვე-ყოუ-პყტჰონ-ანდ-დჯანგო'
47
+ >>> encode_slugify(txt)
48
+ 'i-love-qou-pqthon-and-django'
49
+ >>> txt = " é\jcàé\jcàétéétéé\jéé\jcàété\jcàétécàété"
54
50
>>> encode_slugify(_try_encode_slugify_1)
55
- b'ejcaejcaeteeteejeejcaetejcaetecaete '
51
+ 'éjcàéjcàétéétééjééjcàétéjcàétécàété '
56
52
57
- See more examples _ in this project.
53
+ See more tests _ in this project.
58
54
59
55
Source Code
60
56
-----------------
@@ -69,10 +65,10 @@ There are plenty of ways to contribute to this project. If you think you’ve fo
69
65
License
70
66
------------------
71
67
72
- ``geolang `` is distributed under MIT license _.
68
+ ``geolang `` is distributed under MIT license _.
73
69
74
70
75
- .. _ examples : https://github.com/Lh4cKg/simple-geolang-toolkit/blob/master/example .py
71
+ .. _ tests : https://github.com/Lh4cKg/simple-geolang-toolkit/blob/master/tests .py
76
72
.. _github : https://github.com/Lh4cKg/simple-geolang-toolkit
77
73
.. _issue : https://github.com/Lh4cKg/simple-geolang-toolkit/issues
78
74
.. _license : https://github.com/Lh4cKg/simple-geolang-toolkit/blob/master/LICENSE.md
0 commit comments