
Research
/Security News
Malicious npm Packages Target WhatsApp Developers with Remote Kill Switch
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
Unofficial Python 3.7 API wrapper for the TransportAPI.
[dev-packages]
black = "*"
[packages]
requests = "*"
[requires]
python_version = "3.7"
Install transportapi-python
using either:
pip3 install transportapi-python
, pipenv install
, pip3 install -r requirements.txt
, python setup.py install
.See transportapi_python/transportapi.py
for other parameters.
from transportapi_python import Train
from pprint import pprint
# HTTP(S) proxies are supported: https://2.python-requests.org/en/master/user/advanced/#proxies
train = Train(APP_ID="Your app ID here.", API_KEY="Your API key here.")
# Uses the default value station_code: "LBG".
pprint(train.train_timetable())
from transportapi_python import Bus
from pprint import pprint
# HTTP(S) proxies are supported: https://2.python-requests.org/en/master/user/advanced/#proxies
bus = Bus(APP_ID="Your app ID here.", API_KEY="Your API key here.")
# Uses the default value station_code: "LBG".
pprint(bus.bus_service_info())
Usage for Public
, Car
and Bicycle
classes are exactly the same as above.
This project is licensed under the MIT License - see the LICENSE for details.
This API wrapper is unofficial meaning it has no affiliation with TransportAPI. When using their API, you consent to their terms & conditions and privacy policy.
FAQs
Unofficial Python 3.7 API wrapper for the TransportAPI.
We found that transportapi-python demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.