Principal Software Engineer - Python
BackendPosted over 2 months agofrom Veeva Systems's own hiring page
- Work type
- RemoteIn the US
- Experience
- 12+ years
- Pay
- $150k–300k a year
- Posted
- Over 2 months agoOpen 6 months
Skills it mentions
Add your skills to see which ones you have.
About the job
The Role
As Principal Software Engineer for a new product within Veeva, you will be a founding member of a team building our next major AI-driven platform — one that will transform how Life Sciences companies manage safety, regulatory, and clinical development. You will influence and help grow a codebase and engineering organization from the ground up, wearing multiple hats across the engineering organization. The team will be AI-first in two meaningful ways: using AI to drive engineering productivity and strong engineering discipline, and building a product that applies AI in genuinely innovative ways to problems that matter. Within your first year, you will have live customers on the platform and a thriving, growing team behind it - directly accelerating how customers bring life-saving products to market.What You'll Do
- Full Feature Ownership: Own all stages of feature implementation, from design and development through deployment, production support, and maintenance. Daily code contribution using AI assistance for productivity
- Drive Solutions: Collaborate with Product Management and Development on technical design and problem-solving to deliver great code
- Rapid Problem Solving: Quickly analyze complex problems, identifying knowns and unknowns, to accelerate the path to robust solutions
- Develop Best Practices: Define, promote, and mentor on engineering best practices and coding standards, including the latest approaches to AI assisted engineering
- Expert Code Review: Provide comprehensive code reviews for engineers of all experience levels
- Strategic Mentorship: Develop the skills of engineering talent through structured mentorship
Requirements
- Seasoned Software Engineer: 12+ years of proven software development expertise (Production level Python development required)
- Enterprise SaaS Leader: Extensive experience developing high-scale enterprise SaaS cloud applications
- Scalability Expert: Proven track record of architecting and building high-volume products at scale
- Open Source Proficiency: Hands-on development experience with current open-source tools and technologies, including Python, Git, FastAPI, Pydantic
- Fast-Paced Adaptability: Highly driven and flexible, enjoys a fast-paced start-up environment, and believes in having fun along the way
- Mentorship: Proven ability to mentor and elevate team performance, fostering growth and excellence
- High work ethic: Veeva is a hard-working company
- High integrity and honesty: Veeva is a PBC and a “do the right thing” company. We expect that from all employees
- Excellent verbal and written English communication skills: Engineering is not all about the code, it’s also about communication
- Applicants must have the unrestricted right to work in the United States. Veeva will not provide sponsorship at this time
Interviewing with Veeva
- Follow the application process and submit your resume.
- Within 3 days, you will receive a link to a personality assessment administered by a third party, unless you have already completed it with Veeva previously.
- Once you complete the assessment, our team will review your full application package and follow up via email with our decision.
- If moving to the interview stage, the process is as follows:
- A conversation with the hiring manager
- A technical/coding skills exercise
- A final panel interview with team members and senior leaders
- Once all interviews are complete, the manager will be in touch with a final decision.
We value your time and believe in a transparent hiring process. Here is the process you can expect.
Perks & Benefits
- Medical, dental, vision, and basic life insurance
- Flexible PTO and company paid holidays
- Retirement programs
- 1% charitable giving program
Compensation
- Base pay: $150,000 - $300,000
- The salary range listed here has been provided to comply with local regulations and represents a potential base salary range for this role. Please note that actual salaries may vary within the range above or below, depending on experience and location. We look at compensation for each individual and base our offer on your unique qualifications, experience, and expected contributions. This position may also be eligible for other types of compensation in addition to base salary, such as variable bonus and/or stock bonus.
Veeva’s headquarters is located in the San Francisco Bay Area with offices in more than 15 countries around the world. Veeva is an equal opportunity employer. All qualified applicants will receive consideration for employment without regard to race, color, sex, sexual orientation, gender identity or expression, religion, national origin or ancestry, age, disability, marital status, pregnancy, protected veteran status, protected genetic information, political affiliation, or any other characteristics protected by local laws, regulations, or ordinances. If you need assistance or accommodation due to a disability or special need when applying for a role or in our recruitment process, please contact us at talent_accommodations@veeva.com.
1 more opening for this job
Veeva Systems posts this job once per place or skill set. Pick the one that fits you.
Interested?Principal Software Engineer - Python at Veeva Systems
Apply on company site (opens in a new tab)The job ad ends here
Interview questions for this job6 with answers, on Python and FastAPI
Interview questions for this job
For the skills the ad mentions: Python and FastAPI.
What are metaclasses in Python?Python
Classes are objects
Before delving into metaclasses, a solid grasp of Python classes is beneficial. Python holds a particularly distinctive concept of classes, a notion it adopts from the Smalltalk language.
In most languages, classes are descriptions of how to create an object. That is somewhat true in Python too:
>>> class ObjectCreator(object): ... pass >>> my_object = ObjectCreator() >>> print(my_object) <__main__.ObjectCreator object at 0x8974f2c>But classes are more than that in Python. Classes are objects too.
Yes, objects.
When a Python script runs, every line of code is executed from top to bottom. When the Python interpreter encounters the
classkeyword, Python creates an object out of the "description" of the class that follows. Thus, the following instruction>>> class ObjectCreator(object): ... pass...creates an object with the name
ObjectCreator!This object (the class) is itself capable of creating objects (called instances).
But still, it's an object. Therefore, like all objects:
you can assign it to a variable1
JustAnotherVariable = ObjectCreatoryou can attach attributes to it
ObjectCreator.class_attribute = 'foo'you can pass it as a function parameter
print(ObjectCreator)
1 Note that merely assigning it to another variable doesn't change the class's
__name__, i.e.,>>> print(JustAnotherVariable) <class '__main__.ObjectCreator'> >>> print(JustAnotherVariable()) <__main__.ObjectCreator object at 0x8997b4c>Creating classes dynamically
Since classes are objects, you can create them on the fly, like any object.
First, you can create a class in a function using
class:>>> def choose_class(name): ... if name == 'foo': ... class Foo(object): ... pass ... return Foo # return the class, not an instance ... else: ... class Bar(object): ... pass ... return Bar >>> MyClass = choose_class('foo') >>> print(MyClass) # the function returns a class, not an instance <class '__main__.Foo'> >>> print(MyClass()) # you can create an object from this class <__main__.Foo object at 0x89c6d4c>But it's not so dynamic, since you still have to write the whole class yourself.
Since classes are objects, they must be generated by something.
When you use the
classkeyword, Python creates this object automatically. But as with most things in Python, it gives you a way to do it manually.Remember the function
type? The good old function that lets you know what type an object is:>>> print(type(1)) <class 'int'> >>> print(type("1")) <class 'str'> >>> print(type(ObjectCreator)) <class 'type'> >>> print(type(ObjectCreator())) <class '__main__.ObjectCreator'>Well,
typealso has a completely different ability: it can create classes on the fly.typecan take the description of a class as parameters, and return a class.(I know, it's silly that the same function can have two completely different uses according to the parameters you pass to it. It's an issue due to backward compatibility in Python)
typeworks this way:type(name, bases, attrs)Where:
name: name of the classbases: tuple of the parent class (for inheritance, can be empty)attrs: dictionary containing attributes names and values
e.g.:
>>> class MyShinyClass(object): ... passcan be created manually this way:
Read the rest at the sourceFrom Stack Overflow: asked by Bite code, answered by Bite code (CC BY-SA 4.0)
Architecture Flask vs FastAPIFastAPI
This seemed a little interesting, so i ran a little tests with
ApacheBench:Flask
from flask import Flask from flask_restful import Resource, Api app = Flask(__name__) api = Api(app) class Root(Resource): def get(self): return {"message": "hello"} api.add_resource(Root, "/")FastAPI
from fastapi import FastAPI app = FastAPI(debug=False) @app.get("/") async def root(): return {"message": "hello"}I ran 2 tests for FastAPI, there was a huge difference:
gunicorn -w 4 -k uvicorn.workers.UvicornWorker fast_api:appuvicorn fast_api:app --reload
So here is the benchmarking results for 5000 requests with a concurrency of 500:
FastAPI with Uvicorn Workers
Concurrency Level: 500 Time taken for tests: 0.577 seconds Complete requests: 5000 Failed requests: 0 Total transferred: 720000 bytes HTML transferred: 95000 bytes Requests per second: 8665.48 [#/sec] (mean) Time per request: 57.700 [ms] (mean) Time per request: 0.115 [ms] (mean, across all concurrent requests) Transfer rate: 1218.58 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 0 6 4.5 6 30 Processing: 6 49 21.7 45 126 Waiting: 1 42 19.0 39 124 Total: 12 56 21.8 53 127 Percentage of the requests served within a certain time (ms) 50% 53 66% 64 75% 69 80% 73 90% 81 95% 98 98% 112 99% 116 100% 127 (longest request)FastAPI - Pure Uvicorn
Concurrency Level: 500 Time taken for tests: 1.562 seconds Complete requests: 5000 Failed requests: 0 Total transferred: 720000 bytes HTML transferred: 95000 bytes Requests per second: 3200.62 [#/sec] (mean) Time per request: 156.220 [ms] (mean) Time per request: 0.312 [ms] (mean, across all concurrent requests) Transfer rate: 450.09 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 0 8 4.8 7 24 Processing: 26 144 13.1 143 195 Waiting: 2 132 13.1 130 181 Total: 26 152 12.6 150 203 Percentage of the requests served within a certain time (ms) 50% 150 66% 155 75% 158 80% 160 90% 166 95% 171 98% 195 99% 199 100% 203 (longest request)For Flask:
Concurrency Level: 500 Time taken for tests: 27.827 seconds Complete requests: 5000 Failed requests: 0 Total transferred: 830000 bytes HTML transferred: 105000 bytes Requests per second: 179.68 [#/sec] (mean) Time per request: 2782.653 [ms] (mean) Time per request: 5.565 [ms] (mean, across all concurrent requests) Transfer rate: 29.13 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 0 87 293.2 0 3047 Processing: 14 1140 4131.5 136 26794 Waiting: 1 1140 4131.5 135 26794 Total: 14 1227 4359.9 136 27819 Percentage of the requests served within a certain time (ms) 50% 136 66% 148 75% 179 80% 198 90% 295 95% 7839 98% 14518 99% 27765 100% 27819 (longest request)Total results
Flask: Time taken for tests: 27.827 seconds
FastAPI - Uvicorn: Time taken for tests: 1.562 seconds
FastAPI - Uvicorn Workers: Time taken for tests: 0.577 seconds
With Uvicorn Workers FastAPI is nearly 48x faster than Flask, which is very understandable. ASGI vs WSGI, so i ran with 1 concurreny:
FastAPI - UvicornWorkers: Time taken for tests: 1.615 seconds
FastAPI - Pure Uvicorn: Time taken for tests: 2.681 seconds
Flask: Time taken for tests: 5.541 seconds
I ran more tests to test out Flask with a production server.
5000 Request 1000 Concurrency
Read the rest at the sourceFrom Stack Overflow: asked by Justin Yeoh, answered by Yagiz Degirmenci (CC BY-SA 4.0)
How do I convert a string to a number?Python
For integers, use the built-in
int()type constructor, for example,int('144') == 144. Similarly,float()converts to a floating-point number, for example,float('144') == 144.0.By default, these interpret the number as decimal, so that
int('0144') == 144holds true, andint('0x144')raisesValueError.int(string, base)takes the base to convert from as a second optional argument, soint( '0x144', 16) == 324. If the base is specified as 0, the number is interpreted using Python’s rules: a leading ‘0o’ indicates octal, and ‘0x’ indicates a hex number.Do not use the built-in function
eval()if all you need is to convert strings to numbers.eval()will be significantly slower and it presents a security risk: someone could pass you a Python expression that might have unwanted side effects. For example, someone could pass__import__('os').system("rm -rf $HOME")which would erase your home directory.eval()also has the effect of interpreting numbers as Python expressions, so that, for example,eval('09')gives a syntax error because Python does not allow leading ‘0’ in a decimal number (except ‘0’).From Python Frequently Asked Questions (PSF License Version 2)
What are the advantages of using Depends in FastAPI over just calling a dependent function/class?FastAPI
FastAPI will also inject parameters from the request into your dependencies, and include them into the OpenApi specification.
This allows you to re-use parameters, which can help you write less code, especially if your project grows large.
Without the dependency injection you'd have to specify the parameters on every route, every time.
In this example from the FastAPI docs we have common search parameters being shared.
async def common_parameters(q: str = None, skip: int = 0, limit: int = 100): return {"q": q, "skip": skip, "limit": limit} @app.get("/items/") async def read_items(commons: dict = Depends(common_parameters)): return commons @app.get("/users/") async def read_users(commons: dict = Depends(common_parameters)): return commonsFrom Stack Overflow: asked by Ojomio, answered by Gabriel Cappelli (CC BY-SA 4.0)
Does Python have a ternary conditional operator?Python
Yes, it was added in version 2.5. The expression syntax is:
a if condition else bFirst
conditionis evaluated, then exactly one of eitheraorbis evaluated and returned based on the Boolean value ofcondition. Ifconditionevaluates toTrue, thenais evaluated and returned butbis ignored, or else whenbis evaluated and returned butais ignored.This allows short-circuiting because when
conditionis true onlyais evaluated andbis not evaluated at all, but whenconditionis false onlybis evaluated andais not evaluated at all.For example:
>>> 'true' if True else 'false' 'true' >>> 'true' if False else 'false' 'false'Note that conditionals are an expression, not a statement. This means you can't use statements such as
pass, or assignments with=(or "augmented" assignments like+=), within a conditional expression:>>> pass if False else pass File "<stdin>", line 1 pass if False else pass ^ SyntaxError: invalid syntax >>> # Python parses this as `x = (1 if False else y) = 2` >>> # The `(1 if False else x)` part is actually valid, but >>> # it can't be on the left-hand side of `=`. >>> x = 1 if False else y = 2 File "<stdin>", line 1 SyntaxError: cannot assign to conditional expression >>> # If we parenthesize it instead... >>> (x = 1) if False else (y = 2) File "<stdin>", line 1 (x = 1) if False else (y = 2) ^ SyntaxError: invalid syntax(In 3.8 and above, the
:="walrus" operator allows simple assignment of values as an expression, which is then compatible with this syntax. But please don't write code like that; it will quickly become very difficult to understand.)Similarly, because it is an expression, the
elsepart is mandatory:# Invalid syntax: we didn't specify what the value should be if the # condition isn't met. It doesn't matter if we can verify that # ahead of time. a if TrueYou can, however, use conditional expressions to assign a variable like so:
x = a if True else bOr for example to return a value:
# Of course we should just use the standard library `max`; # this is just for demonstration purposes. def my_max(a, b): return a if a > b else bThink of the conditional expression as switching between two values. We can use it when we are in a 'one value or another' situation, where we will do the same thing with the result, regardless of whether the condition is met. We use the expression to compute the value, and then do something with it. If you need to do something different depending on the condition, then use a normal
ifstatement instead.Keep in mind that it's frowned upon by some Pythonistas for several reasons:
Read the rest at the sourceFrom Stack Overflow: asked by Devoted, answered by Vinko Vrsalovic (CC BY-SA 4.0)
Have you ever taken the initiative?Behavioural
Employers usually base questions on jobs you have done in the past. This gives you the chance to talk about your experience. For instance, they might ask:
- when have you faced a challenging situation?
- can you tell us about a personal achievement at work?
- have you ever taken the initiative?
- have you ever failed at a task?
Your answers should reflect the skills the employer wants. Be positive and tailor your examples to the job description.
If you don't have much work history, you can use examples from outside of work. You can also use examples from volunteering experience.
Use the STAR method to help structure your answers.From National Careers Service: interview advice (Open Government Licence v3.0)
Similar jobs
- Software LeadClera, San Francisco Bay Area, on-siteToday
- Ruby API Senior Developer (Remote Opportunity)VetsEZ, Remote in the USToday
- Software Developer – Enterprise Microservices and API SystemsGeneral Dynamics Information Technology, Remote in the USToday
- Systems/Software Engineer - Interface DevelopmentCACI International Inc, Remote in the USToday
More like this: Jobs in Boston (1,288), Backend developer jobs in the USA (630) and Remote Backend developer jobs in the USA (356)



