expose close methods

Open
#44 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
api

Research direction

Start with MediaIoReadable and related issue #20, then inspect how the httplib2 connection is held and how deletion requests are handled. Done means the relevant readable resource exposes a close method that closes the underlying connection; compare this with httplib2's documented behavior.

Written by the indexing model from the issue text.

Description

enhancement priority-p2

There should be a close method exposed (for example for MediaIoReadable) to close the underlying connection.

The underlying httplib2 library (https://github.com/httplib2/httplib2/blob/master/python3/httplib2/__init__.py) seems to auto-close() on Exception or on HEAD requests but not otherwise (i.e. not on deletion).

  • related #20
Dominant language
Python
Stars
671
Forks
76
Avg merge
17h 55m
Merged PRs (30d)
46

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from iterative/PyDrive2

All issues in iterative/PyDrive2

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.