question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support non-default session

See original GitHub issue

As far as I can tell, s3path is hard-wired to use boto3’s default session. But I need to use a non-default session.

Actually, after further analysis of the source code, it looks like I could do

from s3path import S3Path, register_configuration_parameter
register_configuration_parameter(S3Path("/"), resource=boto3.resource("s3"))

where above one can easily substitute a resource based on a user-defined session. But it took me a while of reading the code in order to figure this out. (I didn’t find any corresponding documentation.) Am I doing it right?

Thanks for the great library!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
liormizrcommented, Dec 7, 2020

Hi @maresb I updated the README as you suggested Thanks for your feedback

0reactions
maresbcommented, Dec 7, 2020

Looks great, thanks!!!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Introduction to UDS — udsoncan 0 documentation
A service is basically a type of request that has some parameters. ... must first switch to a non-default session that enables the...
Read more >
Overview of Unified Diagnostic Services Protocol - Adventure
e.g. ECUReset, Session Change Several UDS services support a Data Identifier(DID) to get access to data via a logical number(DID) which is ...
Read more >
UDS Explained - A Simple Intro (Unified Diagnostic Services)
This describes the session layer in the UDS OSI model. Specifically, it outlines service request/confirmation/indication primitives. These provide an interface ...
Read more >
UDS Unified Diagnostic Services - ISO 14229 Info
Sub-Function not supported in active session ... Session. Non-Default. Session. Timeout. Standardized values of Parameter „Diagnostic Session Type“.
Read more >
Support for non-default session.sid_length and ... - GitHub
Hi, Let's assume one is using non-default values in php.ini for session.sid-length and session.sid_bits_per_character as per ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found