Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactoring of the tiny_tribler_service.py #7200

Merged
merged 1 commit into from
Nov 23, 2022

Conversation

drew2a
Copy link
Contributor

@drew2a drew2a commented Nov 23, 2022

The TinyTriblerService was introduced in 2020 and was aimed to simplify developers' work when they have to do experiments.

2 years later, we have a history of the TinyTriblerService usage that makes it possible to simplify work with the TinyTriblerService even more. Thanks for #7105 it could be done in a safe manner.

So the most minimalistic Tribler's run now is:

from pathlib import Path

from tribler.core.components.ipv8.ipv8_component import Ipv8Component
from tribler.core.components.key.key_component import KeyComponent
from tribler.core.utilities.tiny_tribler_service import TinyTriblerService

tribler = TinyTriblerService(
    working_dir=Path('.Tribler'),
    components=[
        Ipv8Component(),
        KeyComponent()
    ]
)

tribler.run()

@drew2a drew2a force-pushed the feature/refactor_tiny_tribler_service branch from 864530e to 7347d46 Compare November 23, 2022 11:18
@drew2a drew2a force-pushed the feature/refactor_tiny_tribler_service branch from 9ceee0b to 024cadb Compare November 23, 2022 11:50
@drew2a drew2a marked this pull request as ready for review November 23, 2022 11:53
@drew2a drew2a requested review from a team and xoriole and removed request for a team November 23, 2022 11:53
@drew2a drew2a merged commit 38c86b2 into Tribler:main Nov 23, 2022
@drew2a drew2a deleted the feature/refactor_tiny_tribler_service branch November 23, 2022 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants