Skip to main content

Stips API

A rich API wrapper for stips.co.il written in Python.

⛲ Install

Install using pip:

pip install stipspy

🪴 Usage

You can choose to use the API with or without logging in, but some methods will be unavailable without authentication.

Example without user authentication

# see the latest question

from stips import StipsClient

api = StipsClient()

questions = api.get_new_questions()
latest = questions[0]

print(f'{latest.title=}')
print(f'author: {latest.author.name if not latest.anonymous else "anonymous"}')
print(f'{latest.answer_count=}')

Example with authentication

# print unread messages

from stips import StipsClient

api = StipsClient(email=email, password=password)
# or
api = StipsClient(cookies=cookies)

new_messages_count = api.get_notifications_count().messages

print(f'Found {new_messages_count} unread message(s)')

if new_messages_count > 0:
  # this only covers first 28 chats
  # for better searching see pagetools.iterpages
  messages_list = api.get_messages_list(page=1)

  for direct in messages_list:
    if direct.new_messages_count > 0:
      print(f'{direct.new_messages_count} message(s) from {direct.from_user.name}: {direct.last_message}')

More examples in the /examples directory

📃 Documentation

You can find the documentation here:
https://stips-py.readthedocs.io/en/latest/

🛣️ Roadmap

  • 🦸 Support all API endpoints
  • 🐥 Easy to use API
  • 📃 Create documentation
  • 🚏 Handle API Ratelimit

🙏 Contributing

Feel free to post a pull request or an issue if you have any ideas, suggestions, or if you've found any bugs.

Metadata

Release files for stipspy 0.1.0

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

Source distribution (sdist)

Source distribution for stipspy 0.1.0
File Size Uploaded Provenance Actions
stipspy-0.1.0.tar.gz 28.0 kB Without provenance Details for stipspy-0.1.0.tar.gz

Release files / stipspy-0.1.0.tar.gz

Download URL stipspy-0.1.0.tar.gz
Size 28.0 kB
Tags Source
SHA-256 checksum
How to use checksums
6e33787f248b390215d688ee97f4b87056b2352c1fd5216512c5052bbe1a72ea
BLAKE2b-256 checksum
How to use checksums
e843174de19e475fa87121a6673197ef0011367c3584da8ca47dae0b2d31e608
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.6

Security for stipspy 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file No provenance

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