Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

247
Views
Descargue un subconjunto de archivos de s3 usando Boto3

Usando boto, pude descargar solo un subconjunto de un archivo de Amazon s3. Dada una clave s3, especifiqué los bytes de inicio y parada y los pasé a la llamada get_contents_as_string .

 # Define bytes to focus on headers={'Range' : 'bytes={}-{}'.format(start_byte, stop_byte)} resp = key.get_contents_as_string(headers=headers)

¿Hay alguna manera de realizar la misma tarea en boto3?

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Puede usar el mismo parámetro Range en el método get_object() :

 s3 = boto3.client('s3') resp = s3.get_object(Bucket='bucket', Range='bytes={}-{}'.format(start_byte, stop_byte)) content = resp['Body']
about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!