Skip to main content

Apify SDK for Python

Project description

Apify SDK for Python

Apify SDK is the core set of tools and utilities that we've built to help make your interaction with the Apify Platform easier. It's still under heavy development, check back in a few weeks if you want to use it!

Installation

Requires Python 3.8+

You can install the package from its PyPI listing. To do that, simply run pip install apify in your terminal.

Usage

For usage instructions, check the documentation on Apify Docs or in docs/docs.md.

Development

Environment

For local development, it is required to have Python 3.8 installed.

It is recommended to set up a virtual environment while developing this package to isolate your development environment, however, due to the many varied ways Python can be installed and virtual environments can be set up, this is left up to the developers to do themselves.

One recommended way is with the built-in venv module:

python3 -m venv .venv
source .venv/bin/activate

To improve on the experience, you can use pyenv to have an environment with a pinned Python version, and direnv to automatically activate/deactivate the environment when you enter/exit the project folder.

Dependencies

To install this package and its development dependencies, run make install-dev

Formatting

We use autopep8 and isort to automatically format the code to a common format. To run the formatting, just run make format.

Linting and Testing

We use flake8 for linting, mypy for type checking and pytest for unit testing. To run these tools, just run make check-code.

Documentation

We use the Google docstring format for documenting the code. We document every user-facing class or method, and enforce that using the flake8-docstrings library.

The documentation is then rendered from the docstrings in the code using Sphinx and some heavy post-processing and saved as docs/docs.md. To generate the documentation, just run make docs.

Release process

Publishing new versions to PyPI happens automatically through GitHub Actions.

On each commit to the master branch, a new beta release is published, taking the version number from src/apify/_version.py and automatically incrementing the beta version suffix by 1 from the last beta release published to PyPI.

A stable version is published when a new release is created using GitHub Releases, again taking the version number from src/apify/_version.py. The built package assets are automatically uploaded to the GitHub release.

If there is already a stable version with the same version number as in src/apify/_version.py published to PyPI, the publish process fails, so don't forget to update the version number before releasing a new version. The release process also fails when the released version is not described in CHANGELOG.md, so don't forget to describe the changes in the new version there.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

apify-0.1.0b14.tar.gz (50.8 kB view details)

Uploaded Source

Built Distribution

apify-0.1.0b14-py3-none-any.whl (60.9 kB view details)

Uploaded Python 3

File details

Details for the file apify-0.1.0b14.tar.gz.

File metadata

  • Download URL: apify-0.1.0b14.tar.gz
  • Upload date:
  • Size: 50.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.16

File hashes

Hashes for apify-0.1.0b14.tar.gz
Algorithm Hash digest
SHA256 1a420d0260f0be2849a3d696c29b031509926aa879450659082a18ca6e7ceb46
MD5 9b0961eace488e1cf0d84419d5336333
BLAKE2b-256 40295cbb5b609d82507419d78b9e7a2a0707bf604591292bd3949f4627d1649b

See more details on using hashes here.

File details

Details for the file apify-0.1.0b14-py3-none-any.whl.

File metadata

  • Download URL: apify-0.1.0b14-py3-none-any.whl
  • Upload date:
  • Size: 60.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.16

File hashes

Hashes for apify-0.1.0b14-py3-none-any.whl
Algorithm Hash digest
SHA256 9442fe4e11b9b69c153f0db449454db657e6c43fb667f2d425d27cfc0e6b2020
MD5 efe04898e09879a18926e0705ed4bc49
BLAKE2b-256 6dcd496374ab9c93b093c99a13d67715a429949da22a3701225996ab397e44cc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page