How to use the aria2p.File function in aria2p

To help you get started, we’ve selected a few aria2p examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pawamoy / aria2p / tests / test_downloads.py View on Github external
def setup_method(self):
        self.file = File(
            {
                "index": "1",
                "path": "/some/file/path.txt",
                "length": "2097152",
                "completedLength": "2048",
                "selected": "true",
                "uris": [{"uri": "some uri", "status": "used"}, {"uri": "some other uri", "status": "waiting"}],
            }
github pawamoy / aria2p / tests / test_downloads.py View on Github external
def test_eq_method(self):
        assert self.file == File({"path": "/some/file/path.txt"})
github pawamoy / aria2p / tests / test_downloads.py View on Github external
def test_init_method(self):
        assert File({})