Provide sane defaults for file_writer
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
Línea de trabajo
Start by reading file_writer in the repository and the valid format and filter names in ffi.py. Decide how filename extensions map to compatible defaults, and preserve the ability to override them when calling file_writer. Done means callers can omit both arguments for supported extensions and still specify them explicitly when needed.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
It seems as though the line:
with libarchive.file_writer('test.tar.gz', 'ustar', 'gzip') as archive:
could be boiled down to:
with libarchive.file_writer('test.tar.gz') as archive:
as format_name and filter_name can be inferred by filepath's extension.
Currently, users have to:
- Dig through
ffi.pysource code to see the list of validformat_names andfilter_names- Providing a docstring for
file_writerwould be invaluable here.
- Providing a docstring for
- Already know what types of formats to use for what filters.
- I'm sure a list of sane default could be chosen for most formats, which could still be overwritten if specified in the function call.
I'm sure this is a jarring experience to most.
- Lenguaje dominante
- Python
- Estrellas
- 84
- Forks
- 41
- Merge medio
- 6 d 12 h
- PR fusionados (30 d)
- 1
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Changaco/python-libarchive-c
-
feature
Dificultad 2/5 1-3 horas Aptitud para principiantes 51/100
Changaco/python-libarchive-c#144 ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 52/100
Changaco/python-libarchive-c#143 ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
Changaco/python-libarchive-c#129 ·
-
Suggestion: Test fileAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 20/100
Changaco/python-libarchive-c#122 · 1 comentario ·
-
Type checkingAbiertofeature
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
Changaco/python-libarchive-c#111 ·
Todos los issues de Changaco/python-libarchive-c
Issues similares
-
factory
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Arize-ai/phoenix#17420 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
FireDynamics/LEDSmokeAnalysis#176 ·
Los mantenedores suelen responder en 1 día
-
PC
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
-
Make `ocifs` optionalAbiertodependencies
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
dlt-contrib/dlt-filesystem#51 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día