You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To improve on the experience, you can use [pyenv](https://github.com/pyenv/pyenv) to have an environment with a pinned Python version,
38
-
and [direnv](https://github.com/direnv/direnv) to automatically activate/deactivate the environment when you enter/exit the project folder.
39
-
40
-
### Dependencies
41
-
42
-
To install this package and its development dependencies, run `make install-dev`
43
-
44
-
### Formatting
45
-
46
-
We use `autopep8` and `isort` to automatically format the code to a common format. To run the formatting, just run `make format`.
47
-
48
-
### Linting, type-checking and unit testing
49
-
50
-
We use `flake8` for linting, `mypy` for type checking and `pytest` for unit testing. To run these tools, just run `make check-code`.
51
-
52
-
### Integration tests
27
+
## What are Actors?
53
28
54
-
We have integration tests which build and run actors using the Python SDK on the Apify Platform.
55
-
To run these tests, you need to set the `APIFY_TEST_USER_API_TOKEN` environment variable to the API token of the Apify user you want to use for the tests,
56
-
and then start them with `make integration-tests`.
29
+
Actors are serverless cloud programs that can do almost anything a human can do in a web browser.
30
+
They can do anything from small tasks such as filling in forms or unsubscribing from online services,
31
+
all the way up to scraping and processing vast numbers of web pages.
57
32
58
-
If you want to run the integration tests on a different environment than the main Apify Platform,
59
-
you need to set the `APIFY_INTEGRATION_TESTS_API_URL` environment variable to the right URL to the Apify API you want to use.
33
+
They can be run either locally, or on the [Apify platform](https://docs.apify.com/platform/),
34
+
where you can run them at scale, monitor them, schedule them, or publish and monetize them.
60
35
61
-
### Documentation
36
+
If you're new to Apify, learn [what is Apify](https://docs.apify.com/platform/about) in the Apify platform documentation.
62
37
63
-
We use the [Google docstring format](https://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_google.html) for documenting the code.
64
-
We document every user-facing class or method, and enforce that using the flake8-docstrings library.
38
+
## Creating Actors
65
39
66
-
The documentation is then rendered from the docstrings in the code using Sphinx and some heavy post-processing and saved as `docs/docs.md`.
67
-
To generate the documentation, just run `make docs`.
40
+
To create and run Actors through Apify Console,
41
+
see the [Console documentation](https://docs.apify.com/academy/getting-started/creating-actors#choose-your-template).
68
42
69
-
### Release process
43
+
To create and run Python Actors locally, check the documentation for [how to create and run Python Actors locally](https://docs.apify.com/sdk/python/docs/overview/running-locally).
70
44
71
-
Publishing new versions to [PyPI](https://pypi.org/project/apify) happens automatically through GitHub Actions.
45
+
## Guides
72
46
73
-
On each commit to the `master` branch, a new beta release is published, taking the version number from `src/apify/_version.py`
74
-
and automatically incrementing the beta version suffix by 1 from the last beta release published to PyPI.
47
+
To see how you can use the Apify SDK with other popular libraries used for web scraping,
48
+
check out our guides for using
49
+
[Requests and HTTPX](https://docs.apify.com/sdk/python/docs/guides/requests-and-httpx),
or [Scrapy](https://docs.apify.com/sdk/python/docs/guides/scrapy).
75
54
76
-
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.
55
+
## Usage concepts
77
56
78
-
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,
79
-
so don't forget to update the version number before releasing a new version.
80
-
The release process also fails when the released version is not described in `CHANGELOG.md`,
81
-
so don't forget to describe the changes in the new version there.
57
+
To learn more about the features of the Apify SDK and how to use them,
58
+
check out the Usage Concepts section in the sidebar,
59
+
particularly the guides for the [Actor lifecycle](https://docs.apify.com/sdk/python/docs/concepts/actor-lifecycle),
60
+
[working with storages](https://docs.apify.com/sdk/python/docs/concepts/storages),
61
+
[handling Actor events](https://docs.apify.com/sdk/python/docs/concepts/actor-events)
62
+
or [how to use proxies](https://docs.apify.com/sdk/python/docs/concepts/proxy-management).
0 commit comments