repo
string
commit
string
message
string
diff
string
dmaclay/python-smpp
3e01fc04a9d3f91dcdcef3215a43337c588951eb
there's the bug
diff --git a/smpp/pdu.py b/smpp/pdu.py index 11aaeea..b22c817 100644 --- a/smpp/pdu.py +++ b/smpp/pdu.py @@ -517,530 +517,531 @@ maps['esm_class_bits'] = { 'type_0011' :'0a', 'type_user_ack' :'10', 'type_0101' :'14', 'type_conversation_abort' :'18', ...
dmaclay/python-smpp
85910201927d7beb8f7add50d7e0d80a7eb678d8
all sar_
diff --git a/smpp/pdu_builder.py b/smpp/pdu_builder.py index 75acd20..e143905 100644 --- a/smpp/pdu_builder.py +++ b/smpp/pdu_builder.py @@ -1,352 +1,358 @@ from pdu import * class PDU(object): def __init__(self, command_id, command_status, sequence_number, ...
dmaclay/python-smpp
f5242eb859a3d06ec20db8b9fd5c81d98f737040
sar_msg_ref_num
diff --git a/smpp/pdu_builder.py b/smpp/pdu_builder.py index 5ee37f6..75acd20 100644 --- a/smpp/pdu_builder.py +++ b/smpp/pdu_builder.py @@ -1,349 +1,352 @@ from pdu import * class PDU(object): def __init__(self, command_id, command_status, sequence_number, ...
dmaclay/python-smpp
95bd7fe6ac9a26cba5258cd0da445eef034a13db
better message_id treatment
diff --git a/smpp/pdu_builder.py b/smpp/pdu_builder.py index 0bb3114..5ee37f6 100644 --- a/smpp/pdu_builder.py +++ b/smpp/pdu_builder.py @@ -1,348 +1,349 @@ from pdu import * class PDU(object): def __init__(self, command_id, command_status, sequence_number, ...
dmaclay/python-smpp
4b8e978fc41146556849c0fc785d2484a5a4fa9e
fix messsage_id
diff --git a/smpp/pdu_builder.py b/smpp/pdu_builder.py index 5fbeb9b..0bb3114 100644 --- a/smpp/pdu_builder.py +++ b/smpp/pdu_builder.py @@ -1,347 +1,348 @@ from pdu import * class PDU(object): def __init__(self, command_id, command_status, sequence_number, ...
dmaclay/python-smpp
f1673c11466f35eeb0b4744604d23028af5141a9
submit sm response
diff --git a/smpp/pdu_builder.py b/smpp/pdu_builder.py index aea4a0c..5fbeb9b 100644 --- a/smpp/pdu_builder.py +++ b/smpp/pdu_builder.py @@ -1,332 +1,347 @@ from pdu import * class PDU(object): def __init__(self, command_id, command_status, sequence_number, ...
dmaclay/python-smpp
d26351e8eccecac32d971222bd0747c54c0f3b58
enquire link response
diff --git a/smpp/pdu_builder.py b/smpp/pdu_builder.py index eeca679..aea4a0c 100644 --- a/smpp/pdu_builder.py +++ b/smpp/pdu_builder.py @@ -1,321 +1,332 @@ from pdu import * class PDU(object): def __init__(self, command_id, command_status, sequence_number, ...
dmaclay/python-smpp
2fa38205f66d6f1f99f3a03be727f7ac6f0894c6
bind responses
diff --git a/smpp/pdu_builder.py b/smpp/pdu_builder.py index 1ac7ef7..eeca679 100644 --- a/smpp/pdu_builder.py +++ b/smpp/pdu_builder.py @@ -1,284 +1,321 @@ from pdu import * class PDU(object): def __init__(self, command_id, command_status, sequence_number, ...
dmaclay/python-smpp
8d376ad230065767348442f59f541f0a420cf3bd
ascii & utf 8-16-32 in one string
diff --git a/tests.py b/tests.py index 9088e25..810f140 100644 --- a/tests.py +++ b/tests.py @@ -1,308 +1,339 @@ # -*- coding: utf-8 -*- import unittest, collections from datetime import datetime, timedelta from smpp.esme import * from smpp.clickatell import * from smpp import pdu import credentials_test try:...
dmaclay/python-smpp
ec74641276100d6f3ad8bfa79f4f35f91766187f
works in testing ... but \xd8 blows up in deploy
diff --git a/tests.py b/tests.py index 13e54bb..3e184e7 100644 --- a/tests.py +++ b/tests.py @@ -1,299 +1,301 @@ # -*- coding: utf-8 -*- import unittest, collections from datetime import datetime, timedelta from smpp.esme import * from smpp.clickatell import * from smpp import pdu import credentials_test try:...
dmaclay/python-smpp
c204d1f611454ddeb88f36ec7364ff78373245fb
fixing submit_sm sample, the short_message is 12chr long
diff --git a/tests.py b/tests.py index e443394..13e54bb 100644 --- a/tests.py +++ b/tests.py @@ -1,299 +1,299 @@ # -*- coding: utf-8 -*- import unittest, collections from datetime import datetime, timedelta from smpp.esme import * from smpp.clickatell import * from smpp import pdu import credentials_test try:...
dmaclay/python-smpp
4a7ab4360c50485c1e2ec3e3cfa7562cbe12e6bb
oops, half finished code
diff --git a/tests.py b/tests.py index dd4ac2d..e443394 100644 --- a/tests.py +++ b/tests.py @@ -1,301 +1,299 @@ # -*- coding: utf-8 -*- import unittest, collections from datetime import datetime, timedelta from smpp.esme import * from smpp.clickatell import * from smpp import pdu import credentials_test try:...
dmaclay/python-smpp
eeabc63423e1ec293795bc19603965888ce5248d
adding failing unicode test
diff --git a/tests.py b/tests.py index e443394..dd4ac2d 100644 --- a/tests.py +++ b/tests.py @@ -1,299 +1,301 @@ # -*- coding: utf-8 -*- import unittest, collections from datetime import datetime, timedelta from smpp.esme import * from smpp.clickatell import * from smpp import pdu import credentials_test try:...
dmaclay/python-smpp
83496446b74a441cb4c593b5ea1230aaa5e470dd
adding failing unicode test
diff --git a/tests.py b/tests.py index 60b8485..e443394 100644 --- a/tests.py +++ b/tests.py @@ -1,215 +1,299 @@ -import unittest +# -*- coding: utf-8 -*- +import unittest, collections from datetime import datetime, timedelta from smpp.esme import * from smpp.clickatell import * +from smpp import pdu import crede...
dmaclay/python-smpp
46d3951af896c3f35b425623bda26580570ea148
adding coverage to nosetests, html report is in coverage-html/index.html
diff --git a/.gitignore b/.gitignore index 1654d20..992b512 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,7 @@ *.swp *.pyc *.egg-info ve/ *_priv.py +.coverage +coverage-html/ diff --git a/setup.cfg b/setup.cfg index 9eec931..de3db3e 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,3 +1,7 @@ [nosetests] with-do...
dmaclay/python-smpp
99858d87b3cc755ae1c366cd6da1ec8f44e9e767
redoing how python-smpp is packaged
diff --git a/LICENCE b/LICENCE index 08cd4b2..523815d 100644 --- a/LICENCE +++ b/LICENCE @@ -1,18 +1,28 @@ Copyright (c) Praekelt Foundation and individual contributors. All rights reserved. -Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following c...
dmaclay/python-smpp
dbb4e97723f17a27f23a81cd3d045b5127b97090
QuerySM parameter ordering
diff --git a/src/smpp/pdu_builder.py b/src/smpp/pdu_builder.py index 0ed93e7..1ac7ef7 100644 --- a/src/smpp/pdu_builder.py +++ b/src/smpp/pdu_builder.py @@ -1,284 +1,284 @@ from pdu import * class PDU(object): def __init__(self, command_id, command_status, sequence_numb...
dmaclay/python-smpp
e09e2264410c7e96435487c3d985904679f2217e
query_sm builder
diff --git a/src/smpp/pdu_builder.py b/src/smpp/pdu_builder.py index c42772d..5706387 100644 --- a/src/smpp/pdu_builder.py +++ b/src/smpp/pdu_builder.py @@ -1,263 +1,284 @@ from pdu import * class PDU(object): def __init__(self, command_id, command_status, sequence_numb...
dmaclay/python-smpp
a4bfe08e15c35f56ecf27f1e36fe4b3eaba5a8cb
variable length null octet terminatd strings do not count the null octet as part of the length
diff --git a/src/smpp/pdu.py b/src/smpp/pdu.py index 8fe756b..11aaeea 100644 --- a/src/smpp/pdu.py +++ b/src/smpp/pdu.py @@ -350,696 +350,697 @@ command_status_by_hex = { '00000006':{'hex':'00000006', 'name':'ESME_RINVPRTFLG', 'description':'Invalid priority flag'}, '00000007':{'hex':'00000007', 'name':...
dmaclay/python-smpp
1b2feb174da585fb03558d70ac65588dbcd75832
short_message fix -> added 'xstring' type = no trailing '00'
diff --git a/src/smpp/pdu.py b/src/smpp/pdu.py index 64eed55..8fe756b 100644 --- a/src/smpp/pdu.py +++ b/src/smpp/pdu.py @@ -1,1041 +1,1045 @@ import binascii import re try: import json except: import simplejson as json maps = {} # Inserting certain referenced dicts in here means they can be decl...
dmaclay/python-smpp
02ad352233a6bc81e1e8fa1d433dab7ca2f7a5b7
deliver_sm_resp, enquire_link and got rid of accidental class variables
diff --git a/src/smpp/pdu_builder.py b/src/smpp/pdu_builder.py index 858e059..c42772d 100644 --- a/src/smpp/pdu_builder.py +++ b/src/smpp/pdu_builder.py @@ -1,245 +1,263 @@ from pdu import * class PDU(object): def __init__(self, command_id, command_status, sequence_numb...
dmaclay/python-smpp
0b78f3dbefc91f5612e78674c931fde25b042427
different bind types
diff --git a/src/smpp/pdu_builder.py b/src/smpp/pdu_builder.py index 5a95e32..858e059 100644 --- a/src/smpp/pdu_builder.py +++ b/src/smpp/pdu_builder.py @@ -1,223 +1,245 @@ from pdu import * class PDU(object): def __init__(self, command_id, command_status, sequence_numb...
dmaclay/python-smpp
c27f3006c61365721f868d2d7e0d1d304428c798
cleanup
diff --git a/tests.py b/tests.py index 08d6c86..80afab5 100644 --- a/tests.py +++ b/tests.py @@ -1,200 +1,200 @@ import unittest from datetime import datetime, timedelta from smpp.esme import * from smpp.clickatell import * +import credentials_test try:import credentials_priv except:pass -import credentials_tes...
dmaclay/python-smpp
078ed67e68082ec032f9ad3af5de18c3bcb04fee
setup develop
diff --git a/tests.py b/tests.py index 769646f..08d6c86 100644 --- a/tests.py +++ b/tests.py @@ -1,204 +1,200 @@ import unittest from datetime import datetime, timedelta -try:from smpp.esme import * -except:from src.smpp.esme import * - -try:from smpp.clickatell import * -except:from src.smpp.clickatell import * - ...
dmaclay/python-smpp
f704d089b6e54d546966f0c3d572cf277de69ab8
interface version is an octet 0x34
diff --git a/src/smpp/clickatell.py b/src/smpp/clickatell.py index d54999f..2108e51 100644 --- a/src/smpp/clickatell.py +++ b/src/smpp/clickatell.py @@ -1,7 +1,7 @@ clickatell_defaults = { - 'interface_version':'', #TODO should be '34' - fix pdu.py + 'interface_version':'34', 'dest_addr_ton':1...
dmaclay/python-smpp
80e80227fe17ebb82de2712e50672c8b6dabdaca
better default behavioir
diff --git a/src/smpp/esme.py b/src/smpp/esme.py index e991af4..21d6c2d 100644 --- a/src/smpp/esme.py +++ b/src/smpp/esme.py @@ -1,126 +1,126 @@ import socket from pdu_builder import * class ESME(object): def __init__(self): self.state = 'CLOSED' self.sequence_number = 1 self....
dmaclay/python-smpp
b323cc36d8fbc8defc302b8bf04780d70744cbf4
separate credentials
diff --git a/.gitignore b/.gitignore index 739d7a0..1654d20 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ *.swp *.pyc *.egg-info ve/ -*.priv.py +*_priv.py diff --git a/credentials_test.py b/credentials_test.py new file mode 100644 index 0000000..e803e5b --- /dev/null +++ b/credentials_test.py @@ -0,0 +1,...
dmaclay/python-smpp
242c5f295dcae765e50e7d8d9bfc0ddb0beaf967
cascading defaults
diff --git a/.gitignore b/.gitignore index 0ec0997..739d7a0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ *.swp *.pyc *.egg-info ve/ +*.priv.py diff --git a/src/smpp/clickatell.py b/src/smpp/clickatell.py new file mode 100644 index 0000000..d54999f --- /dev/null +++ b/src/smpp/clickatell.py @@ -0,0 +1,7 ...
dmaclay/python-smpp
8d4a64e4b90fa6fb4a3cbba3124a106e7e1a8079
consistent super
diff --git a/src/smpp/pdu_builder.py b/src/smpp/pdu_builder.py index 3995cb2..ba752da 100644 --- a/src/smpp/pdu_builder.py +++ b/src/smpp/pdu_builder.py @@ -1,218 +1,219 @@ from pdu import * class PDU(object): def __init__(self, command_id, command_status, sequence_numb...
dmaclay/python-smpp
04bdbc06ed93fd62b6202b3fb057f3d4b093ab21
cleanup
diff --git a/src/smpp/pdu_builder.py b/src/smpp/pdu_builder.py index c3d8303..3995cb2 100644 --- a/src/smpp/pdu_builder.py +++ b/src/smpp/pdu_builder.py @@ -1,219 +1,218 @@ from pdu import * class PDU(object): def __init__(self, command_id, command_status, sequence_numb...
dmaclay/python-smpp
fcd2ccc325f5cf5ebee9123e9b511719c2fa4b53
i always forget lists/dicts are pointers to mutable objects
diff --git a/src/smpp/pdu_builder.py b/src/smpp/pdu_builder.py index e609bf1..c3d8303 100644 --- a/src/smpp/pdu_builder.py +++ b/src/smpp/pdu_builder.py @@ -1,216 +1,219 @@ from pdu import * class PDU(object): def __init__(self, command_id, command_status, sequence_numb...
dmaclay/python-smpp
be857868c1ee1a8385c1072abd283980e0e3e508
ESME.submit_multi() seems ok ...
diff --git a/src/smpp/esme.py b/src/smpp/esme.py index f60aab9..472bfac 100644 --- a/src/smpp/esme.py +++ b/src/smpp/esme.py @@ -1,103 +1,113 @@ import socket from pdu_builder import * class ESME(object): def __init__(self): self.state = 'CLOSED' self.sequence_number = 1 self....
dmaclay/python-smpp
605f18d07755278e0eb8787ce65107475f5817b5
better subclassing (**kwargs)
diff --git a/src/smpp/esme.py b/src/smpp/esme.py index 38b1176..f60aab9 100644 --- a/src/smpp/esme.py +++ b/src/smpp/esme.py @@ -1,93 +1,103 @@ import socket from pdu_builder import * -class ESME: +class ESME(object): def __init__(self): self.state = 'CLOSED' self.sequence_number = 1 ...
dmaclay/python-smpp
e8ba486f35f3f3ff4d994a49c3f97d7b38de005f
connection state
diff --git a/src/smpp/esme.py b/src/smpp/esme.py index af201f6..d6a41ca 100644 --- a/src/smpp/esme.py +++ b/src/smpp/esme.py @@ -1,67 +1,90 @@ import socket from pdu_builder import * class ESME: def __init__(self): - self.state = None + self.state = 'CLOSED' self.sequence_number =...
dmaclay/python-smpp
0c11cbf933187951b3b5d245bde79c9b6b3c3dbb
unbind is now private
diff --git a/src/smpp/esme.py b/src/smpp/esme.py index fea2a39..af201f6 100644 --- a/src/smpp/esme.py +++ b/src/smpp/esme.py @@ -1,59 +1,67 @@ import socket from pdu_builder import * class ESME: def __init__(self): + self.state = None self.sequence_number = 1 self.conn = None ...
dmaclay/python-smpp
50a59f07cd4e3ca65528aa1c0589fd4c4f88b2a2
using builder to bind
diff --git a/src/smpp/esme.py b/src/smpp/esme.py index 75497e7..8c60474 100644 --- a/src/smpp/esme.py +++ b/src/smpp/esme.py @@ -1,29 +1,37 @@ import socket -from pdu import * +from pdu_builder import * class ESME: def __init__(self): + self.sequence_number = 1 self.conn = None + s...
dmaclay/python-smpp
efaf44d5ccea576ca458ea6498ec561396133afe
short_message can be set to None/null
diff --git a/test/pdu.py b/test/pdu.py index e34992e..be771cf 100644 --- a/test/pdu.py +++ b/test/pdu.py @@ -1,515 +1,516 @@ pdu_objects = [ { 'header': { 'command_length': 0, 'command_id': 'bind_transmitter', 'command_status': 'ESME_ROK', 'sequence...
dmaclay/python-smpp
ac16057c24da2b938fdf0b26ec18f3b929660b74
PduBuilderTestCase
diff --git a/tests.py b/tests.py index b817c77..6f4eef3 100644 --- a/tests.py +++ b/tests.py @@ -1,168 +1,169 @@ import unittest from datetime import datetime, timedelta try: from smpp.esme import * except: from src.smpp.esme import * from test.pdu import pdu_objects from test import pdu_asserts fr...
dmaclay/python-smpp
57f577e7a6de47f6fb6ad380e20e1b2846b5981d
PduBuilderTestCase
diff --git a/tests.py b/tests.py index db2748c..b817c77 100644 --- a/tests.py +++ b/tests.py @@ -1,161 +1,168 @@ import unittest from datetime import datetime, timedelta try: from smpp.esme import * except: from src.smpp.esme import * from test.pdu import pdu_objects from test import pdu_asserts fr...
dmaclay/python-smpp
6650ba517465897d52af9a6feac294671a78d697
ton & npi default to 0
diff --git a/src/smpp/pdu_builder.py b/src/smpp/pdu_builder.py index 17ed146..8e20dc8 100644 --- a/src/smpp/pdu_builder.py +++ b/src/smpp/pdu_builder.py @@ -1,142 +1,142 @@ from pdu import * class PDU: def __init__(self, command_id, command_status, sequence_number = 1, ...
dmaclay/python-smpp
50c92619df267cf592d48c58c4e1330425f0c733
bind_transmitter & submit_sm
diff --git a/src/smpp/pdu_builder.py b/src/smpp/pdu_builder.py index e69de29..17ed146 100644 --- a/src/smpp/pdu_builder.py +++ b/src/smpp/pdu_builder.py @@ -0,0 +1,142 @@ +from pdu import * + +class PDU: + + def __init__(self, + command_id, + command_status, + sequence_number = 1, + ...
dmaclay/python-smpp
941f0be15cbcd7a68975d635de3b6872bca57a0a
no sm = null, not ''
diff --git a/src/smpp/pdu.py b/src/smpp/pdu.py index 979af1e..97cba18 100644 --- a/src/smpp/pdu.py +++ b/src/smpp/pdu.py @@ -357,680 +357,685 @@ command_status_by_hex = { '0000000e':{'hex':'0000000e', 'name':'ESME_RINVPASWD', 'description':'Invalid password'}, '0000000f':{'hex':'0000000f', 'name':'ESME...
dmaclay/python-smpp
4db62bded22047d82ef62260503e118874eebb8e
no sm = null, not ''
diff --git a/test/pdu_hex_asserts.py b/test/pdu_hex_asserts.py index 9a553b1..313209a 100644 --- a/test/pdu_hex_asserts.py +++ b/test/pdu_hex_asserts.py @@ -1,128 +1,128 @@ ######################################## pdu_json_0000000001 = '''{ "body": { "mandatory_parameters": { "data_coding...
dmaclay/python-smpp
7c0f3feaa086859491dbf3b0171ee907ccf32a1f
no sm = null, not ''
diff --git a/test/pdu_asserts.py b/test/pdu_asserts.py index 37a6c80..75d3891 100644 --- a/test/pdu_asserts.py +++ b/test/pdu_asserts.py @@ -1,563 +1,563 @@ ######################################## pdu_json_0000000001 = '''{ "body": { "mandatory_parameters": { "addr_npi": "ISDN", ...
dmaclay/python-smpp
45f15be3e9d742da4a42798fa8e03f588b150d34
pdu helper classes
diff --git a/src/smpp/pdu_builder.py b/src/smpp/pdu_builder.py new file mode 100644 index 0000000..e69de29
dmaclay/python-smpp
e79c52e7d452ed3450b0523927fa5017b2e6dc7e
cleaner
diff --git a/tests.py b/tests.py index 84eadbf..e2a2454 100644 --- a/tests.py +++ b/tests.py @@ -1,165 +1,161 @@ import unittest from datetime import datetime, timedelta try: from smpp.esme import * except: from src.smpp.esme import * from test.pdu import pdu_objects from test import pdu_asserts fr...
dmaclay/python-smpp
9f277aef925dc7a8fe7eafe89eae3767fd2797c1
cleanup
diff --git a/tests.py b/tests.py index 6fad583..84eadbf 100644 --- a/tests.py +++ b/tests.py @@ -1,481 +1,165 @@ import unittest from datetime import datetime, timedelta try: from smpp.esme import * except: from src.smpp.esme import * from test.pdu import pdu_objects from test import pdu_asserts fr...
dmaclay/python-smpp
fb512d0a6cbfcbbdb6a8ec42c72cc3d91437a496
hex strings test
diff --git a/tests.py b/tests.py index 5c24ca3..6fad583 100644 --- a/tests.py +++ b/tests.py @@ -1,464 +1,481 @@ import unittest from datetime import datetime, timedelta try: from smpp.esme import * except: from src.smpp.esme import * from test.pdu import pdu_objects from test import pdu_asserts fr...
dmaclay/python-smpp
e17c792e3003ad3d9bef1336d5c8ab69db7bd5eb
pdu hex asserts
diff --git a/test/pdu_hex.py b/test/pdu_hex.py new file mode 100644 index 0000000..df5a1c4 --- /dev/null +++ b/test/pdu_hex.py @@ -0,0 +1,68 @@ + +pdu_hex_strings = [ + ''' + 0000003C # command_length + 00000004 # command_id + 00000000 # command_status + 00000005 # sequence_number + ...
dmaclay/python-smpp
18ecfac7534625d560fd44a57b382923c6c574e4
performance test
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0ec0997 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.swp +*.pyc +*.egg-info +ve/ diff --git a/LICENCE b/LICENCE new file mode 100644 index 0000000..08cd4b2 --- /dev/null +++ b/LICENCE @@ -0,0 +1,18 @@ +Copyright (c) Praekelt Foundation and in...
dmaclay/python-smpp
22acd7343d78613ff3ecc3a9d35af9f82d0d43df
sample dictionary for calculating length of PDU packet was wrong
diff --git a/tests.py b/tests.py index 3fe89cd..85840f6 100644 --- a/tests.py +++ b/tests.py @@ -1,307 +1,307 @@ from unittest import TestCase from datetime import datetime from smpp.esme import * from smpp import pdu import collections def unpack(pdu_hex): """Unpack PDU and return it as a dictionary""" ...
dmaclay/python-smpp
423476e83c52dec9f804ee1ccd9178397a2963b9
adding assertDictEquals(dict,dict), gives a more sane output when two dictionaries dont equal, much easier to debug encoding / decoding issues
diff --git a/tests.py b/tests.py index 1f0655e..3fe89cd 100644 --- a/tests.py +++ b/tests.py @@ -1,256 +1,307 @@ from unittest import TestCase from datetime import datetime from smpp.esme import * +from smpp import pdu +import collections def unpack(pdu_hex): """Unpack PDU and return it as a dictionary""" ...
dmaclay/python-smpp
b7b7cc48e9e7ab42d357679b1fbabb02ee1acc56
in the process of converting tests.py to a TestCase for nosetests
diff --git a/README b/README new file mode 100644 index 0000000..501008a --- /dev/null +++ b/README @@ -0,0 +1,16 @@ +Python SMPP +=========== + +An SMPP version 3.4 library written in Python, suitable for use in [Twisted][twisted] + +To get started with development: + + $ virtualenv --no-site-packges ve/ + $ sou...
dmaclay/python-smpp
4a0e656ba9b8606f10c7116987653403a6f412e0
Updating README and adding setup.py for easier installation into other projects using pip & friends.
diff --git a/.gitignore b/.gitignore index c4e79a4..0ec0997 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ *.swp *.pyc *.egg-info - +ve/ diff --git a/README b/README deleted file mode 100644 index 71757c9..0000000 --- a/README +++ /dev/null @@ -1,2 +0,0 @@ - - coming soon ... ish \ No newline at end of ...
dmaclay/python-smpp
dc14d104b8146508bb9da96723fddf496a3b2133
sample dictionary for calculating length of PDU packet was wrong
diff --git a/tests.py b/tests.py index 3fe89cd..85840f6 100644 --- a/tests.py +++ b/tests.py @@ -1,307 +1,307 @@ from unittest import TestCase from datetime import datetime from smpp.esme import * from smpp import pdu import collections def unpack(pdu_hex): """Unpack PDU and return it as a dictionary""" ...
dmaclay/python-smpp
662759651be51305b66251af3dbe622b28747ce2
adding assertDictEquals(dict,dict), gives a more sane output when two dictionaries dont equal, much easier to debug encoding / decoding issues
diff --git a/tests.py b/tests.py index 1f0655e..3fe89cd 100644 --- a/tests.py +++ b/tests.py @@ -1,256 +1,307 @@ from unittest import TestCase from datetime import datetime from smpp.esme import * +from smpp import pdu +import collections def unpack(pdu_hex): """Unpack PDU and return it as a dictionary""" ...
dmaclay/python-smpp
0711313866bdde5032cc85f977c7f75ac87cb1b3
pre pull merge
diff --git a/smpp/pdu.py b/smpp/pdu.py index ab8162c..ce6deb3 100644 --- a/smpp/pdu.py +++ b/smpp/pdu.py @@ -426,562 +426,562 @@ command_status_by_name = { 'ESME_RINVDSTNPI' :{'hex':'00000051', 'name':'ESME_RINVDSTNPI', 'description':'Invalid destination address NPI'}, 'ESME_RINVSYSTYP' :{'hex...
dmaclay/python-smpp
3c8e0f7e9fb9860bf8c68c773612f2d91f988030
in the process of converting tests.py to a TestCase for nosetests
diff --git a/README b/README new file mode 100644 index 0000000..501008a --- /dev/null +++ b/README @@ -0,0 +1,16 @@ +Python SMPP +=========== + +An SMPP version 3.4 library written in Python, suitable for use in [Twisted][twisted] + +To get started with development: + + $ virtualenv --no-site-packges ve/ + $ sou...
dmaclay/python-smpp
400d1680443b5e2d183aede275a56b8c23b71fcb
Updating README and adding setup.py for easier installation into other projects using pip & friends.
diff --git a/.gitignore b/.gitignore index c4e79a4..0ec0997 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ *.swp *.pyc *.egg-info - +ve/ diff --git a/README b/README deleted file mode 100644 index 71757c9..0000000 --- a/README +++ /dev/null @@ -1,2 +0,0 @@ - - coming soon ... ish \ No newline at end of ...
dmaclay/python-smpp
5174d4e4636e56ba290512fb466bcc4ee898acd6
100,000 pack & unpack
diff --git a/tests.py b/tests.py index 203587b..ff7442f 100644 --- a/tests.py +++ b/tests.py @@ -1,129 +1,132 @@ +from datetime import datetime from smpp.esme import * + def prettydump(pdu_hex): return json.dumps(unpack_pdu(binascii.a2b_hex(hexclean(x))), indent=4, sort_keys=True) def hexclean(dirtyhex): ...
dmaclay/python-smpp
2989e0d2cde58ae7be39308e3ea0bd639d25037a
pack / unpack speed test
diff --git a/tests.py b/tests.py index 9436781..203587b 100644 --- a/tests.py +++ b/tests.py @@ -1,122 +1,129 @@ from smpp.esme import * def prettydump(pdu_hex): return json.dumps(unpack_pdu(binascii.a2b_hex(hexclean(x))), indent=4, sort_keys=True) def hexclean(dirtyhex): return re.sub(r'\s','',re.su...
dmaclay/python-smpp
4e2114b99f25dfdd58a8fb08a9320c57fa03d6f0
pack / unpack speed test
diff --git a/smpp/pdu.py b/smpp/pdu.py index eac188d..ab8162c 100644 --- a/smpp/pdu.py +++ b/smpp/pdu.py @@ -365,623 +365,623 @@ command_status_by_hex = { '00000040':{'hex':'00000040', 'name':'ESME_RINVDESTFLAG', 'description':'Destination flag is invalid (submit_multi)'}, '00000042':{'hex':'00000042', 'n...
dmaclay/python-smpp
bfbcd8e38438f3ed20d589046c4e404385ffcd70
can encode bind
diff --git a/smpp/pdu.py b/smpp/pdu.py index 0f2e503..eac188d 100644 --- a/smpp/pdu.py +++ b/smpp/pdu.py @@ -1,967 +1,987 @@ import binascii import re try: import json except: import simplejson as json maps = {} # Inserting certain referenced dicts in here means they can be declared in the same o...
dmaclay/python-smpp
152bc28725edd4e88fcb5174c79e3b9e7931500b
can encode bind
diff --git a/tests.py b/tests.py index 7470655..9436781 100644 --- a/tests.py +++ b/tests.py @@ -1,53 +1,122 @@ from smpp.esme import * +def prettydump(pdu_hex): + return json.dumps(unpack_pdu(binascii.a2b_hex(hexclean(x))), indent=4, sort_keys=True) + +def hexclean(dirtyhex): + return re.sub(r'\s','',re.sub...
dmaclay/python-smpp
d0f216e3a4e3ed25e43d4d01bcf6b18b49da93ef
can encode bind
diff --git a/smpp/esme.py b/smpp/esme.py index 8dc1525..75497e7 100644 --- a/smpp/esme.py +++ b/smpp/esme.py @@ -1,29 +1,29 @@ import socket from pdu import * class ESME: def __init__(self): self.conn = None def connect_SMSC(self, host='127.0.0.1', port=2775): self.conn = socket...
dmaclay/python-smpp
02f692c4de936bef9ae405824f697f33295bf4de
eventually
diff --git a/README b/README index e69de29..71757c9 100644 --- a/README +++ b/README @@ -0,0 +1,2 @@ + + coming soon ... ish \ No newline at end of file
dmaclay/python-smpp
70c197d60f17a6292df3cd9fdaa66cd8c9af2f7f
cleanup
diff --git a/smpp/esme.py b/smpp/esme.py index 1de7bf9..8dc1525 100644 --- a/smpp/esme.py +++ b/smpp/esme.py @@ -1,34 +1,29 @@ import socket from pdu import * class ESME: def __init__(self): self.conn = None def connect_SMSC(self, host='127.0.0.1', port=2775): self.conn = socket...
dmaclay/python-smpp
25e452d2d1a2e72878f99b1a4d39ef386b13dd78
cleanup
diff --git a/tests.py b/tests.py index 39f4fde..7470655 100644 --- a/tests.py +++ b/tests.py @@ -1,45 +1,53 @@ from smpp.esme import * -#esme = ESME() -#esme.connect_SMSC() - -#print str(binascii.a2b_hex(re.sub(' ','','00 00 00 3C 00 00 00 04 00 00 00 00 00 00 00 05 00 02 08 35 35 35 00 01 01 35 35 35 35 35 35 35 ...
dmaclay/python-smpp
1f6c87b41fa8cba67ecda20524a61127a6ea38e5
cleanup
diff --git a/smpp/pdu.py b/smpp/pdu.py index 549345b..0f2e503 100644 --- a/smpp/pdu.py +++ b/smpp/pdu.py @@ -1,964 +1,967 @@ import binascii import re +try: + import json +except: + import simplejson as json + + maps = {} # Inserting certain referenced dicts in here means they can be declared in the same o...
dmaclay/python-smpp
723840104bceccc584e353d63177c0276b180f47
optional parameters to first tier of types done
diff --git a/tests.py b/tests.py index 91a43cd..39f4fde 100644 --- a/tests.py +++ b/tests.py @@ -1,45 +1,45 @@ from smpp.esme import * #esme = ESME() #esme.connect_SMSC() #print str(binascii.a2b_hex(re.sub(' ','','00 00 00 3C 00 00 00 04 00 00 00 00 00 00 00 05 00 02 08 35 35 35 00 01 01 35 35 35 35 35 35 35 ...
dmaclay/python-smpp
f224e4e4686abfc2f8ddf1b25b5a7b00d71e7cc5
optional parameters to first tier of types done
diff --git a/smpp/pdu.py b/smpp/pdu.py index 0fdf158..549345b 100644 --- a/smpp/pdu.py +++ b/smpp/pdu.py @@ -77,872 +77,888 @@ mandatory_parameter_lists = { 'submit_sm_resp':[ # SMPP v3.4, section 4.4.2, table 4-11, page 67 {'name':'message_id', 'min':0, 'max':65, 'var':True, 't...
dmaclay/python-smpp
48316dbfc26ce8030ac3116f88a843421c76f5a2
optional parameter value types
diff --git a/smpp/pdu.py b/smpp/pdu.py index 390b2ea..0fdf158 100644 --- a/smpp/pdu.py +++ b/smpp/pdu.py @@ -1,945 +1,948 @@ import binascii import re maps = {} # Inserting certain referenced dicts in here means they can be declared in the same order as in the spec. # SMPP PDU Definition - SMPP v3.4, sectio...
dmaclay/python-smpp
0653b3993dc043015da176af15192cd9fe855c67
optional parameter value types
diff --git a/tests.py b/tests.py index 755ff8d..91a43cd 100644 --- a/tests.py +++ b/tests.py @@ -1,45 +1,45 @@ from smpp.esme import * #esme = ESME() #esme.connect_SMSC() #print str(binascii.a2b_hex(re.sub(' ','','00 00 00 3C 00 00 00 04 00 00 00 00 00 00 00 05 00 02 08 35 35 35 00 01 01 35 35 35 35 35 35 35 ...
dmaclay/python-smpp
6c6bcd7fd5e1bb6da6a9d8d9c4b739ec16f864e0
|icleanup<esc>:wq
diff --git a/tests.py b/tests.py index 6acf1f5..755ff8d 100644 --- a/tests.py +++ b/tests.py @@ -1,30 +1,45 @@ from smpp.esme import * #esme = ESME() #esme.connect_SMSC() #print str(binascii.a2b_hex(re.sub(' ','','00 00 00 3C 00 00 00 04 00 00 00 00 00 00 00 05 00 02 08 35 35 35 00 01 01 35 35 35 35 35 35 35 ...
dmaclay/python-smpp
1e9481e7e0871d1f4c78c2b0e1f2cae6e0f34162
cleanup
diff --git a/smpp/pdu.py b/smpp/pdu.py index 6963f8f..390b2ea 100644 --- a/smpp/pdu.py +++ b/smpp/pdu.py @@ -268,674 +268,678 @@ command_id_by_hex = { '80010009':{'hex':'80010009', 'name':'delivery_receipt_resp_v4'}, '0001000a':{'hex':'0001000a', 'name':'enquire_link_v4'}, '8001000a':{'hex':'8001000a', '...
dmaclay/python-smpp
51e26d84b6760833d6ab4dea0defd21d34904bfa
decoding pretty much complete - needs testing
diff --git a/smpp/pdu.py b/smpp/pdu.py index eb57792..885e84d 100644 --- a/smpp/pdu.py +++ b/smpp/pdu.py @@ -43,891 +43,899 @@ mandatory_parameter_lists = { ], 'bind_transceiver_resp':[ # SMPP v3.4, section 4.1.6, table 4-6, page 52 {'name':'system_id', 'min':1, 'max':16, 'var':True, ...
dmaclay/python-smpp
f30e2e467bd00f0f951697d98f21adb19cc1bb84
decoding pretty much complete - needs testing
diff --git a/tests.py b/tests.py index 45645f3..6acf1f5 100644 --- a/tests.py +++ b/tests.py @@ -1,30 +1,30 @@ from smpp.esme import * #esme = ESME() #esme.connect_SMSC() #print str(binascii.a2b_hex(re.sub(' ','','00 00 00 3C 00 00 00 04 00 00 00 00 00 00 00 05 00 02 08 35 35 35 00 01 01 35 35 35 35 35 35 35 ...
dmaclay/python-smpp
d8fc5e43b646c9dde550c9673e01872c9b156d81
nested decoding
diff --git a/smpp/esme.py b/smpp/esme.py index 435835b..1de7bf9 100644 --- a/smpp/esme.py +++ b/smpp/esme.py @@ -1,34 +1,34 @@ import socket from pdu import * class ESME: def __init__(self): self.conn = None def connect_SMSC(self, host='127.0.0.1', port=2775): self.conn = socket...
dmaclay/python-smpp
b1095aa3a556d2c932fe0ca7b8ed672172921d85
nested decoding
diff --git a/tests.py b/tests.py index 5f8eec5..45645f3 100644 --- a/tests.py +++ b/tests.py @@ -1,25 +1,30 @@ from smpp.esme import * #esme = ESME() #esme.connect_SMSC() #print str(binascii.a2b_hex(re.sub(' ','','00 00 00 3C 00 00 00 04 00 00 00 00 00 00 00 05 00 02 08 35 35 35 00 01 01 35 35 35 35 35 35 35 ...
dmaclay/python-smpp
14b3ca465a4e064fd430c2094f3a3d20acd97764
nested decoding
diff --git a/smpp/pdu.py b/smpp/pdu.py index 605f92e..eb57792 100644 --- a/smpp/pdu.py +++ b/smpp/pdu.py @@ -1,919 +1,933 @@ import binascii import re maps = {} # Inserting certain referenced dicts in here means they can be declared in the same order as in the spec. # SMPP PDU Definition - SMPP v3.4, sectio...
dmaclay/python-smpp
759e7c0be82da9856b30ea3396a37d9e74ed3dad
Mappings now ordered by spec page no.
diff --git a/smpp/pdu.py b/smpp/pdu.py index cf231d6..605f92e 100644 --- a/smpp/pdu.py +++ b/smpp/pdu.py @@ -1,917 +1,919 @@ import binascii import re maps = {} # Inserting certain referenced dicts in here means they can be declared in the same order as in the spec. +# SMPP PDU Definition - SMPP v3.4, sectio...
dmaclay/python-smpp
1c9efbc33e0a3b19386787bb88064353fc4dc2f1
put most small tables into master map
diff --git a/smpp/pdu.py b/smpp/pdu.py index f943aac..cf231d6 100644 --- a/smpp/pdu.py +++ b/smpp/pdu.py @@ -1,915 +1,917 @@ import binascii import re +maps = {} # Inserting certain referenced dicts in here means they can be declared in the same order as in the spec. + # SMPP Error Codes (ESME) - SMPP v3.4, se...
dmaclay/python-smpp
daac274eb9696cb6fe35b542577a1a328484e19f
major refactoring - dropping unecessarily indirect functions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c4e79a4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.swp +*.pyc +*.egg-info + diff --git a/LICENCE b/LICENCE new file mode 100644 index 0000000..08cd4b2 --- /dev/null +++ b/LICENCE @@ -0,0 +1,18 @@ +Copyright (c) Praekelt Foundation and indiv...
aereal/dotfiles
f22d196a5f367c0d747a8601484cf24d663798d7
fix(zsh): use `--tmux` option only running on normal terminal
diff --git a/.zshrc b/.zshrc index c7a8aee..1fe9cb6 100644 --- a/.zshrc +++ b/.zshrc @@ -1,372 +1,375 @@ bindkey -v # function load path {{{ typeset -Ua fpath fpath=( $HOME/.zsh.d/functions(N-/) $HOMEBREW_PATH/share/zsh-completions(N-/) $HOMEBREW_PATH/share/zsh/site-functions(N-/) $HOMEBREW_PATH/share...
aereal/dotfiles
bcc73cd256dbdaab64fd0d5599e00759e932bcb5
fix(zsh): use tmux popup
diff --git a/.zshrc b/.zshrc index 9d1a3bf..c7a8aee 100644 --- a/.zshrc +++ b/.zshrc @@ -1,370 +1,372 @@ bindkey -v # function load path {{{ typeset -Ua fpath fpath=( $HOME/.zsh.d/functions(N-/) $HOMEBREW_PATH/share/zsh-completions(N-/) $HOMEBREW_PATH/share/zsh/site-functions(N-/) $HOMEBREW_PATH/share...
aereal/dotfiles
a3c605b0c724ddc8f6b3f85270da6c5c168df1a3
fix(zsh): use fzf
diff --git a/.zshrc b/.zshrc index e1aa411..9d1a3bf 100644 --- a/.zshrc +++ b/.zshrc @@ -1,370 +1,370 @@ bindkey -v # function load path {{{ typeset -Ua fpath fpath=( $HOME/.zsh.d/functions(N-/) $HOMEBREW_PATH/share/zsh-completions(N-/) $HOMEBREW_PATH/share/zsh/site-functions(N-/) $HOMEBREW_PATH/share...
aereal/dotfiles
2b5f12cf0cfd466e1f9ec483c84acc11406bb582
feat(zsh): add mise shims
diff --git a/.zshenv b/.zshenv index c000672..158aae6 100644 --- a/.zshenv +++ b/.zshenv @@ -1,104 +1,105 @@ # to avoid overwritten PATH via /usr/libexec/path_helper # refs. https://github.com/Homebrew/homebrew-core/pull/32074#issuecomment-421381869 unsetopt GLOBAL_RCS # environment export LC_ALL=ja_JP.UTF-8 ex...
aereal/dotfiles
47b73c278aed8b0dc17633d663c60dc2883d8a48
feat: more medetai commands
diff --git a/.gitconfig b/.gitconfig index 93ba97f..dcbe434 100644 --- a/.gitconfig +++ b/.gitconfig @@ -1,112 +1,116 @@ [user] email = trasty.loose@gmail.com name = aereal [gui] encoding = utf-8 [github] user = aereal [alias] abort-rebase = rebase --abort branch-name = name-rev --nam...
aereal/dotfiles
efcf090c3e5430478c53d083dc2f165412bbc3df
feat(zsh): add WSL-related paths
diff --git a/.zshenv b/.zshenv index 87f9c95..c000672 100644 --- a/.zshenv +++ b/.zshenv @@ -1,100 +1,104 @@ # to avoid overwritten PATH via /usr/libexec/path_helper # refs. https://github.com/Homebrew/homebrew-core/pull/32074#issuecomment-421381869 unsetopt GLOBAL_RCS # environment export LC_ALL=ja_JP.UTF-8 ex...
aereal/dotfiles
a8d623c06f7c0f135723517d7bbc202c175cd596
fix: install at once
diff --git a/brew.bash b/brew.bash index b40b42e..feb7af8 100644 --- a/brew.bash +++ b/brew.bash @@ -1,69 +1,69 @@ #!/bin/bash set -e brew_install() { brew install $@ || : } brew update export HOMEBREW_NO_AUTO_UPDATE=1 -# essentials -brew_install awscli -brew_install bat -brew_install colordiff -brew...
aereal/dotfiles
047168acfbfb41ea1a5c9f37bce7840031c5fba5
feat(ghostty): add ghostty config
diff --git a/.config/ghostty/config b/.config/ghostty/config new file mode 100644 index 0000000..0250e01 --- /dev/null +++ b/.config/ghostty/config @@ -0,0 +1,10 @@ +font-family = "Cascadia Code" +font-family = "HackGen Console" +font-size = 18 +theme = /Applications/Ghostty.app/Contents/Resources/ghostty/themes/OneHal...
aereal/dotfiles
9ef6ecdde350418f0f7c1c9e2f99c10dbe9f1d7f
fix(brew): cask is integrated
diff --git a/brew.bash b/brew.bash index 58f8302..b40b42e 100644 --- a/brew.bash +++ b/brew.bash @@ -1,69 +1,69 @@ #!/bin/bash set -e brew_install() { brew install $@ || : } brew update export HOMEBREW_NO_AUTO_UPDATE=1 # essentials brew_install awscli brew_install bat brew_install colordiff brew...
aereal/dotfiles
2eccc751b16b9bc5079c6d95715af5f8f03023d9
fix(zsh): use eza
diff --git a/.zshrc b/.zshrc index 6974e50..e1aa411 100644 --- a/.zshrc +++ b/.zshrc @@ -1,370 +1,370 @@ bindkey -v # function load path {{{ typeset -Ua fpath fpath=( $HOME/.zsh.d/functions(N-/) $HOMEBREW_PATH/share/zsh-completions(N-/) $HOMEBREW_PATH/share/zsh/site-functions(N-/) $HOMEBREW_PATH/share...
aereal/dotfiles
7cc948ee21b202ff1874e51e141b04c3c067ec2e
fix(zsh): use mysql-client
diff --git a/.zshenv b/.zshenv index 6f1f65b..87f9c95 100644 --- a/.zshenv +++ b/.zshenv @@ -1,100 +1,100 @@ # to avoid overwritten PATH via /usr/libexec/path_helper # refs. https://github.com/Homebrew/homebrew-core/pull/32074#issuecomment-421381869 unsetopt GLOBAL_RCS # environment export LC_ALL=ja_JP.UTF-8 ex...
aereal/dotfiles
bf66a32a2f23b6901f413854c1a0f45060d9e898
fix(git): update mail
diff --git a/.gitconfig b/.gitconfig index 58ff696..93ba97f 100644 --- a/.gitconfig +++ b/.gitconfig @@ -1,112 +1,112 @@ [user] - email = aereal@aereal.org + email = trasty.loose@gmail.com name = aereal [gui] encoding = utf-8 [github] user = aereal [alias] abort-rebase = rebase --abort branch-...
aereal/dotfiles
01018fe5230577e1d8109a218edfe6a0b67614eb
feat: add ~/.rd/bin
diff --git a/.zshenv b/.zshenv index 51f202f..6f1f65b 100644 --- a/.zshenv +++ b/.zshenv @@ -1,99 +1,100 @@ # to avoid overwritten PATH via /usr/libexec/path_helper # refs. https://github.com/Homebrew/homebrew-core/pull/32074#issuecomment-421381869 unsetopt GLOBAL_RCS # environment export LC_ALL=ja_JP.UTF-8 exp...
aereal/dotfiles
9b998aecc73f1fc0c573a54debb0d9ca92f40f9a
feat: add node@20 path
diff --git a/.zshenv b/.zshenv index 283da9c..51f202f 100644 --- a/.zshenv +++ b/.zshenv @@ -1,98 +1,99 @@ # to avoid overwritten PATH via /usr/libexec/path_helper # refs. https://github.com/Homebrew/homebrew-core/pull/32074#issuecomment-421381869 unsetopt GLOBAL_RCS # environment export LC_ALL=ja_JP.UTF-8 expo...
aereal/dotfiles
069fbb2c0748c47611bae6a2db314a6a4d755c41
feat(zsh): enable completion for op
diff --git a/.zshrc b/.zshrc index 6e15d44..6974e50 100644 --- a/.zshrc +++ b/.zshrc @@ -1,365 +1,370 @@ bindkey -v # function load path {{{ typeset -Ua fpath fpath=( $HOME/.zsh.d/functions(N-/) $HOMEBREW_PATH/share/zsh-completions(N-/) $HOMEBREW_PATH/share/zsh/site-functions(N-/) $HOMEBREW_PATH/share...
aereal/dotfiles
39fa95b9feb5b715a5b5192529c76759f3a39ef3
fix: change hot key
diff --git a/.hammerspoon/init.lua b/.hammerspoon/init.lua index 6a1b05e..18316bb 100644 --- a/.hammerspoon/init.lua +++ b/.hammerspoon/init.lua @@ -1,48 +1,48 @@ hs.window.animationDuration = 0 -viKey = hs.hotkey.modal.new('ctrl-cmd', 'delete', 'hammerspoon') +viKey = hs.hotkey.modal.new('ctrl-cmd-option', 'space',...
aereal/dotfiles
ecbc1d83208473506893f3acc988609fa394697a
fix(zsh): suppress error message
diff --git a/.zshenv b/.zshenv index 2571207..283da9c 100644 --- a/.zshenv +++ b/.zshenv @@ -1,98 +1,98 @@ # to avoid overwritten PATH via /usr/libexec/path_helper # refs. https://github.com/Homebrew/homebrew-core/pull/32074#issuecomment-421381869 unsetopt GLOBAL_RCS # environment export LC_ALL=ja_JP.UTF-8 expo...