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

Input and output #4

Closed
Tracked by #1
yakutovicha opened this issue Jan 30, 2023 · 1 comment · Fixed by #37
Closed
Tracked by #1

Input and output #4

yakutovicha opened this issue Jan 30, 2023 · 1 comment · Fixed by #37
Assignees

Comments

@yakutovicha
Copy link
Member

yakutovicha commented Jan 30, 2023

Basic

  • Reading files:
    • open, close
    • binary vs text mode (encoding)
    • read, append, overwrite modes
    • writing and reading with iteration or with read_lines/write_lines
  • Reading and writing csv with the built-in csv module
  • Managing Paths with pathlib
    • creating paths
    • resolving paths
    • path manipulation (suffix, appending, renaming, globbing, ...)

Advanced

  • Streams with the io module
  • Implementing file-like behaviour on other objects (adding open/close methods to other resources)
  • Context managers for resource management (with keyword)
    • understanding context managers
    • implementing context managers to handle custom resources
  • Databases
    • local databases with sqlite3 module
    • database querying with pandas (maybe, it's not part of Python stdlib)
@baffelli

This comment was marked as duplicate.

@yakutovicha yakutovicha changed the title Input/output (reading/writing files, databases, streams, csv, pathlib) Input and output Feb 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants