Skip to main content
# push7-python

push7 api client for python
supporting python2.7 and python3.4

# Usage

```bash
pip install push7
```

## Initialize
First, you should create a client for push7.
```python
from push7 import Client

appno = 'edit_your_appno'
apikey = 'edit_your_apps_apikey'

client = Client(appno, apikey)
```

## Create Push
```python
# Immediately
client.push("title", "body", "http://arg.vc/icon.png", "http://arg.vc/").send()


# Create a reserved push ( push7 system will be send push to user after 4 hours)
from datetime import datetime, timedelta
target_datetime = datetime.now() + timedelta(hours=4)
client.push("title", "body", "http://arg.vc/icon.png", "http://arg.vc/", target_datetime).send()
```

## Create Push with Query

```python
from push7.push import PushWithQuery as query
parameters = ['user001', 'user002']
client.push_with_query("title", "body", "http://arg.vc/icon.png", "http://arg.vc/", query.Mode._or, parameters).send()
```


# For Contributors

## Testing

If you want to run tests, you should set environment vars 'PUSH7_APPNO' and 'PUSH7_APIKEY'.
After setting environment vars, you can run tests by below commands.

```bash
tox
```




## Pylint
```bash
cd push7
pylint * --disable=R,C,unused-import,locally-disabled
```

## Mypy
```bash
cd push7
mypy --ignore-missing-imports *.py
```

## Yapf
```bash
cd pushy
yapf -r -i push7/
```




Metadata

Release files for push7 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for push7 0.0.6
File Size Uploaded Provenance Actions
push7-0.0.6.tar.gz 3.1 kB Without provenance Details for push7-0.0.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for push7 0.0.6
File Interpreter ABI Platform Actions
push7-0.0.6-py2-none-any.whl Python 2 none any Details for push7-0.0.6-py2-none-any.whl

Total release size: 8.7 kB

Release files / push7-0.0.6.tar.gz

Download URL push7-0.0.6.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
3c525a16a2d535911e83699227262222d29839e83d5c813b47ebc622cf728611
BLAKE2b-256 checksum
How to use checksums
89b9be4c1ab454539b7fa6e3b912c8d26e7cfbfa6cd326fff3bb3a16b477fb19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / push7-0.0.6-py2-none-any.whl

Download URL push7-0.0.6-py2-none-any.whl
Size 5.5 kB
Tags Python 2
SHA-256 checksum
How to use checksums
cc478dec4f8bd6a1c8a3fa4923bff401a0552f5b68217f4959eb2c4f66a62b53
BLAKE2b-256 checksum
How to use checksums
ab95e02268dca308123bb693d713b3383554778c72dac0aa046e46023e29d0d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for push7 0.0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page