SMS-Fly gateway API Python package
pip install SMSFly
pip install tox --user
tox
1 from smsfly import SMSFlyAPI
2 api = SMSFlyAPI(account_id='3801234567', account_pass='qwerty')
3 api.getbalance()
SMS-Fly gateway API Python package
Home Page: https://pypi.python.org/pypi/SMSFly
License: MIT License
What am I doing wrong? The same error with Windows 10 and with Ubuntu
C:\Users\ghost
λ python --version
Python 3.7.1
C:\Users\ghost
λ python -m pip freeze | grep 'SMS'
SMSFly==0.1.5
C:\Users\ghost
λ python
Python 3.7.1 (v3.7.1:260ec2c36a, Oct 20 2018, 14:57:15) [MSC v.1915 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from smsfly import SMSFlyAPI
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'smsfly'
>>>`
<message start_time=" AUTO " end_time=" AUTO " lifetime="4" rate="120" desc="My first
campaign" source="ALFANAME">
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
*** smsfly.py 2017-01-29 02:59:07.967282733 +0200
--- smsfly_utf.py 2016-10-29 06:08:21.000000000 +0300
***************
*** 23,28 ****
--- 23,29 ----
@parse_xml_response
def __request(self, request_xml_body):
req_body = str(request_xml_body)
+ req_body = req_body.encode("utf-8")
logger.debug('Submitting POST request to SMS-Fly API {}.\nRequest body: {}'.
format(self.API_URL, req_body))
return self.__http.post(self.API_URL, data=req_body)
pre-commit
. Here's an example of .pre-commit-config.yaml
- repo: https://github.com/pre-commit/pre-commit-hooks
sha: master
hooks:
- id: trailing-whitespace
exclude: wargaming|bigworld|saber/(server|template|tools|transport|scripts/(common/(TemplateData|pydev|bwpydevd.py$)|surrogates))
- id: check-merge-conflict
exclude: wargaming|bigworld|saber/(server|template|tools|transport|scripts/(common/(TemplateData|pydev|bwpydevd.py$)|surrogates))
- id: double-quote-string-fixer
exclude: wargaming|bigworld|saber/(server|template|tools|transport|scripts/(common/(TemplateData|pydev|bwpydevd.py$)|surrogates))
- id: end-of-file-fixer
exclude: wargaming|bigworld|saber/(server|template|tools|transport|scripts/(common/(TemplateData|pydev|bwpydevd.py$)|surrogates))
# - id: fix-encoding-pragma
# exclude: wargaming|bigworld|saber/(server|template|tools|transport|scripts/(common/(TemplateData|pydev|bwpydevd.py$)|surrogates))
- id: check-xml
exclude: wargaming|bigworld|saber/(tools|transport|scripts/(common/(TemplateData|pydev|bwpydevd.py$)|surrogates))
- id: name-tests-test
exclude: wargaming|bigworld|saber/(server|template|tools|transport|scripts/(common/(TemplateData|pydev|bwpydevd.py$)|surrogates))
- id: flake8
exclude: wargaming|bigworld|saber/(server|template|tools|transport|scripts/(common/(TemplateData|pydev|bwpydevd.py$|Transport/Generated)|surrogates))
- id: debug-statements
exclude: wargaming|bigworld|saber/(server|template|tools|transport|scripts/(common/(TemplateData|pydev|bwpydevd.py$)|surrogates))
vagga
tox
to test code against several python versionsWant to back this issue? Post a bounty on it! We accept bounties via Bountysource.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
Add runtime requirements into setup.py
(likely) and add dev/test requirements into some requirements.txt
infrastructure.
N.B. to make requirements.txt
depend on setup.py
's requirements, add -e .
requirement
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
implement __enter__()
and __exit__()
methods to enable API wrapper with
-compatible
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
Add support for wider range of python versions
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
requests
packagebeautifulsoup
(optionally) with lxml
(probably)A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.