aria2p icon indicating copy to clipboard operation
aria2p copied to clipboard

Feature/aria2 daemon

Open turicas opened this issue 2 years ago • 1 comments

Hi! First of all, thanks for creating this project.

I need to run aria2c as a daemon and aria2p in the same Python script so it's self-contained. I was doing this by using subprocess and I had the idea to implement it inside aria2p as a context manager so other users will benefit also.

Note: I couldn't run all the commands listed on CONTRIBUTING.md (some of the commands were very slow to run), so if there's something missing, please describe it so I can fix.

turicas avatar Mar 18 '22 23:03 turicas

Thanks, that's nice :slightly_smiling_face: I'll have to think about it seriously, to make sure the feature is useful in most case and easy to maintain.

pawamoy avatar Apr 01 '22 16:04 pawamoy

OK so, in the end I'm going to close this for the following reasons:

  1. it's easy enough to run subprocess.Popen(["aria2c"])
  2. it's easy enough to write the config in the temporary/permanent file and pass it to the aria2c command
  3. accepting little configuration (secret, port) and hard-coding the rest will results in more requests
  4. a more complete solution would be to pass a config file path -> back to point 1 and 2
  5. less maintenance for me :slightly_smiling_face:
  6. no updates from original contributor

pawamoy avatar Jan 11 '24 17:01 pawamoy